.tm-app {
  container-type: inline-size;
  box-sizing: border-box;
  height: 100%;
  overflow: auto;
  padding: 14px;
  background: var(--bg-base, #000);
  color: var(--text-primary, #1aff80);
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  line-height: 1.45;
}
.tm-title { margin: 0 0 8px; font-size: 1rem; letter-spacing: 0.06em; font-weight: 600; }
.tm-sub { margin: 0; font-size: 0.9rem; font-weight: 600; }
.tm-muted { margin: 6px 0; font-size: 0.8rem; }
.tm-error, .tm-notice { margin: 6px 0; padding-left: 8px; border-left: 3px solid var(--accent, #1aff80); font-weight: 600; }
.tm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.tm-select, .tm-btn, .tm-input {
  min-height: 44px;
  padding: 4px 12px;
  background: var(--bg-surface, #0a0a0a);
  border: 1px solid var(--border, rgba(26, 255, 128, 0.3));
  border-radius: var(--border-radius-sm, 0);
  color: inherit;
  font: inherit;
  cursor: pointer;
  max-width: 100%;
}
.tm-btn:hover:not([aria-disabled="true"]), .tm-select:hover { border-color: var(--accent, #1aff80); }
.tm-btn[aria-disabled="true"], .tm-select[aria-disabled="true"], .tm-input[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; border-style: dashed; }
.tm-chip { padding: 2px 8px; border: 1px solid var(--accent, #1aff80); font-weight: 600; }
.tm-chip:empty { display: none; }
.tm-runner { overflow-wrap: anywhere; }
.tm-banner, .tm-op-why { margin: 8px 0; padding: 8px 10px; border: 2px solid var(--accent, #1aff80); font-weight: 600; }
.tm-notices { margin: 0 0 8px; padding: 0; list-style: none; }
.tm-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; }
.tm-watch[hidden] { display: none; }
.tm-pill { padding: 2px 10px; border: 1px solid var(--accent, #1aff80); border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.tm-pill[data-state="live"] { border-width: 3px; font-weight: 800; }
.tm-watch-note { overflow-wrap: anywhere; font-weight: 600; }
.tm-sheet { margin: 8px 0; padding: 10px; border: 1px solid var(--border, rgba(26, 255, 128, 0.3)); background: var(--bg-surface, #0a0a0a); }
.tm-sheet-part { display: contents; }
.tm-sheet-part > * { margin-top: 8px; }
.tm-sheet > .tm-sheet-part:first-child > .tm-check:first-child { margin-top: 0; }
.tm-sheet > .tm-sheet-part:first-child > p.tm-muted:first-child { margin-top: 6px; }
.tm-check { display: flex; align-items: center; gap: 8px; min-height: 44px; overflow-wrap: anywhere; }
.tm-check input { width: 20px; height: 20px; flex: none; }
.tm-reason { display: block; font-size: 0.8rem; font-style: italic; }
.tm-item[data-refused="true"] { border-style: dashed; }
.tm-confirm p { margin: 0 0 8px; font-weight: 600; }
.tm-confirm .tm-btn { margin: 0 8px 8px 0; }
.tm-live, .tm-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.tm-panels { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tm-panel { padding: 10px; border: 1px solid var(--border, rgba(26, 255, 128, 0.3)); background: var(--bg-surface, #0a0a0a); min-width: 0; }
.tm-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.tm-asof { font-size: 0.8rem; }
.tm-warn { font-size: 0.8rem; font-weight: 700; padding-left: 6px; border-left: 3px solid var(--accent, #1aff80); }
.tm-list, .tm-gates { margin: 0; padding: 0; list-style: none; }
.tm-item { padding: 6px 0; border-bottom: 1px solid var(--border, rgba(26, 255, 128, 0.3)); overflow-wrap: anywhere; }
.tm-item[data-state="unknown"] .tm-state { font-style: italic; border-bottom: 1px dashed currentColor; }
.tm-gates { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tm-gate { padding: 1px 6px; border: 1px solid var(--border, rgba(26, 255, 128, 0.3)); }
.tm-gate[data-result="fail"], .tm-gate[data-result="error"] { border-width: 2px; border-color: var(--accent, #1aff80); font-weight: 700; }
.tm-link { color: inherit; text-decoration: underline; }
.tm-link:focus-visible, .tm-scroll:focus-visible, .tm-btn:focus-visible, .tm-input:focus-visible, .tm-op h4:focus-visible, .tm-select:focus-visible, .tm-check input:focus-visible, .tm-title:focus-visible { outline: 2px solid var(--text-primary, #1aff80); outline-offset: 2px; }
.tm-app .tm-select.tm-select:focus-visible { outline: 2px solid var(--text-primary, #1aff80) !important; outline-offset: 2px !important; }
.tm-app.tm-app .tm-input.tm-input.tm-input:focus-visible { outline: 2px solid var(--text-primary, #1aff80) !important; outline-offset: 2px !important; }
.tm-scroll { position: relative; max-height: 24rem; overflow: auto; }
.tm-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.tm-time { font-variant-numeric: tabular-nums; }
.tm-prov { margin: 4px 0 0 12px; font-size: 0.85rem; }
.tm-app [hidden] { display: none; }
.tm-op { margin-top: 12px; }
.tm-op > * + * { margin-top: 8px; }
.tm-op-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 6px 0; }
.tm-field { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; }
.tm-input { width: 9rem; }
.tm-stop { margin-left: 8px; }
.tm-cmd-detail { display: inline; }
.tm-item .tm-btn { margin-left: 8px; }
@container (min-width: 640px) {
  .tm-panels { grid-template-columns: 1fr 1fr; }
  .tm-panel-log, .tm-panel-usage { grid-column: 1 / -1; }
}
@container (max-width: 520px) {
  .tm-select, .tm-bar .tm-btn, .tm-pager .tm-btn { flex: 1 1 100%; }
  .tm-confirm .tm-btn { width: 100%; margin: 0 0 8px; }
}
.tm-halt { margin: 8px 0; }
.tm-halt > * + * { margin-top: 8px; }
.tm-halt-state, .tm-halt-note { margin: 6px 0; padding: 8px 10px; border: 3px double var(--accent, #1aff80); font-weight: 700; }
.tm-halt-by { margin: 6px 0; }
.tm-halt-note { border-style: solid; border-width: 2px; }
.tm-halt-chip { border-width: 3px; border-style: double; }
.tm-halt-chip[data-halt="pending"] { border-style: dashed; }
.tm-halt-chip[hidden] { display: none; }
.tm-halt-chip:focus-visible, .tm-halt h3:focus-visible { outline: 2px solid var(--text-primary, #1aff80); outline-offset: 2px; }
.tm-code { margin: 6px 0; padding: 8px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.8rem; border: 1px solid var(--border, rgba(26, 255, 128, 0.3)); }
.tm-code:focus-visible { outline: 2px solid var(--text-primary, #1aff80); outline-offset: 2px; }
.tm-spin { display: inline-block; width: 0.9em; height: 0.9em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -0.1em; animation: tm-spin 1s linear infinite; }
@keyframes tm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tm-spin { animation: none; } }
.tm-stopfail { margin: 8px 0; }
.tm-stopfail > * + * { margin-top: 8px; }
.tm-stop-text { margin: 6px 0; padding: 8px 10px; border: 3px double var(--accent, #1aff80); font-weight: 700; }
.tm-stop-chip { border-width: 3px; border-style: double; }
.tm-stop-chip[hidden], .tm-stopfail[hidden] { display: none; }
.tm-update { margin: 8px 0; padding: 8px 10px; border: 3px double var(--accent, #1aff80); overflow-wrap: anywhere; }
.tm-update > * + * { margin-top: 8px; }
.tm-update-title { margin: 0; font-weight: 700; }
.tm-update-text { margin: 0; }
.tm-update[hidden] { display: none; }
.tm-next { box-sizing: border-box; max-width: 100%; min-width: 0; margin: 8px 0; padding: 8px 10px; border: 3px double var(--accent, #1aff80); overflow-wrap: anywhere; }
.tm-next > * + * { margin-top: 8px; }
.tm-next-text { margin: 0; font-weight: 700; }
.tm-move { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.tm-move .tm-select { max-width: 100%; }
.tm-next[hidden] { display: none; }
