.ai-page {max-width:1100px;margin:auto}
.ai-page h2 {font-size:1.15rem;margin:24px 0 12px}
.avito-connect.button {display:grid;grid-template-columns:auto auto 1fr auto;align-items:start;gap:10px;width:272px;max-width:100%;min-height:84px;padding:18px;text-align:left;color:#fafafa;background:linear-gradient(120deg,#202424,#18191c 55%,#2c2e34);border:1px solid #484a4e;border-radius:16px;box-shadow:inset 0 1px 0 #ffffff0d}
.avito-connect:hover {border-color:#86898e}
.avito-name strong,.avito-name small {display:block}
.avito-name strong {font-size:18px;line-height:24px}
.avito-name small {margin-top:3px;color:#c2c4c7;font-size:12px;font-weight:450}
.avito-mark {width:23px;height:24px;background:radial-gradient(circle at 6px 6px,#00aaff 0 5.5px,transparent 6px),radial-gradient(circle at 18px 6px,#599df6 0 4.5px,transparent 5px),radial-gradient(circle at 5.5px 18px,#97cf00 0 5px,transparent 5.5px),radial-gradient(circle at 17px 18px,#ff4053 0 5px,transparent 5.5px)}
.avito-status {justify-self:start;border-radius:999px;padding:5px 10px;background:#393b40;color:#fafafa;font-size:12px;line-height:16px}
.avito-connect.is-connected .avito-status {color:#c0f6ce;background:#124a35}
.avito-connect svg {align-self:center;color:#d5d6d8}
@media(max-width:660px){.ai-page .page-actions,.avito-connect.button{width:100%}}
.ai-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ai-row.button {display:flex;align-items:center;justify-content:flex-start;width:100%;text-align:left;gap:12px;padding:12px;margin-bottom:6px;height:auto;min-height:52px;white-space:normal}
.ai-row span {flex:1;min-width:0;overflow-wrap:anywhere}
.ai-row strong,.ai-row small,.ai-message small {display:block}
.ai-row svg {flex:0 0 18px;width:18px}
.ai-row small,.ai-message small {color:var(--muted);font-weight:400}
.ai-empty,.ai-message {padding:12px;background:var(--panel);border-radius:12px}
.ai-message {white-space:pre-wrap;overflow-wrap:anywhere}
.ai-thread {max-height:36vh;overflow:auto;display:grid;gap:8px}
.ai-preview-note {margin:0 0 16px;color:var(--muted)}
.ai-preview {max-height:36dvh;overscroll-behavior:contain}
.ai-preview .ai-message {width:fit-content;max-width:88%;padding:9px 13px;border:1px solid var(--border)}
.ai-preview .ai-buyer {justify-self:end}
.ai-preview .ai-store {justify-self:start;background:var(--surface)}
.ai-compose {margin-top:16px}
.ai-status {margin:0;color:var(--muted)}
.ai-status:empty {display:none}
.ai-page button:focus-visible {outline:2px solid currentColor;outline-offset:2px}
@media(max-width:660px){.ai-columns{grid-template-columns:minmax(0,1fr);gap:0}dialog:has([data-do="extraPage"]){margin:auto auto 0;width:100%;max-width:none;padding-bottom:env(safe-area-inset-bottom)}}
