.page-tool--aria-attribute-helper .tool-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-tool--aria-attribute-helper .aah-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-tool--aria-attribute-helper .field[hidden] {
    display: none;
}

.page-tool--aria-attribute-helper .aah-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.page-tool--aria-attribute-helper .aah-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px 16px;
    align-items: end;
}

.page-tool--aria-attribute-helper .aah-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    cursor: pointer;
    color: var(--ink);
    font-size: 0.9rem;
}

.page-tool--aria-attribute-helper .aah-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.page-tool--aria-attribute-helper .aah-range {
    width: 100%;
    min-height: 46px;
    margin: 0;
    accent-color: var(--accent);
}

.page-tool--aria-attribute-helper #aah-value-output {
    color: var(--accent);
    font-family: var(--font-mono);
}

.page-tool--aria-attribute-helper .tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-tool--aria-attribute-helper .aah-status {
    margin: 0;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.page-tool--aria-attribute-helper .aah-status.status {
    border-left: 3px solid var(--line-strong);
}

.page-tool--aria-attribute-helper .aah-status.status--success {
    border-left-color: var(--success);
}

.page-tool--aria-attribute-helper .aah-status.status--error {
    border-left-color: var(--danger);
}

.page-tool--aria-attribute-helper .tool-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.page-tool--aria-attribute-helper .tool-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-tool--aria-attribute-helper .tool-pane__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.page-tool--aria-attribute-helper .aah-code {
    flex: 1 1 auto;
    min-height: 24rem;
    max-height: 34rem;
    margin: 0;
    padding: 16px;
    overflow: auto;
    background: var(--surface);
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
    white-space: pre;
    tab-size: 2;
}

.page-tool--aria-attribute-helper .aah-attrs,
.page-tool--aria-attribute-helper .aah-support,
.page-tool--aria-attribute-helper .aah-notes {
    border-bottom: 1px solid var(--line);
}

.page-tool--aria-attribute-helper .aah-attrs:last-child,
.page-tool--aria-attribute-helper .aah-support:last-child,
.page-tool--aria-attribute-helper .aah-notes:last-child {
    border-bottom: 0;
}

.page-tool--aria-attribute-helper .tool-pane__body {
    max-height: 34rem;
    overflow: auto;
}

.page-tool--aria-attribute-helper .aah-attr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.page-tool--aria-attribute-helper .aah-attr:last-child {
    border-bottom: 0;
}

.page-tool--aria-attribute-helper .aah-attr__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.page-tool--aria-attribute-helper .aah-attr__name {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--accent);
    overflow-wrap: anywhere;
}

.page-tool--aria-attribute-helper .aah-attr__value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 0.78rem;
    color: var(--muted);
}

.page-tool--aria-attribute-helper .aah-attr__value code {
    padding: 0.05rem 0.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: var(--surface-3);
    color: var(--ink-2);
    font-family: var(--font-mono);
    overflow-wrap: anywhere;
}

.page-tool--aria-attribute-helper .aah-attr__value-label,
.page-tool--aria-attribute-helper .aah-attr__allowed-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
}

.page-tool--aria-attribute-helper .aah-attr__desc {
    margin: 0 0 4px;
    color: var(--ink-2);
    font-size: 0.86rem;
    line-height: 1.5;
}

.page-tool--aria-attribute-helper .aah-attr__allowed {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.page-tool--aria-attribute-helper .aah-notes {
    padding: 12px 16px;
    background: var(--surface-2);
}

.page-tool--aria-attribute-helper .aah-notes__title {
    margin: 0 0 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-tool--aria-attribute-helper .aah-notes__list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.page-tool--aria-attribute-helper .aah-notes__list li + li {
    margin-top: 4px;
}

.page-tool--aria-attribute-helper .aah-reference {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-tool--aria-attribute-helper .aah-reference__list {
    max-height: 26rem;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.page-tool--aria-attribute-helper .aah-reference__list .empty-state {
    border: 0;
    border-radius: 0;
}

.page-tool--aria-attribute-helper .tool-about__text {
    max-width: 80ch;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 860px) {
    .page-tool--aria-attribute-helper .tool-workspace {
        grid-template-columns: 1fr;
    }

    .page-tool--aria-attribute-helper .aah-code {
        min-height: 16rem;
    }

    .page-tool--aria-attribute-helper .tool-pane__body {
        max-height: 26rem;
    }
}
