#mirror .tm-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}
#mirror .tm-head h1{margin:0 0 4px;font-size:22px}#mirror .tm-head p{margin:0;color:#9fb3cf;max-width:760px;line-height:1.8}
#mirror .tm-head select,#mirror .tm-import select,#mirror .tm-import input[type=text]{background:#0b1626;border:1px solid #2a3d57;color:#e6edf7;border-radius:8px;padding:6px 10px;font:inherit}
#mirror .tm-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;align-items:start}
@media(max-width:1000px){#mirror .tm-grid{grid-template-columns:1fr}}
.tm-card{background:rgba(13,25,41,.85);border:1px solid #20344b;border-radius:14px;padding:14px;margin-bottom:12px;min-width:0}
.tm-card h3{margin:0 0 10px;font-size:15px;color:#e8c47a}.tm-card h4{margin:12px 0 6px;font-size:13px}
.tm-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.tm-stat{background:#0b1626;border:1px solid #20344b;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.tm-stat b{font-size:15px;direction:ltr;text-align:start}.tm-stat span{font-size:11px;color:#9fb3cf}
.tm-stat.up b,.tm-table .up{color:#2ecc71}.tm-stat.down b,.tm-table .down{color:#ff6b7a}
.tm-flag{border:1px solid #20344b;border-radius:12px;padding:10px 12px;margin-bottom:8px;background:#0b1626}
.tm-flag.lvl-high{border-color:rgba(255,107,122,.6)}.tm-flag.lvl-medium{border-color:rgba(241,196,15,.5)}
.tm-flag-h{display:flex;justify-content:space-between;gap:8px;align-items:center}.tm-flag p{margin:6px 0;line-height:1.8;font-size:13px}
.tm-badge{font-size:11px;padding:2px 8px;border-radius:999px;background:#1a2a40;white-space:nowrap}
.lvl-high .tm-badge{background:rgba(255,107,122,.18);color:#ff9aa5}.lvl-medium .tm-badge{background:rgba(241,196,15,.15);color:#f5d76e}
.tm-bar{height:6px;background:#1a2a40;border-radius:6px;overflow:hidden;flex:1}.tm-bar i{display:block;height:100%;background:linear-gradient(90deg,#e8c47a,#ff6b7a)}
.tm-advice{color:#8fe3b0}.tm-ev details summary{cursor:pointer;font-size:12px;color:#9fb3cf}.tm-ev-row{font-size:12px;padding:3px 0;border-bottom:1px dashed #20344b;direction:ltr;text-align:start}
.tm-match{display:grid;grid-template-columns:minmax(120px,220px) 1fr 48px;gap:10px;align-items:center;margin:8px 0;font-size:13px}
.tm-timeline{display:flex;flex-wrap:wrap;gap:3px;direction:ltr}.tm-timeline i{width:14px;height:22px;border-radius:3px;display:block}
.st-calm{background:#1f6f4a}.st-tense{background:#a8861c}.st-tilt{background:#b23a48}
.tm-legend{display:flex;gap:10px;margin-top:8px;font-size:11px}.tm-legend span{padding:2px 8px;border-radius:6px}
.tm-whatif{display:grid;gap:8px}.tm-wi{display:grid;grid-template-columns:1fr auto;gap:2px 10px;background:#0b1626;border:1px solid #20344b;border-radius:10px;padding:8px 10px;font-size:13px}
.tm-wi b{direction:ltr}.tm-wi.up b{color:#2ecc71}.tm-wi.down b{color:#ff6b7a}.tm-wi small{grid-column:1/-1;color:#9fb3cf}
.tm-tables{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.tm-table{width:100%;border-collapse:collapse;font-size:12px}.tm-table th,.tm-table td{padding:5px 6px;border-bottom:1px solid #20344b;text-align:start}.tm-table td{direction:ltr}
.tm-note{color:#9fb3cf;font-size:13px;line-height:1.8}.tm-note.ok{color:#8fe3b0}
.tm-insights{margin:0;padding-inline-start:18px;line-height:2}
.tm-btn{border:1px solid rgba(212,166,79,.6);background:rgba(212,166,79,.16);color:#e8c47a;border-radius:9px;padding:7px 12px;cursor:pointer;font:inherit;display:inline-block;text-decoration:none;margin:4px 0}
.tm-btn.ghost{background:transparent;border-color:#2a3d57;color:#cfd9e6}.tm-btn:disabled{opacity:.5;cursor:wait}
.tm-import{display:grid;gap:8px}.tm-import input[type=file]{color:#cfd9e6;font:inherit;max-width:100%}
.tm-map{display:grid;grid-template-columns:1fr 1fr;gap:6px}.tm-map label{display:grid;gap:2px;font-size:11px;color:#9fb3cf}.tm-map select{width:100%}
.tm-preview{overflow-x:auto}.tm-sources{display:grid;gap:6px}.tm-src{display:grid;gap:2px;background:#0b1626;border:1px solid #20344b;border-radius:10px;padding:8px 10px;font-size:12px}.tm-src span{color:#9fb3cf}
.tm-live{margin:10px 0}
.tm-start h2{margin:0 0 6px;font-size:18px}
.tm-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.tm-step{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid rgba(215,185,119,.28);border-radius:14px;background:rgba(215,185,119,.05)}
.tm-step p{margin:0;font-size:13px;line-height:1.9;color:#9fb3cf;flex:1}
.tm-step-n{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#e6b850,#b7862a);color:#14233d;font-weight:800}
.tm-step .tm-btn{align-self:flex-start}
.tm-guard-box>summary{cursor:pointer;font-weight:700;padding:4px 0;list-style:none}
.tm-guard-box>summary::after{content:' ▾';opacity:.6}
.tm-guard-box[open]>summary::after{content:' ▴'}
.tm-guard-box[open]>summary{margin-bottom:10px}
#tm-import input[type=file]{width:100%;padding:8px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.03);color:#9fb3cf;font-size:12px;cursor:pointer}
#tm-import input[type=file]::file-selector-button{margin-inline-end:10px;padding:7px 14px;border:1px solid rgba(215,185,119,.45);border-radius:8px;background:transparent;color:#e5bd5c;font:inherit;font-weight:700;cursor:pointer}
.tm-src{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
@media(max-width:900px){.tm-steps{grid-template-columns:1fr}}
.tm-import input[type=file]{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap}
