:root {
    --bg: #030607;
    --bg-soft: #091317;
    --surface: rgba(8, 16, 20, 0.94);
    --surface-2: rgba(10, 19, 24, 0.96);
    --surface-3: rgba(255, 255, 255, 0.035);
    --border: rgba(108, 244, 244, 0.09);
    --border-strong: rgba(108, 244, 244, 0.24);
    --text: #edf7f7;
    --text-soft: #9eb2b6;
    --text-muted: #6c8186;
    --accent: #43eff4;
    --accent-soft: rgba(67, 239, 244, 0.13);
    --danger: #ff6b78;
    --warn: #ffbe66;
    --safe: #4df5a4;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-pill: 999px;
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
    --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.22);
    --panel-stroke: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --panel-glow: 0 0 0 1px rgba(67, 239, 244, 0.035), 0 0 30px rgba(67, 239, 244, 0.045);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(67, 239, 244, 0.12), transparent 30%),
        radial-gradient(circle at 92% 12%, rgba(67, 239, 244, 0.08), transparent 20%),
        radial-gradient(circle at 50% 28%, rgba(67, 239, 244, 0.04), transparent 26%),
        linear-gradient(180deg, #020506 0%, #030607 42%, #05090b 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.aa-grid,
.aa-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.aa-grid {
    background:
        linear-gradient(90deg, rgba(67, 239, 244, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(67, 239, 244, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 85%);
    opacity: 0.14;
}

.aa-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.018;
}

.aa-container {
    width: min(1320px, calc(100% - 36px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.aa-landing-layout,
.aa-dashboard-grid,
.aa-sidebar,
.aa-main,
.aa-panel,
.aa-stage-card,
.aa-stage-body,
.aa-trust-card,
.aa-result-lower,
.aa-subpanel,
.aa-table-wrap {
    min-width: 0;
}

.aa-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 16px 18px 0;
}

.aa-topbar-inner {
    width: min(1320px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding: 13px 20px;
    border: 1px solid rgba(108, 244, 244, 0.1);
    border-radius: var(--radius-pill);
    background:
        linear-gradient(180deg, rgba(8, 15, 18, 0.9), rgba(5, 10, 12, 0.88));
    backdrop-filter: blur(18px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 18px 50px rgba(0, 0, 0, 0.26),
        0 0 0 1px rgba(67, 239, 244, 0.03);
}

.aa-brand {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.aa-brand img {
    height: 26px;
    width: auto;
    flex-shrink: 0;
}

.aa-brand span {
    padding: 9px 15px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(67, 239, 244, 0.18);
    background: linear-gradient(180deg, rgba(67, 239, 244, 0.12), rgba(67, 239, 244, 0.06));
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aa-nav {
    display: flex;
    gap: 8px;
}

.aa-nav a,
.aa-btn,
.aa-directory-button,
.aa-audit-button {
    transition: transform 0.22s var(--ease), background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.aa-nav a {
    padding: 10px 13px;
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    font-size: 0.82rem;
    border: 1px solid transparent;
}

.aa-nav a:hover {
    color: var(--text);
    border-color: rgba(108, 244, 244, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.aa-landing {
    padding: 72px 0 54px;
}

.aa-landing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.aa-kicker,
.aa-section-tag,
.aa-panel-kicker {
    margin: 0;
    color: #52f2f6;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.aa-landing-copy h1,
.aa-dashboard-head h2,
.aa-signals-head h2 {
    margin: 16px 0 0;
    font-family: var(--font-display);
    font-size: clamp(3.1rem, 6vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
    max-width: 760px;
    text-wrap: balance;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.aa-landing-text {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--text-soft);
    font-size: 1.02rem;
    text-wrap: pretty;
}

.aa-landing-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.aa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.aa-btn:hover,
.aa-directory-button:hover,
.aa-audit-button:hover {
    transform: translateY(-2px);
}

.aa-btn-primary {
    background: linear-gradient(135deg, #58f7ff 0%, #38dfe9 100%);
    color: #021113;
    box-shadow:
        0 18px 42px rgba(67, 239, 244, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.aa-btn-ghost {
    border-color: rgba(108, 244, 244, 0.08);
    background: linear-gradient(180deg, rgba(14, 22, 25, 0.72), rgba(8, 14, 16, 0.72));
    color: var(--text);
}

.aa-btn-primary:hover {
    box-shadow:
        0 22px 50px rgba(67, 239, 244, 0.22),
        0 0 28px rgba(67, 239, 244, 0.12);
}

.aa-btn-ghost:hover {
    border-color: rgba(108, 244, 244, 0.14);
    background: linear-gradient(180deg, rgba(16, 26, 30, 0.84), rgba(10, 17, 19, 0.84));
}

.aa-landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.aa-stat-card,
.aa-panel,
.aa-stage-card {
    border: 1px solid rgba(108, 244, 244, 0.08);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(10, 18, 21, 0.97), rgba(6, 11, 13, 0.98));
    box-shadow: var(--panel-stroke), var(--panel-glow), var(--shadow);
    transition: transform 0.24s var(--ease), border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.aa-stat-card:hover,
.aa-panel:hover,
.aa-stage-card:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 244, 244, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(67, 239, 244, 0.045),
        0 0 36px rgba(67, 239, 244, 0.055),
        0 28px 90px rgba(0, 0, 0, 0.46);
}

.aa-stat-card {
    padding: 18px;
}

.aa-stat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    line-height: 1;
}

.aa-stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.aa-landing-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.aa-stage-card {
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.aa-stage-card::before,
.aa-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(67, 239, 244, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 38%);
    pointer-events: none;
}

.aa-stage-card-main {
    grid-column: 1 / -1;
    padding: 22px;
    background:
        radial-gradient(circle at 82% 18%, rgba(67, 239, 244, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(11, 21, 24, 0.98), rgba(6, 12, 14, 0.98));
}

.aa-stage-card-feed,
.aa-stage-card-audits {
    min-height: 250px;
}

.aa-stage-head,
.aa-panel-title-row,
.aa-result-head,
.aa-analysis-toolbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.aa-analysis-toolbar {
    z-index: 8;
}

.aa-stage-label {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aa-stage-chain {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(108, 244, 244, 0.08);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.aa-stage-body,
.aa-trust-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 18px;
}

.aa-score-ring {
    --ring-progress: 0.91turn;
    display: grid;
    place-items: center;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(4, 8, 10, 0.98) 58%, transparent 59%),
        conic-gradient(from -90deg, var(--accent) 0 var(--ring-progress), rgba(255, 255, 255, 0.06) var(--ring-progress) 1turn);
    box-shadow:
        inset 0 0 0 1px rgba(67, 239, 244, 0.1),
        inset 0 0 24px rgba(67, 239, 244, 0.03),
        0 0 30px rgba(67, 239, 244, 0.12);
}

.aa-score-ring span {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.aa-score-ring-large {
    width: 176px;
    height: 176px;
}

.aa-score-ring-large span {
    font-size: 3.4rem;
}

.aa-stage-copy h2,
.aa-result-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.aa-stage-copy p,
.aa-result-identity {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.aa-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-top: 14px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 800;
}

.aa-status-low {
    color: var(--safe);
    background: rgba(77, 245, 164, 0.1);
    border-color: rgba(77, 245, 164, 0.18);
}

.aa-status-watch {
    color: var(--warn);
    background: rgba(255, 190, 102, 0.1);
    border-color: rgba(255, 190, 102, 0.16);
}

.aa-status-escalate {
    color: var(--danger);
    background: rgba(255, 107, 120, 0.1);
    border-color: rgba(255, 107, 120, 0.16);
}

.aa-stage-summary {
    margin-top: 14px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.aa-stage-chips {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.aa-stage-chips span,
.aa-dimension-card,
.aa-input-shell,
.aa-control,
.aa-feed-item,
.aa-audit-button,
.aa-directory-button,
.aa-summary-reco,
.aa-flag-list li {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(15, 22, 26, 0.78), rgba(10, 16, 19, 0.7));
}

.aa-stage-chips span {
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 600;
}

.aa-panel {
    position: relative;
    padding: 18px;
}

.aa-analysis-panel {
    z-index: 30;
    overflow: visible;
}

.aa-result-panel,
.aa-table-panel {
    z-index: 1;
}

.aa-panel-title-row h3,
.aa-panel-title-row h4,
.aa-analysis-toolbar h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.aa-panel-title-row span,
.aa-analysis-toolbar span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.aa-feed-list,
.aa-audit-list,
.aa-directory-list,
.aa-session-stats {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.aa-feed-item,
.aa-audit-button,
.aa-directory-button {
    border-radius: var(--radius-md);
}

.aa-feed-item {
    padding: 12px 14px;
}

.aa-feed-item strong,
.aa-audit-button strong,
.aa-directory-button strong {
    display: block;
    font-size: 0.88rem;
}

.aa-feed-item span,
.aa-audit-button span,
.aa-directory-button span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.aa-feed-item em {
    display: inline-block;
    margin-top: 8px;
    color: var(--danger);
    font-style: normal;
    font-size: 0.74rem;
}

.aa-dashboard {
    padding: 12px 0 54px;
}

.aa-dashboard-head h2,
.aa-signals-head h2 {
    font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.aa-dashboard-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    margin-top: 24px;
    align-items: start;
}

.aa-sidebar,
.aa-main {
    display: grid;
    gap: 18px;
}

.aa-session-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aa-session-stat {
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(16, 24, 28, 0.72), rgba(9, 15, 18, 0.72));
}

.aa-session-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1;
}

.aa-session-stat span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.aa-audit-button,
.aa-directory-button {
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    color: var(--text);
    cursor: pointer;
}

.aa-audit-button:hover,
.aa-directory-button:hover {
    background: linear-gradient(180deg, rgba(18, 28, 32, 0.84), rgba(11, 18, 20, 0.84));
    border-color: var(--border-strong);
}

.aa-input-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 18px;
}

.aa-input-shell,
.aa-control {
    display: flex;
    align-items: center;
    min-height: 54px;
    border-radius: var(--radius-md);
    padding: 0 14px;
}

.aa-input-shell input,
.aa-control select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
}

.aa-input-shell:focus-within,
.aa-control-select.is-open,
.aa-control:focus-within {
    border-color: rgba(108, 244, 244, 0.18);
    box-shadow:
        0 0 0 1px rgba(67, 239, 244, 0.06),
        0 0 24px rgba(67, 239, 244, 0.05);
}

.aa-control {
    position: relative;
    min-width: 190px;
    gap: 12px;
}

.aa-control select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 28px;
    color-scheme: dark;
    background-color: transparent;
    font-weight: 600;
    cursor: pointer;
}

.aa-control select option,
.aa-control select optgroup {
    background: #091216;
    color: #e8f2f3;
}

.aa-native-select {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.aa-control-select {
    min-width: 224px;
    padding-right: 10px;
    overflow: visible;
    isolation: isolate;
    z-index: 50;
}

.aa-select-trigger {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 164px;
    min-height: 42px;
    padding: 0 14px 0 16px;
    border: 1px solid rgba(115, 255, 255, 0.12);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(14, 24, 28, 0.94), rgba(8, 15, 18, 0.94));
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 10px 26px rgba(0, 0, 0, 0.22);
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s var(--ease);
}

.aa-select-trigger::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(232, 242, 243, 0.82);
    border-bottom: 2px solid rgba(232, 242, 243, 0.82);
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.22s var(--ease), border-color 0.22s ease;
}

.aa-control-select.is-open .aa-select-trigger,
.aa-select-trigger:hover {
    border-color: rgba(115, 255, 255, 0.26);
    background:
        linear-gradient(180deg, rgba(16, 28, 32, 0.98), rgba(10, 18, 21, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(54, 242, 244, 0.08),
        0 16px 34px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(54, 242, 244, 0.08);
}

.aa-control-select.is-open .aa-select-trigger::after {
    transform: translateY(2px) rotate(-135deg);
    border-color: var(--accent);
}

.aa-select-trigger:focus-visible,
.aa-select-option:focus-visible {
    outline: 2px solid rgba(54, 242, 244, 0.3);
    outline-offset: 2px;
}

.aa-select-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 100%;
    padding: 10px;
    border: 1px solid rgba(88, 255, 255, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(9, 18, 21, 0.985) 0%, rgba(5, 10, 12, 0.99) 100%);
    backdrop-filter: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(54, 242, 244, 0.05),
        0 0 28px rgba(54, 242, 244, 0.05);
    display: grid;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0.2s ease;
    pointer-events: none;
    z-index: 40;
}

.aa-control-select.is-open .aa-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.aa-control-select.is-open {
    z-index: 80;
}

.aa-select-option {
    position: relative;
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(13, 21, 24, 0.98), rgba(8, 14, 17, 0.98));
    color: var(--text-soft);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.aa-select-option strong {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.aa-select-option span {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.aa-select-option:hover {
    transform: translateY(-1px);
    border-color: rgba(92, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(18, 31, 36, 0.98), rgba(11, 20, 23, 0.98));
    color: var(--text);
}

.aa-select-option.is-selected {
    border-color: rgba(92, 255, 255, 0.2);
    background:
        radial-gradient(circle at 88% 18%, rgba(54, 242, 244, 0.1), transparent 34%),
        rgba(14, 34, 38, 0.98);
}

.aa-select-option.is-selected::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 14px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translateY(-58%) rotate(45deg);
}

.aa-input-shell input::placeholder {
    color: var(--text-muted);
}

.aa-input-hint {
    flex-shrink: 0;
    margin-left: 12px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.aa-analysis-controls {
    display: flex;
    gap: 10px;
}

.aa-control span {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.aa-trust-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(17, 26, 30, 0.76), rgba(10, 16, 19, 0.74));
}

.aa-trust-copy {
    min-width: 0;
}

.aa-trust-summary {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.aa-dimension-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.aa-dimension-card {
    padding: 14px;
    border-radius: var(--radius-md);
}

.aa-dimension-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.aa-dimension-card strong {
    display: block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 1;
}

.aa-dimension-card p {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 0.76rem;
}

.aa-result-lower {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.aa-subpanel {
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(16, 25, 28, 0.72), rgba(9, 15, 18, 0.72));
}

.aa-flag-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.aa-flag-list li {
    padding: 12px 13px;
    border-radius: var(--radius-md);
    color: var(--text-soft);
    font-size: 0.84rem;
}

.aa-summary-block {
    margin-top: 14px;
}

.aa-summary-block p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.aa-summary-reco {
    margin-top: 14px !important;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text);
    font-weight: 600;
}

.aa-table-wrap {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    overflow: auto;
}

.aa-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.aa-table thead th {
    padding: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.aa-table tbody td {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 0.84rem;
    vertical-align: top;
}

.aa-table tbody tr:hover td {
    color: var(--text);
}

.aa-table tbody td:first-child {
    color: var(--text);
    font-weight: 600;
}

.aa-signals {
    padding: 0 0 72px;
}

.aa-signals-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.aa-signal-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.aa-signal-card p {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.aa-footer {
    padding: 0 0 64px;
}

.aa-footer-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.aa-footer-mark {
    height: 22px;
    width: auto;
}

.aa-footer p {
    max-width: 580px;
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.aa-footer a {
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .aa-landing-layout,
    .aa-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .aa-signals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 880px) {
    .aa-topbar {
        padding: 10px 10px 0;
    }

    .aa-topbar-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .aa-nav {
        width: 100%;
        justify-content: center;
    }

    .aa-landing-copy h1,
    .aa-dashboard-head h2,
    .aa-signals-head h2 {
        font-size: clamp(2.4rem, 10vw, 4rem);
    }

    .aa-result-lower,
    .aa-dimension-grid {
        grid-template-columns: 1fr;
    }

    .aa-stage-body,
    .aa-trust-card,
    .aa-input-row {
        grid-template-columns: 1fr;
    }

    .aa-analysis-toolbar,
    .aa-panel-title-row,
    .aa-result-head,
    .aa-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .aa-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .aa-main {
        order: 1;
    }

    .aa-sidebar {
        order: 2;
    }

    .aa-landing-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aa-stage-card-main {
        grid-column: 1 / -1;
    }

    .aa-landing-stats,
    .aa-session-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .aa-signals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aa-dimension-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .aa-container {
        width: min(100% - 16px, 1320px);
    }

    .aa-landing-stage,
    .aa-landing-stats,
    .aa-session-stats,
    .aa-signals-grid,
    .aa-dimension-grid {
        grid-template-columns: 1fr;
    }

    .aa-stage-card,
    .aa-panel,
    .aa-stat-card {
        border-radius: 18px;
    }

    .aa-topbar-inner {
        min-height: 60px;
        padding: 10px 15px;
    }

    .aa-brand img {
        height: 20px;
    }

    .aa-brand span {
        padding: 8px 13px;
        font-size: 0.72rem;
    }

    .aa-landing {
        padding: 48px 0 40px;
    }

    .aa-landing-copy h1,
    .aa-dashboard-head h2,
    .aa-signals-head h2 {
        font-size: clamp(2.1rem, 10vw, 3.2rem);
        line-height: 0.98;
    }

    .aa-landing-text {
        font-size: 0.94rem;
    }

    .aa-stage-card,
    .aa-panel {
        padding: 16px;
    }

    .aa-stage-card-main {
        padding: 18px;
        grid-column: auto;
    }

    .aa-stage-card-feed,
    .aa-stage-card-audits {
        min-height: 0;
    }

    .aa-nav {
        display: none;
    }

    .aa-landing-actions,
    .aa-analysis-controls {
        width: 100%;
        flex-direction: column;
    }

    .aa-btn,
    .aa-control {
        width: 100%;
    }

    .aa-control {
        min-width: 0;
    }

    .aa-session-stats {
        gap: 10px;
    }

    .aa-session-stat,
    .aa-stat-card {
        padding: 14px;
    }

    .aa-score-ring {
        width: 118px;
        height: 118px;
    }

    .aa-score-ring span {
        font-size: 2.2rem;
    }

    .aa-score-ring-large {
        width: 152px;
        height: 152px;
    }

    .aa-score-ring-large span {
        font-size: 3rem;
    }

    .aa-table-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .aa-table {
        min-width: 0;
        table-layout: fixed;
    }

    .aa-table th,
    .aa-table td {
        word-break: break-word;
    }
}

@media (max-width: 420px) {
    .aa-container {
        width: min(100% - 12px, 1320px);
    }
}
