/* Time Machine tab in the camera panel (tm-ui.js) */
.tma-pane{gap:14px}
.tma-pane [hidden]{display:none!important}
.tma-ask{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:14px;align-items:start}
.tma-pic{position:relative;border-radius:12px;overflow:hidden;background:#0b2238;cursor:crosshair;touch-action:none;user-select:none;aspect-ratio:16/9}
.tma-pic img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}
.tma-ph{color:#cfe0ea;display:grid;place-items:center;height:100%;padding:20px;text-align:center}
.tma-box{position:absolute;border:2.5px solid #ffd21f;border-radius:3px;box-shadow:0 0 0 9999px rgba(4,14,24,.45);pointer-events:none}
.tma-tip{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(8,25,40,.82);color:#fff;padding:9px 15px;border-radius:999px;font-weight:700;font-size:13px;pointer-events:none;white-space:nowrap}
.tma-card{display:flex;flex-direction:column;gap:12px;background:#fff;border:1px solid #dbe6ec;border-radius:12px;padding:14px}
.tma-card h3{margin:0;font-size:15px;color:#082945}
.tma-card p{margin:0;color:#4d6478;font-size:12.5px;line-height:1.65}
.tma-chips{display:flex;flex-wrap:wrap;gap:6px}
.tma-chips button{height:32px;padding:0 12px;border:1px solid #cfdde5;border-radius:999px;background:#fff;color:#082945;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.tma-chips button[aria-checked=true]{background:#0b2238;border-color:#0b2238;color:#fff}
.tma-go{height:42px;border:0;border-radius:10px;background:#0f6f84;color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.tma-go:hover{background:#0b5c6e}.tma-go:disabled{background:#b7c7d0;cursor:not-allowed}
.tma-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tma-meta small{color:#5b7286;font-size:12px}
.tma-link{border:0;background:none;color:#0f6f84;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;padding:2px}
.tma-link.danger{color:#b42318}
.tma-note{color:#b42318;font-size:12.5px}.tma-note:empty{display:none}
.tma-lh{display:flex;gap:6px;color:#5b7286;font-size:12px;font-weight:800;margin-top:2px}
.tma-list{display:flex;flex-direction:column;gap:8px}
.tma-empty{padding:18px;border:1px dashed #c9d8e1;border-radius:12px;text-align:center;color:#5b7286;font-size:13px;background:#fff}
.tma-row{background:#fff;border:1px solid #dbe6ec;border-radius:12px;overflow:hidden}
.tma-row.open{border-color:#0f6f84;box-shadow:0 0 0 2px rgba(15,111,132,.16)}
.tma-rh{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px}
.tma-rh[role=button]{cursor:pointer}.tma-rh[role=button]:hover{background:#f6fafb}
.tma-rh:focus-visible,.tma-ic:focus-visible,.tma-go:focus-visible,.tma-chips button:focus-visible{outline:3px solid #7fd6e4;outline-offset:2px}
.tma-mini{position:relative;width:120px;aspect-ratio:16/9;border-radius:7px;overflow:hidden;background:#0b2238}
.tma-mini img{width:100%;height:100%;object-fit:fill;display:block}
.tma-mini i{position:absolute;border:2px solid #ffd21f;border-radius:2px}
.tma-rt{min-width:0;display:flex;flex-direction:column;gap:6px}
.tma-rt b{font-size:14px;line-height:1.45;color:#082945;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tma-rt div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tma-rt small{color:#5b7286;font-size:12px}
.tma-badge{display:inline-flex;align-items:center;gap:6px;height:21px;padding:0 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.tma-badge.found{background:#fff1c7;color:#7a5600}.tma-badge.grad{background:#e3f1fb;color:#0d5a8a}.tma-badge.none{background:#e3f6ed;color:#0d6b4a}
.tma-badge.run{background:#e6f1f5;color:#0f6f84}.tma-badge.bad{background:#fde8ec;color:#b4233f}
.tma-dot{width:7px;height:7px;border-radius:50%;background:currentColor;animation:tmapulse 1.2s ease-in-out infinite}
@keyframes tmapulse{50%{opacity:.25}}
.tma-acts{display:flex;gap:6px}
.tma-ic{width:38px;height:38px;border:1px solid #d3e0e7;border-radius:10px;background:#fff;color:#082945;display:inline-grid;place-items:center;cursor:pointer;text-decoration:none}
.tma-ic:hover{background:#f1f6f8}.tma-ic svg{width:15px;height:15px}
.tma-detail{border-top:1px solid #e3ebf0;padding:12px;display:flex;flex-direction:column;gap:12px;background:#fbfdfe}
.tma-ai{display:flex;flex-direction:column;gap:3px}
.tma-ai span{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:800;color:#0f6f84}.tma-ai span svg{width:12px;height:12px}
.tma-ai em{font-style:normal;color:#10253b;font-size:14px}
.tma-video{width:100%;max-height:420px;border-radius:10px;background:#000;aspect-ratio:16/9}
.tma-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tma-tiles:empty{display:none}
.tma-tile{background:#fff;border:1px solid #e1eaef;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.tma-tile small{font-size:11.5px;font-weight:700;color:#6a8092}.tma-tile b{font-size:14px;color:#082945}.tma-tile span{font-size:13px;color:#35506a}
.tma-hash{display:flex;flex-direction:column;gap:3px;padding:9px 12px;background:#f2f6f8;border-radius:9px}
.tma-hash small{font-size:11.5px;font-weight:700;color:#6a8092}
.tma-hash code{font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#10253b;word-break:break-all;direction:ltr;text-align:left}
.tma-dacts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tma-dacts svg{width:15px;height:15px}
.tma-check{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:9px;background:#f2f6f8;font-size:13px;font-weight:700;color:#35506a}
.tma-check.ok{background:#e3f6ed;color:#0d6b4a}.tma-check.bad{background:#fde8ec;color:#b4233f}
.tma-ci{width:22px;height:22px;border-radius:50%;background:currentColor;display:grid;place-items:center;flex:none}.tma-ci svg{width:14px;height:14px;color:#fff}
.tma-spin{width:18px;height:18px;border:3px solid #cfe3ea;border-top-color:#0f6f84;border-radius:50%;animation:tmaspin 1s linear infinite;flex:none;display:inline-block}
@keyframes tmaspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.tma-spin,.tma-dot{animation:none}}
@media(max-width:760px){.tma-ask{grid-template-columns:minmax(0,1fr)}.tma-rh{grid-template-columns:88px minmax(0,1fr)}.tma-mini{width:88px}.tma-acts{grid-column:1/-1;justify-content:flex-end}.tma-tiles{grid-template-columns:minmax(0,1fr)}}
