@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-900: #0f172a;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --border-light: rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #edf2fb;
    color: #1f2a44;
    margin: 0;
    min-height: 100vh;
}


.ha-app-frame {
    width: 100%;
    padding: 0 clamp(16px, 4vw, 72px);
    padding-bottom: 48px;
}

.ha-app-header {
    margin: 24px 0 12px;
}

.ha-app-main {
    width: 100%;
    margin: 0 0 40px;
}

a {
    color: var(--blue-600);
}

.ha-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 2rem;
}
.ha-panel {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.ha-panel h3 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}
.ha-panel p {
    margin: 0;
}
.ha-subcards {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.5rem;
}
.ha-subcard {
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.ha-subcard .ha-metric-label {
    color: #475569;
    letter-spacing: 0.05em;
    font-size: 0.76rem;
}
.ha-subcard .ha-metric-value {
    font-size: 1.5rem;
}
.ha-subcard-note {
    font-size: 0.85rem;
    color: #64748b;
}
.ha-subcard.accent-blue {
    background: linear-gradient(90deg, #e0e7ff, #eef2ff);
}
.ha-subcard.accent-green {
    background: linear-gradient(90deg, #d1fae5, #dcfce7);
}
.ha-subcard.accent-pink {
    background: linear-gradient(90deg, #ffe4e6, #fecdd3);
}

.ha-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.ha-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
    padding: 0.35rem 0;
}
.ha-metric-row:last-child {
    border-bottom: none;
}
.ha-metric-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #94a3b8;
}
.ha-metric-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
}
.ha-rec-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.6rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    margin-top: 24px;
}
.ha-rec-card h4 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}
.ha-rec-card .decision {
    font-size: 2rem;
    font-weight: 700;
    margin: 8px 0 4px;
    color: #0f172a;
}
.ha-rec-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}
.ha-rec-meta {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}
.ha-rec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}
.ha-rec-value {
    font-weight: 600;
    color: #0f172a;
}

.ha-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.ha-tile {
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
    padding: 1rem;
}

.ha-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ha-table th,
.ha-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    text-align: left;
}

.ha-table th {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: #4b566b;
    background: #eff4fb;
    border-bottom: 1px solid #d8e0ef;
}
.ha-table tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.ha-table tr:last-child {
    border-bottom: none;
}
.ha-table td {
    color: #1f2a44;
}

.ha-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ha-timeline li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
    padding: 0.35rem 0;
}
.ha-timeline li:last-child {
    border-bottom: none;
}

.ha-nav-pill {
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #475569;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ha-nav-pill.active {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.ha-nav-pill:not(.active):hover {
    border-color: rgba(37, 99, 235, 0.5);
    color: #1d4ed8;
}
