/* Feedough Account on AI X generators. Homepage tokens, white panels. */
.fda-aix,
.fda-aix-limit {
    margin: 12px 0 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #111;
    text-align: left;
}
.fda-aix[hidden] {
    display: none;
}
.fda-aix__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #dedad4;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.fda-aix__toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.fda-aix__toggle[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(-135deg);
}
.fda-aix__toggle:hover {
    background: #f4f2ef;
}
.fda-aix__panel {
    margin-top: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dedad4;
    border-radius: 12px;
}
.fda-aix__status {
    margin: 0;
    color: #686868;
    font-size: 14px;
}
.fda-aix__status:empty {
    display: none;
}
.fda-aix__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fda-aix__item {
    border: 1px solid #dedad4;
    border-radius: 8px;
}
.fda-aix__item-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: none;
    color: #111;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.fda-aix__item-head:hover {
    background: #f4f2ef;
}
.fda-aix__date {
    font-size: 12px;
    color: #686868;
}
.fda-aix__preview {
    font-size: 14px;
    line-height: 1.45;
}
.fda-aix__body {
    padding: 0 12px 12px;
}
.fda-aix__inputs {
    display: grid;
    grid-template-columns: minmax(110px, 30%) 1fr;
    gap: 4px 12px;
    margin: 0 0 10px;
    font-size: 13px;
}
.fda-aix__inputs dt {
    font-weight: 600;
}
.fda-aix__inputs dd {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.fda-aix__out {
    margin: 0;
    padding: 10px;
    max-height: 320px;
    overflow: auto;
    background: #f4f2ef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}
.fda-aix__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.fda-aix__btn {
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #c81e2e;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.fda-aix__btn:hover {
    background: #a81824;
}
.fda-aix__btn--ghost {
    background: #fff;
    color: #111;
    border: 1px solid #dedad4;
}
.fda-aix__btn--ghost:hover {
    background: #f4f2ef;
}
.fda-aix__note {
    font-size: 13px;
    color: #686868;
}
.fda-aix__all {
    margin-top: 4px;
    font-size: 14px;
    color: #111;
}
.fda-aix-limit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 14px;
    background: #f4f2ef;
    border: 1px solid #dedad4;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}
.fda-aix-limit p {
    flex: 1 1 260px;
    margin: 0;
}

/* Save button in the result card's actions, matching AI X's Copy/Download buttons. */
html .ai-x-generator-container .aixg-result-actions .fda-aix-save {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: auto;
    height: 2.25rem;
    min-height: 2.25rem;
    margin: 0;
    padding: 0 0.7rem;
    background: var(--fd-paper, #fff);
    border: 1px solid #c9c4bc;
    border-radius: var(--fd-radius-sm, 8px);
    box-shadow: none;
    color: var(--fd-ink, #111);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    transform: none;
    white-space: nowrap;
}
html .ai-x-generator-container .aixg-result-actions .fda-aix-save:hover:not([disabled]) {
    background: var(--fd-cream, #f4f2ef);
    border-color: var(--fd-ink, #111);
}
html .ai-x-generator-container .aixg-result-actions .fda-aix-save[disabled] {
    cursor: progress;
    opacity: 0.7;
}
html .ai-x-generator-container .aixg-result-actions .fda-aix-save.is-saved {
    color: #1a7f37;
    border-color: #b7dfc2;
}
.fda-aix-save__icon {
    display: inline-flex;
}
html .ai-x-generator-container.aixg-loading .aixg-result-actions .fda-aix-save {
    opacity: 0.45;
    pointer-events: none;
}

/* Login strip inside the result card, above its toolbar. Replaces fda.js's bar below the card. */
.ai-x-generator-container .fda-nudge {
    display: none !important;
}
html .ai-x-generator-container .fda-aix-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0;
    padding: 10px 20px;
    background: #fdf1f1;
    border-top: 1px solid #f3d3d5;
    color: #111;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}
html .ai-x-generator-container .fda-aix-strip p {
    flex: 1 1 260px;
    margin: 0;
    color: #111;
    font-size: 14px;
}
html .ai-x-generator-container .fda-aix-strip__login {
    height: 34px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--fd-red-deep, #c81e2e);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
html .ai-x-generator-container .fda-aix-strip__login:hover {
    background: #a81824;
}
html .ai-x-generator-container .fda-aix-strip__close {
    width: 30px;
    height: 30px;
    margin: 0 -8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: #686868;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
html .ai-x-generator-container .fda-aix-strip__close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #111;
}

@media (max-width: 600px) {
    .fda-aix__inputs {
        grid-template-columns: 1fr;
    }
    html .ai-x-generator-container .fda-aix-strip {
        padding: 10px 14px;
    }
}
