/* Таб „AI модели" (10.10.2026) - префикс aim-. Картата (фон, радиус, слята с лентата на
   таблото) идва от tab-card.css - там е и #ai-models. Палитрата е като на „Клиенти".
   Първо телефон: цели за допир по 44px, едно-колонен изглед, сгъваеми карти. */
#ai-models { color: #2b231d; }
#ai-models button { min-height: 0; font-family: inherit; }
#ai-models i.fas { line-height: 1; }

.aim-wrap { max-width: 980px; }
.aim-top h1 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; }
.aim-lead { margin: 2px 0 0; color: #8a7866; font-size: .92rem; }
.aim-note { color: #8a7866; font-size: .88rem; margin: 14px 0 4px; line-height: 1.5; }

/* ---- навигация между изгледите ---- */
.aim-nav { display: flex; gap: 6px; margin: 16px 0 6px; padding: 4px; background: #f6ece1; border-radius: 14px; }
.aim-nav button {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px !important;
    border: 0; background: transparent; border-radius: 11px; font-size: .92rem; font-weight: 700; color: #7a6552; cursor: pointer;
    position: relative;
}
.aim-nav button i { color: #a8743f; }
.aim-nav button.on { background: #fff; color: #2b231d; box-shadow: 0 1px 4px rgba(58, 47, 38, .14); }
.aim-nav em {
    font-style: normal; font-size: .7rem; font-weight: 800; background: #d4a574; color: #2b231d; border-radius: 999px;
    min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

.aim-area { margin: 22px 0 10px; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: #a8743f; font-weight: 800; }

/* ---- карта на употреба (сгъваема) ---- */
.aim-card { background: #fff; border: 1px solid #efe4d8; border-radius: 16px; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s; }
.aim-card.is-open { border-color: #e6d4bf; box-shadow: 0 4px 18px rgba(58, 47, 38, .07); }
.aim-card.aim-dirty { border-color: #d4a574; box-shadow: inset 4px 0 0 #d4a574; }
.aim-card-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
    padding: 14px 16px; border: 0; background: transparent; cursor: pointer; color: inherit; min-height: 64px !important;
}
.aim-head-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aim-title { font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aim-unsaved { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #9a5b00; background: #fdf0d8; border-radius: 999px; padding: 2px 8px; }
.aim-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.aim-main-model { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; color: #5a4a3a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.aim-more { font-size: .72rem; color: #8a7866; background: #f6ece1; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.aim-head-side { display: flex; align-items: center; gap: 10px; flex: none; }
.aim-chip { font-size: .74rem; font-weight: 700; color: #5a4a3a; background: #fbf4ec; border: 1px solid #efe4d8; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.aim-caret { color: #a8743f; transition: transform .18s; font-size: .85rem; }
.aim-card.is-open .aim-caret { transform: rotate(180deg); }

.aim-card-body { display: none; padding: 0 16px 16px; border-top: 1px solid #f3e9dd; }
.aim-card.is-open .aim-card-body { display: block; }
.aim-desc { margin: 12px 0 12px; font-size: .86rem; color: #8a7866; line-height: 1.45; }

/* ---- верига ---- */
.aim-chain { display: flex; flex-direction: column; gap: 8px; }
/* Ред на модел: позиция + име + плочки с факти; бутоните са вдясно (десктоп) или най-долу (телефон) */
.aim-row {
    background: #fbf4ec; border-radius: 14px; padding: 13px 14px; min-width: 0;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 6px; align-items: start;
    grid-template-areas: "pos actions" "name actions" "facts facts" "test test";
}
.aim-pos { grid-area: pos; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #8a7866; }
.aim-pos.aim-main { color: #a8743f; }
.aim-name { grid-area: name; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .98rem; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.aim-facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.aim-fact {
    background: #fff; border: 1px solid #efe4d8; border-radius: 12px; padding: 7px 11px 8px; display: flex; flex-direction: column; gap: 5px; min-width: 0;
    flex: 0 1 auto;
}
.aim-fact-l { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #9a8672; white-space: nowrap; }
.aim-fact-warn, .aim-fact-bad { flex-direction: row; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; }
.aim-fact-warn { color: #9a5b00; background: #fffaf0; border-color: #f0d6a8; }
.aim-fact-bad { flex: 1 1 100%; color: #b3261e; background: #fff5f4; border-color: #f0c2be; }

/* иконки (като модалностите в OpenRouter): цветна плочка, бледа+зачеркната когато не се поддържа */
.aim-io { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.aim-ic {
    position: relative; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    background: #eef1f5; color: #475569; cursor: help; outline: none;
}
.aim-ic:focus-visible { box-shadow: 0 0 0 2px #d4a574; }
.aim-ic-text { background: #e6effd; color: #2563eb; }
.aim-ic-image { background: #e4f4e9; color: #15803d; }
.aim-ic-file { background: #fdf0d8; color: #b45309; }
.aim-ic-audio { background: #f0e8fd; color: #7c3aed; }
.aim-ic-video { background: #fde6f0; color: #be185d; }
.aim-ic-decisions { background: #ece9fb; color: #5b45d6; }
.aim-ic-speech { background: #e4f1fb; color: #0369a1; }
.aim-ic-transcription { background: #eaf0e1; color: #4d7c0f; }
.aim-ic-embeddings { background: #f3e8f7; color: #a21caf; }
.aim-ic-rerank { background: #eceff3; color: #475569; }
.aim-ic-reasoning { background: #fff3cf; color: #a16207; }
.aim-ic-temperature { background: #fde8e4; color: #c2410c; }
.aim-ic-tools { background: #e7eefb; color: #3b5bdb; }
.aim-ic-json { background: #e6f4f1; color: #0f766e; }
.aim-ic.off { background: #f3eee8; color: #b8a794; }
.aim-ic.off::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: currentColor; border-radius: 2px; transform: rotate(-42deg); opacity: .8; }
.aim-ic.bad { background: #fde4e1; color: #b3261e; }
.aim-arrow { display: inline-flex; color: #b8a794; margin: 0 1px; }
.aim-price { display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap; font-size: .95rem; }
.aim-price b { font-weight: 800; }
.aim-price small { font-size: .66rem; color: #9a8672; margin-right: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.aim-price small:last-child { margin-right: 0; }
.aim-ctx { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .95rem; height: 30px; }
.aim-ctx svg { color: #a8743f; }

.aim-tooltip {
    position: fixed; z-index: 100000; display: none; max-width: 240px; padding: 8px 11px; border-radius: 10px;
    background: #2b231d; color: #fff; font-family: inherit; font-weight: 600; font-size: .78rem; line-height: 1.35; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); pointer-events: none;
}

.aim-actions { grid-area: actions; display: flex; gap: 6px; align-items: flex-start; }
.aim-ico {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px !important;
    background: #fff; color: #5a4a3a; border: 1px solid #e6d4bf; border-radius: 12px; padding: 0 12px; font-size: .84rem; font-weight: 700; cursor: pointer;
}
.aim-ico i { color: #a8743f; font-size: .85rem; }
.aim-ico:hover:not(:disabled) { background: #fbf4ec; }
.aim-ico:active:not(:disabled) { transform: scale(.97); }
.aim-ico:disabled { opacity: .3; cursor: default; }
.aim-ico-del i { color: #b3261e; }
.aim-test { grid-area: test; font-size: .8rem; color: #5a4a3a; background: #fff; border-radius: 10px; padding: 8px 10px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.aim-test.ok i { color: #1f7a3a; }
.aim-test.err { color: #b3261e; background: #fff5f4; }

.aim-add { display: flex; gap: 8px; margin-top: 12px; }
.aim-add input {
    flex: 1; min-width: 0; min-height: 44px; background: #fff; color: #2b231d; border: 1px solid #e6d4bf; border-radius: 12px; padding: 0 12px;
    font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px;
}
.aim-add input:focus { outline: 2px solid #d4a574; outline-offset: 0; border-color: #d4a574; }
.aim-check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: #5a4a3a; cursor: pointer; margin-top: 14px; line-height: 1.4; }
.aim-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: #3a2f26; }
.aim-msg { font-size: .82rem; margin-top: 8px; min-height: 0; }
.aim-msg:not(:empty) { min-height: 18px; }
.aim-msg.err { color: #b3261e; }
.aim-msg.ok { color: #1f7a3a; }
.aim-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.aim-save {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px !important; min-width: 130px; padding: 0 20px;
    background: #3a2f26; color: #fff; border: 1px solid #3a2f26; border-radius: 13px; font-size: .92rem; font-weight: 800; cursor: pointer;
}
.aim-save i { color: #f1d3a6; }
.aim-save:hover:not(:disabled) { background: #2b231d; }
.aim-save:disabled { opacity: .3; cursor: default; }

/* ---- разход ---- */
.aim-usage-top { margin: 14px 0 12px; }
.aim-seg { display: inline-flex; background: #f6ece1; border-radius: 12px; padding: 3px; gap: 2px; max-width: 100%; }
.aim-seg button { min-height: 38px !important; padding: 0 16px; border: 0; background: transparent; border-radius: 10px; font-size: .86rem; font-weight: 700; color: #7a6552; cursor: pointer; }
.aim-seg button.on { background: #3a2f26; color: #fff; }

.aim-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aim-kpi { background: #fbf4ec; border: 1px solid #efe4d8; border-radius: 15px; padding: 13px 14px; display: flex; flex-direction: column; gap: 4px; }
.aim-kpi span { font-size: .74rem; font-weight: 700; color: #8a7866; text-transform: uppercase; letter-spacing: .05em; }
.aim-kpi strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.aim-kpi-main { background: #3a2f26; border-color: #3a2f26; color: #fff; }
.aim-kpi-main span { color: #d9c3a8; }
.aim-compare { margin: 10px 2px 0; font-size: .82rem; color: #8a7866; }
.aim-compare b { color: #2b231d; }

.aim-chart { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; align-items: end; height: 150px; padding: 8px 6px 0; background: #fbf4ec; border: 1px solid #efe4d8; border-radius: 15px; }
.aim-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; position: relative; }
.aim-bar i { display: block; width: 100%; max-width: 28px; background: linear-gradient(180deg, #d4a574, #b8864f); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.aim-bar span { font-size: .6rem; color: #8a7866; height: 16px; line-height: 16px; white-space: nowrap; }

.aim-list { display: flex; flex-direction: column; gap: 8px; }
.aim-li { background: #fff; border: 1px solid #efe4d8; border-radius: 14px; padding: 12px 14px; }
.aim-li-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.aim-li-top b { font-size: .92rem; min-width: 0; word-break: break-word; }
.aim-li-top > span { font-weight: 800; white-space: nowrap; }
.aim-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem !important; }
.aim-track { height: 7px; border-radius: 99px; background: #f3e9dd; margin: 9px 0 7px; overflow: hidden; }
.aim-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d4a574, #b8864f); }
.aim-li-sub { font-size: .78rem; color: #8a7866; margin-top: 4px; line-height: 1.4; }
.aim-hist-line { display: flex; gap: 10px; align-items: baseline; margin-top: 7px; }
.aim-hist-line small { flex: none; width: 44px; color: #8a7866; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.aim-hist-line code { font-size: .76rem; word-break: break-all; color: #3a2f26; }

.aim-empty { margin: 22px 0; padding: 22px 18px; text-align: center; color: #8a7866; background: #fbf4ec; border: 1px dashed #e6d4bf; border-radius: 15px; font-size: .9rem; line-height: 1.5; }
.aim-empty i { display: block; font-size: 1.4rem; color: #c9a37a; margin-bottom: 8px; }

/* ---- по-широк екран ---- */
@media (min-width: 721px) {
    .aim-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .aim-chart { height: 180px; }
    .aim-nav { max-width: 520px; }
}

/* ---- телефон ---- */
@media (max-width: 720px) {
    .aim-top h1 { font-size: 1.25rem; }
    .aim-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pos" "name" "facts" "actions" "test"; }
    .aim-fact { flex: 1 1 calc(50% - 4px); }
    .aim-fact-l { white-space: normal; }
    /* действията на цял ред под модела: „Провери" се разтяга, останалите са квадрати 44px */
    .aim-actions { width: 100%; }
    .aim-ico-test { flex: 1; }
    .aim-ico-add span { display: none; }
    .aim-ico-add { min-width: 46px; }
    .aim-chip { display: none; }
    .aim-foot { position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 24%); padding-top: 14px; margin-top: 8px; }
    .aim-foot .aim-save { flex: 1; }
    .aim-nav button span { font-size: .86rem; }
    .aim-seg { display: flex; }
    .aim-seg button { flex: 1; padding: 0 8px; }
    .aim-kpi strong { font-size: 1.3rem; }
}
@media (max-width: 380px) {
    .aim-nav button i { display: none; }
}

@media (max-width: 720px) {
    .aim-ic { width: 27px; height: 27px; border-radius: 8px; }
    .aim-io { gap: 4px; }
    .aim-fact { padding: 7px 9px 8px; }
}

/* навигация с два таба: дългото име на десктоп, късото на телефон */
.aim-lbl-short { display: none; }
.aim-nav b { font-weight: inherit; }
.aim-empty-sm { margin: 8px 0; padding: 14px; }
@media (max-width: 720px) {
    .aim-lbl-full { display: none; }
    .aim-lbl-short { display: inline; }
}

/* ---- основният модел се отличава от резервите ---- */
.aim-row--primary {
    background: linear-gradient(135deg, #fff6e4 0%, #fbe7c3 100%);
    border: 1.5px solid #d9a85f; box-shadow: inset 5px 0 0 #c4883a, 0 3px 12px rgba(196, 136, 58, .18);
    padding-left: 20px;
}
.aim-row--primary .aim-name { font-size: 1.08rem; font-weight: 800; color: #2b231d; }
.aim-row--primary .aim-pos {
    display: inline-flex; align-items: center; gap: 6px; width: fit-content; background: #3a2f26; color: #f6d9a6;
    border-radius: 999px; padding: 3px 11px 3px 9px; font-size: .68rem; letter-spacing: .08em;
}
.aim-row--primary .aim-pos i { font-size: .62rem; color: #f0b94b; }
.aim-row--primary .aim-fact { border-color: #ecd4a6; }

.aim-row--reserve { background: #f8f4ee; border: 1px dashed #e0d3c2; }
.aim-row--reserve .aim-name { font-size: .92rem; font-weight: 600; color: #5a4a3a; }
.aim-row--reserve .aim-pos { display: inline-flex; align-items: center; gap: 6px; color: #8a7866; }
.aim-row--reserve .aim-pos i { color: #b8a794; font-size: .66rem; }
.aim-row--reserve .aim-fact { background: #fffdfa; }

/* бутон „копирай ID" до името на модела */
.aim-name { display: flex; align-items: center; gap: 8px; }
.aim-name-text { min-width: 0; overflow-wrap: anywhere; }
.aim-copy {
    flex: none; width: 30px; height: 30px; min-height: 30px !important; border-radius: 9px; border: 1px solid #e6d4bf; background: #fff;
    color: #a8743f; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: .78rem; padding: 0;
}
.aim-copy:hover { background: #fbf4ec; }
.aim-copy.is-done { background: #e8f6ec; border-color: #bfe3c9; color: #1f7a3a; }
.aim-copy.is-fail { background: #fff5f4; border-color: #f0c2be; color: #b3261e; }
@media (max-width: 720px) { .aim-copy { width: 40px; height: 40px; min-height: 40px !important; } }

/* връзки към OpenRouter */
.aim-or {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; text-decoration: none;
    background: #3a2f26; color: #fff; font-size: .88rem; font-weight: 800; border: 1px solid #3a2f26; white-space: nowrap; box-sizing: border-box;
}
.aim-or i { color: #f1d3a6; font-size: .8rem; }
.aim-or:hover { background: #2b231d; color: #fff; }
a.aim-ext { text-decoration: none; }
@media (max-width: 720px) {
    .aim-or { width: 100%; justify-content: center; }
}

/* ссылката към модела е със същия вид като бутона за копиране */
.aim-ext {
    flex: none; width: 30px; height: 30px; border-radius: 9px; border: 1px solid #e6d4bf; background: #fff; color: #a8743f;
    display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; text-decoration: none;
}
.aim-ext:hover { background: #fbf4ec; color: #a8743f; }
@media (max-width: 720px) { .aim-ext { width: 40px; height: 40px; } }

/* ======================================================================
   Подредба „Лента“ (10.10.2026, вариант А от docs/mockups/ai-models-variants.html) - за всички размери
   ====================================================================== */
.aim-wrap { max-width: 1100px; }
.aim-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.aim-spark { width: 84px; height: 26px; display: block; }
.aim-money { font-weight: 800; font-variant-numeric: tabular-nums; }
.aim-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aim-a .aim-top h1 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; }
.aim-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.aim-a .aim-kpis { margin-bottom: 16px; }
.aim-ulist { border: 1px solid #efe4d8; border-radius: 16px; overflow: hidden; background: #fff; }
.aim-u { border-top: 1px solid #efe4d8; }
.aim-u:first-child { border-top: 0; }
.aim-u.aim-dirty { box-shadow: inset 4px 0 0 #d4a574; }
.aim-u-h {
    display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 18px; grid-template-areas: "d n c x" ". m m .";
    gap: 5px 10px; align-items: center; width: 100%; padding: 12px 14px; border: 0; background: #fff; text-align: left; color: inherit; cursor: pointer; min-height: 0 !important;
}
.aim-u-h:hover { background: #fdf9f3; }
.aim-u.is-open .aim-u-h { background: #fbf4ec; }
.aim-u-h > .aim-dot { grid-area: d; }
.aim-u-n { grid-area: n; min-width: 0; }
.aim-u-n b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .93rem; }
.aim-u-n small { color: #8a7866; font-size: .72rem; }
.aim-u-m { grid-area: m; display: flex; align-items: center; gap: 8px; min-width: 0; }
.aim-u-m .aim-mono { font-size: .78rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aim-u-s { display: none; }
.aim-u-c { grid-area: c; text-align: right; }
.aim-u-c small { display: block; color: #8a7866; font-size: .68rem; }
.aim-u-h > .aim-caret { grid-area: x; color: #a8743f; }
.aim-u.is-open .aim-caret { transform: rotate(180deg); }
.aim-u-b { display: none; padding: 6px 14px 18px; background: #fbf4ec; border-top: 1px dashed #e6d4bf; }
.aim-u.is-open .aim-u-b { display: block; }
.aim-hpanel { display: none; margin-top: 16px; border: 1px solid #efe4d8; border-radius: 16px; padding: 4px 16px 14px; background: #fff; }
.aim-hpanel.on { display: block; }
.aim-hpanel .aim-area { margin-top: 12px; }

/* разходът на употребата в разгънатия ред */
.aim-ucost { margin: 12px 0 14px; background: #fff; border: 1px solid #efe4d8; border-radius: 14px; padding: 12px 14px; }
.aim-ucost-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.aim-ucost-top b { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #8a7866; }
.aim-ucost-top .aim-money { font-size: 1.1rem; }
.aim-ucost-top small { color: #8a7866; font-size: .76rem; }
.aim-ucost .aim-chart { height: 84px; }
.aim-ucost-m { margin-top: 10px; display: grid; gap: 4px; }
.aim-ucost-m div { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: #5a4a3a; }
.aim-ucost-m .aim-mono { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* от 561px: един ред на употреба с мини-графика (компютър и таблет) */
@media (min-width: 561px) {
    .aim-u-h { grid-template-columns: 14px minmax(150px, 1.1fr) minmax(0, 1.4fr) 92px 96px 18px; grid-template-areas: "d n m s c x"; padding: 13px 18px; gap: 12px; }
    .aim-u-s { display: block; grid-area: s; }
    .aim-u-b { padding: 6px 18px 20px 46px; }
}

/* ---- блог: модели по етап ---- */
.aim-stages { display: grid; gap: 8px; margin: 10px 0 4px; }
.aim-stage { background: #fff; border: 1px solid #efe4d8; border-radius: 13px; padding: 10px 12px; display: grid; gap: 6px; }
.aim-stage.is-bad { border-color: #f0c2be; background: #fffafa; }
.aim-stage-l { font-size: .84rem; font-weight: 800; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.aim-stage-l small { font: .68rem ui-monospace, Menlo, monospace; color: #8a7866; font-weight: 600; }
.aim-stage-in { display: flex; gap: 8px; align-items: center; }
.aim-stage-input { flex: 1; min-width: 0; min-height: 42px; background: #fff; color: #2b231d; border: 1px solid #e6d4bf; border-radius: 11px; padding: 0 12px; font: 600 .86rem ui-monospace, Menlo, Consolas, monospace; }
.aim-stage-input:focus { outline: 2px solid #d4a574; outline-offset: 0; border-color: #d4a574; }
.aim-stage-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.aim-flag { font-size: .7rem; padding: 2px 9px; border-radius: 999px; background: #f6ece1; color: #5a4a3a; border: 1px solid #efe4d8; white-space: nowrap; }
.aim-flag.ok { color: #1f7a3a; background: #f3fbf5; border-color: #bfe3c9; }
.aim-flag.warn { color: #9a5b00; background: #fffaf0; border-color: #f0d6a8; }
.aim-flag.bad { color: #b3261e; background: #fff5f4; border-color: #f0c2be; font-weight: 700; }
.aim-alert { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #b3261e; background: #fde4e1; border-radius: 999px; padding: 2px 8px; }
@media (max-width: 560px) { .aim-stage-in { flex-wrap: wrap; } .aim-stage-in .aim-ico-test { flex: 1; } }

/* ---- fal.ai ---- */
.aim-price-input { max-width: 180px; }
.aim-fal-compat { min-height: 24px; }
.aim-test a { color: #a8743f; font-weight: 700; }
