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

.page-tool--alt-text-helper .tool-workspace {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
    align-items: start;
}

.page-tool--alt-text-helper .ath-controls__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-tool--alt-text-helper [hidden] {
    display: none !important;
}

.page-tool--alt-text-helper .ath-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.page-tool--alt-text-helper .ath-hint code {
    padding: 0.05rem 0.3rem;
    border-radius: var(--radius-xs);
    background: var(--surface-3);
    color: var(--ink-2);
    font-family: var(--font-mono);
}

.page-tool--alt-text-helper .ath-text {
    min-height: 5.5rem;
    font-family: inherit;
    font-size: 0.94rem;
    line-height: 1.5;
}

.page-tool--alt-text-helper .ath-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-2);
    font-size: 0.88rem;
    line-height: 1.45;
    cursor: pointer;
}

.page-tool--alt-text-helper .ath-check input {
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.page-tool--alt-text-helper .ath-advanced {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.page-tool--alt-text-helper .ath-advanced > summary {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
}

.page-tool--alt-text-helper .ath-advanced > summary:hover {
    color: var(--ink);
}

.page-tool--alt-text-helper .ath-advanced .field {
    margin-top: 12px;
}

.page-tool--alt-text-helper .ath-result__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-tool--alt-text-helper .ath-hero {
    margin: 0;
    padding: 18px 16px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.page-tool--alt-text-helper .ath-hero--empty {
    border-style: dashed;
    border-color: var(--line-2);
    background: var(--surface-2);
}

.page-tool--alt-text-helper .ath-hero__empty {
    color: var(--muted);
}

.page-tool--alt-text-helper .ath-meter {
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
    overflow: hidden;
}

.page-tool--alt-text-helper .ath-meter__fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--success);
    transition: width 0.15s ease, background-color 0.15s ease;
}

.page-tool--alt-text-helper .ath-meter__fill--over {
    background: var(--danger);
}

.page-tool--alt-text-helper .ath-meter__text {
    margin: -4px 0 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.page-tool--alt-text-helper .ath-announce-box {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.page-tool--alt-text-helper .ath-announce {
    margin: 6px 0 0;
    color: var(--ink-2);
    font-size: 0.95rem;
    line-height: 1.5;
}

.page-tool--alt-text-helper .ath-code-wrap > .label {
    display: block;
    margin-bottom: 6px;
}

.page-tool--alt-text-helper .ath-code {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow: auto;
}

.page-tool--alt-text-helper .ath-warnings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-tool--alt-text-helper .ath-warnings:empty {
    display: none;
}

.page-tool--alt-text-helper .ath-warning {
    margin: 0;
    font-size: 0.82rem;
}

.page-tool--alt-text-helper .ath-guidance {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 6px 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.page-tool--alt-text-helper .ath-copy-status {
    min-height: 1.2em;
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.page-tool--alt-text-helper .ath-copy-status--success {
    color: var(--success);
}

.page-tool--alt-text-helper .ath-copy-status--error {
    color: var(--danger);
}

.page-tool--alt-text-helper .ath-about__text {
    max-width: 80ch;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.page-tool--alt-text-helper .ath-about__text code {
    padding: 0.05rem 0.3rem;
    border-radius: var(--radius-xs);
    background: var(--surface-3);
    color: var(--ink-2);
    font-family: var(--font-mono);
}

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