.tmx-logo {
  display: block;
  width: 142px;
  height: auto;
  object-fit: contain;
}

.tmx-login-logo {
  width: min(220px, 72%);
  max-height: 64px;
  margin: 0 auto 18px;
}

.tmx-old-brand-icon {
  display: none !important;
}

.tmx-nav-extended {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 transparent;
}

.tmx-page {
  display: grid;
  gap: 24px;
  min-width: 0;
  color: #f4f4f5;
  animation: tmx-enter 240ms ease-out;
}

.tmx-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.tmx-heading h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.tmx-heading p,
.tmx-muted {
  margin: 4px 0 0;
  color: #a1a1aa;
  font-size: 14px;
}

.tmx-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgb(16 185 129 / 25%);
  border-radius: 8px;
  background: rgb(16 185 129 / 10%);
  color: #34d399;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tmx-button:hover:not(:disabled) {
  background: rgb(16 185 129 / 18%);
}

.tmx-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.tmx-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 16px;
}

.tmx-metric,
.tmx-panel {
  border: 1px solid #27272a;
  border-radius: 8px;
  background: rgb(20 20 22 / 88%);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%);
}

.tmx-metric {
  min-height: 108px;
  padding: 18px;
}

.tmx-metric-label,
.tmx-eyebrow {
  color: #a1a1aa;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tmx-metric-value {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.tmx-tone-critical { color: #ef4444; }
.tmx-tone-high { color: #f59e0b; }
.tmx-tone-success { color: #10b981; }
.tmx-tone-neutral { color: #f4f4f5; }

.tmx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tmx-panel {
  min-width: 0;
  overflow: hidden;
}

.tmx-panel-wide {
  grid-column: 1 / -1;
}

.tmx-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  border-bottom: 1px solid #27272a;
}

.tmx-panel-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.tmx-panel-body {
  padding: 18px;
}

.tmx-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  color: #d4d4d8;
  background: #1c1c1f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.tmx-status-critical { border-color: rgb(239 68 68 / 35%); color: #ef4444; background: rgb(239 68 68 / 8%); }
.tmx-status-high { border-color: rgb(245 158 11 / 35%); color: #f59e0b; background: rgb(245 158 11 / 8%); }
.tmx-status-low,
.tmx-status-available { border-color: rgb(16 185 129 / 35%); color: #34d399; background: rgb(16 185 129 / 8%); }

.tmx-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.tmx-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}

.tmx-table th,
.tmx-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgb(39 39 42 / 70%);
  text-align: left;
  vertical-align: top;
}

.tmx-table th {
  position: sticky;
  top: 0;
  color: #a1a1aa;
  background: #141416;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tmx-table tbody tr:hover {
  background: #1c1c1f;
}

.tmx-list {
  display: grid;
  gap: 0;
}

.tmx-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgb(39 39 42 / 70%);
}

.tmx-list-row:last-child {
  border-bottom: 0;
}

.tmx-list-title {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}

.tmx-list-detail {
  margin-top: 3px;
  color: #a1a1aa;
  font-size: 12px;
}

.tmx-empty,
.tmx-loading,
.tmx-error {
  padding: 38px 20px;
  text-align: center;
  color: #a1a1aa;
  font-size: 14px;
}

.tmx-error {
  color: #ef4444;
}

.tmx-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgb(245 158 11 / 30%);
  border-radius: 8px;
  background: rgb(245 158 11 / 8%);
  color: #d4d4d8;
  font-size: 13px;
}

.tmx-control-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
}

.tmx-field {
  display: grid;
  gap: 7px;
}

.tmx-field label {
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.tmx-field select,
.tmx-field input {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #27272a;
  border-radius: 8px;
  background: #0a0a0b;
  color: #f4f4f5;
}

.tmx-check {
  width: 16px;
  height: 16px;
  accent-color: #10b981;
}

.tmx-report-button {
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
}

.tmx-report-button:hover {
  text-decoration: underline;
}

@keyframes tmx-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .tmx-metrics { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
}

@media (max-width: 820px) {
  .tmx-grid,
  .tmx-control-grid { grid-template-columns: 1fr; }
  .tmx-metrics { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}

@media (max-width: 560px) {
  .tmx-metrics { grid-template-columns: 1fr; }
  .tmx-heading { display: grid; }
}
