/*! reaction-test v1.2.2 | ToolWorld | Plugin Spec V3.14 */
.rt-app{--rt-gap:14px;width:100%;max-width:100%;min-width:0;margin:0;box-sizing:border-box;font-size:14px;line-height:1.6;color:var(--text-1,#1f2937)}
.rt-app *{box-sizing:border-box}
.rt-card{background:var(--surface,#fff);border:1px solid var(--border,#e5e7eb);border-radius:12px;padding:16px;margin-bottom:var(--rt-gap)}
.rt-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;margin-bottom:12px}
.rt-row:last-child{margin-bottom:0}
.rt-col{flex:1 1 220px;min-width:200px}
.rt-col-auto{flex:0 0 auto}
.rt-label{display:block;height:16px;line-height:16px;font-size:13px;color:var(--text-3,#6b7280);margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-in{width:100%;height:38px;padding:0 10px;border:1px solid var(--border,#d1d5db);border-radius:8px;background:var(--input-bg,#fff);color:var(--text-1,#111827);font-size:14px;outline:none}
.rt-in:focus{border-color:var(--primary,#10b981);box-shadow:0 0 0 3px var(--primary-light,rgba(16,185,129,.15))}
.rt-inline{display:flex;align-items:center;gap:8px}
.rt-inline .rt-in{flex:1 1 auto}
.rt-unit{flex:0 0 auto;font-size:12px;color:var(--text-4,#9ca3af);white-space:nowrap}
.rt-btn{height:38px;padding:0 16px;border:1px solid var(--border,#d1d5db);border-radius:8px;background:var(--surface,#fff);color:var(--text-2,#374151);font-size:14px;cursor:pointer;white-space:nowrap;transition:border-color .15s,color .15s,background .15s}
.rt-btn:hover{border-color:var(--primary,#10b981);color:var(--primary,#10b981)}
.rt-btn-p{background:var(--primary,#10b981);border-color:var(--primary,#10b981);color:var(--text-on-accent,#fff)}
.rt-btn-p:hover{background:var(--primary-hover,#0ea371);border-color:var(--primary-hover,#0ea371);color:var(--text-on-accent,#fff)}
.rt-actions{gap:10px}
.rt-empty{border:1px dashed var(--border,#d1d5db);border-radius:10px;padding:34px 16px;text-align:center;color:var(--text-4,#9ca3af);font-size:13px;background:var(--surface-2,#fafafa)}
.rt-result{padding-top:2px}
.rt-big{text-align:center;padding:6px 0 12px}
.rt-big-v{font-size:30px;font-weight:700;color:var(--primary,#10b981);line-height:1.2}
.rt-big-k{font-size:12px;color:var(--text-4,#9ca3af);margin-top:4px}
.rt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.rt-kv{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid var(--border,#e5e7eb);border-radius:8px;background:var(--surface-2,#fafafa);font-size:13px}
.rt-kv span{color:var(--text-3,#6b7280);white-space:nowrap}
.rt-kv b{color:var(--text-1,#111827);font-weight:600;white-space:nowrap}
.rt-note{margin-top:12px;padding:10px 12px;border-left:3px solid var(--primary,#10b981);background:var(--primary-light,rgba(16,185,129,.08));border-radius:0 8px 8px 0;font-size:12.5px;color:var(--text-2,#374151)}
.rt-msg{min-height:18px;font-size:12.5px;color:var(--primary,#10b981);margin-top:8px}
.rt-msg-on{color:var(--primary,#10b981)}
.rt-h{font-size:14px;font-weight:600;color:var(--text-1,#111827);margin-bottom:10px;padding-left:10px;border-left:3px solid var(--primary,#10b981)}
.rt-formula{display:grid;gap:8px}
.rt-frow{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:8px 10px;border:1px solid var(--border,#e5e7eb);border-radius:8px}
.rt-frow span{color:var(--text-3,#6b7280)}
.rt-frow b{color:var(--text-1,#111827);font-weight:600;white-space:nowrap}
@media (max-width:640px){
  .rt-col{flex:1 1 100%}
  .rt-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .rt-actions>:only-child{grid-column:1/-1}
  .rt-actions .rt-col-auto{flex:none;min-width:0}
  .rt-actions .rt-btn{width:100%}
  .rt-big-v{font-size:26px}
}

.rt-headline{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.rt-stat{text-align:center;padding:10px 6px;border:1px solid var(--border,#e5e7eb);border-radius:10px;background:var(--surface-2,#fafafa)}
.rt-stat b{display:block;font-size:18px;color:var(--text-1,#111827);font-weight:700;line-height:1.3}
.rt-stat span{display:block;font-size:12px;color:var(--text-4,#9ca3af);margin-top:2px;white-space:nowrap}
.rt-pad{margin-top:14px;min-height:240px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;user-select:none;text-align:center;padding:20px;transition:background .12s,transform .12s;outline:none}
.rt-pad:focus-visible{box-shadow:0 0 0 3px var(--primary-light,rgba(16,185,129,.25))}
.rt-pad-idle{background:var(--surface-2,#f1f5f9);border:1px solid var(--border,#e5e7eb)}
.rt-pad-wait{background:#475569;color:#fff;border:1px solid #475569}
.rt-pad-go{background:var(--primary,#10b981);color:var(--text-on-accent,#fff);border:1px solid var(--primary,#10b981);transform:scale(.995)}
.rt-pad-early{background:#f59e0b;color:#fff;border:1px solid #f59e0b}
.rt-pad-done{background:var(--primary-light,rgba(16,185,129,.12));border:1px solid var(--primary,#10b981)}
.rt-pad-t{font-size:24px;font-weight:700;line-height:1.35}
.rt-pad-s{font-size:13px;opacity:.85}
.rt-note{margin-top:12px;font-size:12.5px;color:var(--text-3,#6b7280);text-align:center;min-height:18px}
.rt-list{display:grid;gap:6px;font-size:13px}
.rt-trow{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--border,#e5e7eb);border-radius:8px;background:var(--surface-2,#fafafa)}
.rt-trow span{color:var(--text-4,#9ca3af);font-size:12px}
.rt-trow b{margin-left:auto;color:var(--text-1,#111827);font-weight:600;white-space:nowrap}
.rt-tag{color:var(--primary,#10b981)!important;font-size:12px!important}
.rt-grade{display:grid;gap:8px}
.rt-grow{display:flex;justify-content:space-between;gap:12px;padding:7px 10px;border:1px solid var(--border,#e5e7eb);border-radius:8px;font-size:12.5px}
.rt-grow span{color:var(--text-3,#6b7280)}
.rt-grow b{color:var(--text-1,#111827);white-space:nowrap}
@media (max-width:640px){.rt-pad{min-height:200px}.rt-pad-t{font-size:20px}}
.rt-label{display:block;height:16px;line-height:16px;font-size:13px;color:var(--text-3,#6b7280);margin-bottom:6px}
.rt-in{width:100%;height:38px;padding:0 10px;border:1px solid var(--border,#d1d5db);border-radius:8px;background:var(--input-bg,#fff);color:var(--text-1,#111827);font-size:14px;outline:none}
.rt-in:focus{border-color:var(--primary,#10b981);box-shadow:0 0 0 3px var(--primary-light,rgba(16,185,129,.15))}
.rt-col{flex:1 1 180px;min-width:160px}
.rt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.rt-kv{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid var(--border,#e5e7eb);border-radius:8px;background:var(--surface-2,#fafafa);font-size:13px}
.rt-kv span{color:var(--text-3,#6b7280);white-space:nowrap}
.rt-kv b{color:var(--text-1,#111827);font-weight:600;white-space:nowrap}
.rt-history{display:grid;gap:6px;font-size:12.5px}
.rt-hrow{display:grid;grid-template-columns:36px 1fr 1fr 1fr 1fr;gap:8px;padding:7px 10px;border:1px solid var(--border,#e5e7eb);border-radius:8px;color:var(--text-2,#374151)}
.rt-hrow span{text-align:right}
.rt-hrow span:first-child{text-align:left;color:var(--text-4,#9ca3af)}
.rt-hhead{background:var(--surface-2,#fafafa);font-weight:600;color:var(--text-1,#111827)}
.rt-hhead span:first-child{color:var(--text-1,#111827)}
.rt-hitem-empty{border:1px dashed var(--border,#d1d5db);border-radius:8px;padding:14px;text-align:center;color:var(--text-4,#9ca3af);font-size:12.5px;background:var(--surface-2,#fafafa)}

.rt-chart{width:100%;overflow:hidden}
.rt-svg{width:100%;height:auto;display:block}
.rt-grid{stroke:var(--border,#e5e7eb)}
.rt-axis{font-size:10px;fill:var(--text-4,#9ca3af)}
.rt-bar{stroke:none}
.rt-b-fast{fill:#10b981}.rt-b-good{fill:#34d399}.rt-b-mid{fill:#f59e0b}.rt-b-slow{fill:#ef4444}
.rt-val{font-size:10px;fill:var(--text-2,#374151)}
.rt-chart-empty{padding:22px 12px;text-align:center;border:1px dashed var(--border,#d1d5db);border-radius:8px;color:var(--text-4,#9ca3af);font-size:12.5px}
