.qoo-container {
    max-width: 1080px;
}

.qoo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
}

.qoo-main {
    display: block;
}

.qoo-main .advanced-panel {
    margin-bottom: 16px;
}

.qoo-lede {
    margin: 0;
    max-width: 760px;
    color: var(--ui-text-muted);
    line-height: 1.6;
}

.qoo-lede + .qoo-lede {
    margin-top: 12px;
}

.qoo-lede a {
    color: var(--color-text-kicker);
}

.qoo-formula {
    margin: 18px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--color-border-panel);
    border-radius: 12px;
    background: var(--color-surface-card-soft);
    color: var(--ui-text-main);
    text-align: center;
    font: 600 1.05rem/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.01em;
}

.qoo-components {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.qoo-card {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--color-border-panel);
    border-radius: 12px;
    background: var(--color-surface-card-soft);
}

.qoo-card h3 {
    margin: 0 0 6px;
    font-size: var(--type-body);
    color: var(--ui-text-main);
}

.qoo-card p {
    margin: 0;
    color: var(--ui-text-muted);
    font-size: var(--type-body-sm);
    line-height: 1.5;
}

.qoo-note {
    margin: 14px 0 0;
    font-size: var(--type-caption);
    line-height: 1.5;
    color: var(--ui-text-muted);
}

.qoo-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
    border: 1px solid var(--color-border-panel);
    border-radius: 12px;
}

.qoo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--type-body-sm);
}

.qoo-table th,
.qoo-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-panel);
    white-space: nowrap;
}

.qoo-table thead th {
    font-size: var(--type-table-head);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-kicker);
    background: var(--color-surface-card-soft);
}

.qoo-table tbody th {
    color: var(--ui-text-main);
    font-weight: 600;
}

.qoo-table tbody td {
    color: var(--ui-text-muted);
}

.qoo-table tbody tr:last-child th,
.qoo-table tbody tr:last-child td {
    border-bottom: 0;
}

.qoo-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 20px;
    color: var(--ui-text-muted);
    line-height: 1.6;
}

.qoo-list strong {
    color: var(--ui-text-main);
}

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

.qoo-tier {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--color-border-panel);
    border-radius: 10px;
    background: var(--color-surface-card-soft);
}

.qoo-tier strong {
    font-size: var(--type-body);
}

.qoo-tier span {
    font-size: var(--type-caption);
    color: var(--ui-text-muted);
}

.qoo-tier.is-excellent strong { color: #22c55e; }
.qoo-tier.is-good strong { color: #38bdf8; }
.qoo-tier.is-ok strong { color: #f59e0b; }
.qoo-tier.is-poor strong { color: #ef4444; }

@media (max-width: 760px) {
    .qoo-components,
    .qoo-tiers {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .qoo-components,
    .qoo-tiers {
        grid-template-columns: 1fr;
    }

    .qoo-actions .btn {
        width: 100%;
        text-align: center;
    }
}
