/* AI Globe Report · Tools — extends site.css */
.tools-brand-sub {
  display: block;
  margin: 0.35rem 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.75rem;
}
@media (max-width: 820px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}

.tool-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.tool-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tool-form .field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-form .field {
  flex: 1 1 140px;
}

.tool-form .field input,
.tool-form .field select,
.tool-form .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 16px;
}

.tool-form .field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.15rem 0 0;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.tool-result {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  min-height: 8rem;
}

.tool-result.is-empty {
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-result .result-hero {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.5rem;
  color: var(--text);
}

.tool-result .result-hero .unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.25rem;
}

.tool-result .result-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.tool-result dl.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 0;
}
@media (max-width: 480px) {
  .tool-result dl.result-stats {
    grid-template-columns: 1fr;
  }
}
.tool-result dl.result-stats dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}
.tool-result dl.result-stats dd {
  margin: 0.15rem 0 0;
  font-weight: 650;
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.badge-ok { background: rgba(132, 204, 22, 0.18); color: #bef264; }
.badge-warn { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.badge-no { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
.badge-info { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }

.tool-disclaimer {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: rgba(255, 107, 26, 0.06);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ember);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.tool-disclaimer strong {
  color: var(--text);
}

.sponsored-slot {
  margin: 1.75rem 0 0.5rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.sponsored-slot .sponsored-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 650;
  margin: 0 0 0.5rem;
}
.sponsored-slot .sponsored-box {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #5a5048;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
}

.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.tools-hub-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.tools-hub-card:hover {
  text-decoration: none;
  color: var(--text);
  border-color: var(--ember);
  background: var(--bg-hover);
}
.tools-hub-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.tools-hub-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.tool-nav-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
}
.tool-nav-extra a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
}
.tool-nav-extra a:hover {
  color: var(--ember);
}

.room-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.room-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0.5rem;
  align-items: end;
}
@media (max-width: 560px) {
  .room-row {
    grid-template-columns: 1fr 1fr;
  }
  .room-row .room-remove {
    grid-column: 1 / -1;
  }
}
.room-row input {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font: inherit;
}
.btn-tiny {
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
}
.btn-tiny:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.amort-table-wrap {
  max-height: 280px;
  overflow: auto;
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.amort-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.amort-table-wrap th,
.amort-table-wrap td {
  padding: 0.35rem 0.55rem;
  text-align: right;
  border-bottom: 1px solid var(--ash);
}
.amort-table-wrap th:first-child,
.amort-table-wrap td:first-child {
  text-align: left;
}
.amort-table-wrap th {
  position: sticky;
  top: 0;
  background: var(--bg-card);
  color: var(--muted);
  font-weight: 650;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.method-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
  line-height: 1.45;
}
