.tt-toolbar, .tt-edit-bar, .tt-actions, .tt-axis-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tt-toolbar, .tt-edit-bar { margin-bottom: 14px; }
.tt-picker { max-width: 100%; min-width: min(100%, 210px); min-height: 44px; padding: 5px 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.tt-edit-bar { align-items: end; }
.tt-edit-bar label { flex: 1 1 260px; max-width: 480px; margin: 0; }
.tt-edit-bar input, .tt-dialog label input { margin-top: 4px; font-weight: 400; }
.tt-panel { min-width: 0; background: var(--surface); border: 1px solid #889da7; border-radius: 5px; overflow: hidden; }
.tt-title { padding: 10px 14px; text-align: center; overflow-wrap: anywhere; color: var(--ink); font-size: 18px; font-weight: 650; }
.tt-scroll { max-width: 100%; overflow-x: auto; }
.tt-scroll:focus-visible { outline-offset: -3px; }
.tt-matrix { width: 100%; min-width: calc(120px + var(--tt-columns) * 215px); table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.tt-matrix .tt-area-col { width: 120px; }
.tt-matrix .tt-temperature-col { width: 86px; }
.tt-matrix th, .tt-matrix td { padding: 7px 8px; height: 40px; border-top: 1px solid #94a7b0; border-right: 1px solid #94a7b0; text-align: center; overflow-wrap: anywhere; }
.tt-matrix tr > :last-child { border-right: 0; }
.tt-matrix thead th { background: #dce5eb; color: var(--ink); font-weight: 600; }
.tt-matrix thead tr:nth-child(2) th { white-space: nowrap; padding-inline: 2px; }
.tt-matrix tbody :is(th, td) { background: white; }
.tt-matrix tbody tr:nth-child(even) :is(th, td) { background: #edf2f5; }
.tt-matrix tbody th { font-weight: 500; }
.tt-matrix .tt-region { position: sticky; left: 0; z-index: 1; }
.tt-matrix .tt-temperature { font-variant-numeric: tabular-nums; }
.tt-matrix .simulation-badge { display: block; width: fit-content; margin: 3px auto 0; }
.tt-cell-edit, .tt-value { min-height: 32px; width: 100%; padding: 3px; font: inherit; color: var(--primary-dark); overflow-wrap: anywhere; border-radius: 3px; }
.tt-cell-edit { border: 1px dashed #94a7b0; background: var(--surface); }
.tt-value { color: var(--ink); border: 0; background: transparent; }
.tt-value:hover, .tt-cell-edit:hover { background: var(--primary-pale); }
.tt-empty { padding: 24px 12px; text-align: center; color: var(--muted); }
.tt-dialog { max-height: 88vh; max-width: min(560px, calc(100vw - 24px)); width: 540px; overflow-y: auto; }
.tt-dialog h2 { margin-bottom: 12px; }
.tt-modal-body, .tt-form, .tt-axis-list { display: grid; gap: 10px; min-width: 0; }
.tt-axis-line input { flex: 1 1 140px; }
.tt-dialog .tt-actions { justify-content: flex-end; }
.tt-device-results { display: grid; max-height: 240px; overflow-y: auto; gap: 4px; }
.tt-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 6px 9px; text-align: left; overflow-wrap: anywhere; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--ink); }
.tt-pick small { color: var(--muted); }
.tt-pick[aria-pressed=true] { background: var(--primary-pale); border-color: var(--primary); }
.tt-choice { font-weight: 600; overflow-wrap: anywhere; }
.tt-reading { font-size: 26px; color: var(--temperature); font-weight: 650; }
@media (max-width: 650px) {
  .tt-title { font-size: 16px; }
  .tt-matrix { min-width: calc(86px + var(--tt-columns) * 185px); font-size: 13px; }
  .tt-matrix .tt-area-col { width: 86px; }
  .tt-matrix .tt-temperature-col { width: 72px; }
  .tt-matrix th, .tt-matrix td { padding-inline: 5px; }
  .tt-value, .tt-cell-edit { min-height: 44px; }
}
