/* Thin strip above the searches (shared/strip.js): mark, text and actions stay in one row; a long text wraps beside them. */
.home-strip { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 6px 6px 10px; border-radius: 22px; background: var(--surface-card); color: var(--text); animation: home-strip-in .42s cubic-bezier(.16, 1, .3, 1) both; }
.home-strip-mark { display: grid; flex: none; width: 24px; height: 24px; place-items: center; border-radius: 50%; }
.home-strip-text { flex: 1; min-width: 0; margin: 0; color: #e4e4e4; font-size: 14px; font-weight: 500; line-height: 1.3; text-wrap: pretty; }

/* without a mark the text keeps the inset of the rounded edge */
.home-strip-text:first-child { padding-left: 6px; }
.home-strip-actions { display: flex; flex: none; align-items: center; gap: 4px; }
.home-strip-action { display: inline-flex; min-height: 32px; align-items: center; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fill-control); color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.home-strip-action:hover { background: var(--fill-control-hover); color: #ffdc85; }
.home-strip-action:disabled { opacity: .6; cursor: default; }
.home-strip-action.is-quiet { color: #e4e4e4; }
.home-strip-action.is-quiet:hover { color: #fff; }
.home-strip-close { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #929292; cursor: pointer; transition: background .2s, color .2s; }
.home-strip-close:hover { background: var(--fill-control); color: #e4e4e4; }
.home-strip-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.home-strip-answers { display: flex; gap: 4px; }

/* the AI search an agent's message is about, above its text */
.home-strip-search { display: block; margin-bottom: 3px; color: #929292; font-size: 13px; font-weight: 600; line-height: 1.3; }

/* the agent's message keeps a readable text column: when its answers and «Скрыть» would squeeze it, they drop under it, together on the right */
.home-strip.is-message { flex-wrap: wrap; row-gap: 6px; padding-block: 10px 6px; }
.home-strip.is-message .home-strip-text { flex: 1 1 360px; padding-right: 8px; }
.home-strip.is-message .home-strip-actions { margin-left: auto; }
/* an answered message: a check draws in, then the strip fades away */
.home-strip.is-accepted { justify-content: center; animation: home-strip-out .35s ease-in 1s both; }
.home-strip-accepted { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 14px; font-weight: 600; animation: home-strip-in .3s cubic-bezier(.16, 1, .3, 1) both; }
.home-strip-accepted svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; animation: home-strip-check .35s ease-out .1s forwards; }
@keyframes home-strip-check { to { stroke-dashoffset: 0; } }
@keyframes home-strip-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes home-strip-in { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .home-strip { animation: none; }

  /* without the animation the check is drawn at once */
  .home-strip-accepted svg { stroke-dashoffset: 0; }
}
