/* Barre bas — look type Earth, marque TiaTerra */
.tia-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 26px;
  padding: 0 10px;
  box-sizing: border-box;
  background: #111;
  color: #fff;
  font: 12px/1.2 "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}

.tia-status__left,
.tia-status__right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tia-status__right {
  margin-left: auto;
}

.tia-status__brand {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tia-status__attrib {
  pointer-events: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.tia-status__attrib:hover,
.tia-status__attrib:focus-visible {
  color: #cfe3ff;
}

.tia-status__scale {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 48px;
}

.tia-status__scale-label {
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.tia-status__scale-bar {
  display: block;
  height: 0;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
  box-sizing: border-box;
  width: 80px;
}

.tia-status__coords {
  white-space: nowrap;
}

.tia-status-dialog {
  position: absolute;
  left: 10px;
  bottom: 34px;
  z-index: 26;
  max-width: min(360px, calc(100vw - 20px));
  padding: 10px 12px;
  background: #1a1a1a;
  color: #eee;
  border: 1px solid #333;
  font: 12px/1.45 "Segoe UI", system-ui, sans-serif;
  pointer-events: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.tia-status-dialog[hidden] {
  display: none !important;
}

.tia-status-dialog h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
}

.tia-status-dialog p {
  margin: 0;
  color: #c8c8c8;
}

.tia-status-dialog__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: none;
  color: #aaa;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.tia-status-dialog__close:hover {
  color: #fff;
}

/* Smartphone : uniquement % chargement + échelle */
@media (max-width: 720px) {
  .tia-status {
    justify-content: space-between;
    gap: 8px;
    padding: 4px 10px;
    font-size: 11px;
  }

  .tia-status__left,
  .tia-status__right {
    gap: 0;
  }

  .tia-status__brand,
  .tia-status__attrib,
  .tia-status__date,
  .tia-status__cam,
  .tia-status__coords {
    display: none !important;
  }

  .tia-status__load.is-done {
    display: none !important;
  }

  .tia-status--load-done .tia-status__left {
    display: none;
  }

  .tia-status__scale {
    margin-left: auto;
  }
}
