/* ── Импорт из любых программ: просьба ИИ-агенту → план → «Да» → страницы нового проекта в окне Beat Flow (сценка js/scenes/import.js) ── */
.imp-from{display:inline-block;min-width:7.4em;padding:0 .15em;border-bottom:2px dashed color-mix(in srgb,var(--acc) 70%,transparent);color:var(--text);font-weight:600;text-align:center}
.imp-from.is-new{animation:imp-in .5s var(--ease) both}
@keyframes imp-in{from{opacity:0;translate:0 .25em}to{opacity:1;translate:0 0}}

.im{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:stretch;gap:1.6em;padding:1.5em 2em}
.im-side{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;gap:.7em;min-height:0}
.im-cap{font-size:.9em;font-weight:600;letter-spacing:.02em;color:var(--muted)}
.im-ask{align-self:flex-start;max-width:100%;padding:.75em 1.05em;border-radius:1em 1em 1em .3em;background:color-mix(in srgb,var(--acc) 15%,var(--plate));box-shadow:0 0 0 1.5px var(--acc);color:var(--text);font-size:1.08em;line-height:1.35}
.im-from{font-weight:650}
.im-chips{display:flex;flex-wrap:wrap;gap:.4em}
.im-chip{height:2.1em;padding:0 .85em;border-radius:999px;background:var(--plate);box-shadow:0 0 0 1px var(--hair);color:var(--text-soft);font-size:.92em;cursor:pointer;transition:box-shadow .2s,background .25s,color .2s}
.im-chip:hover{color:var(--text);box-shadow:0 0 0 1px var(--hair-2)}
.im-chip[aria-pressed="true"]{background:var(--acc);color:var(--acc-ink);box-shadow:none;font-weight:600}
.im-plan{display:flex;flex-direction:column;gap:.4em;padding:.85em 1em;border-radius:1em;background:var(--plate);box-shadow:var(--lift),0 0 0 1px var(--hair-2)}
.im-plan-h{font-size:.86em;font-weight:600;color:var(--muted)}
.im-plan-t{font-size:.98em;line-height:1.4;color:var(--text)}
.im-plan.is-done .im-plan-t{color:var(--muted)}
.im-acts{display:flex;gap:.5em}
.im-yes{height:2.3em;padding:0 1.4em;border-radius:999px;background:var(--acc);color:var(--acc-ink);font-size:.98em;font-weight:600;cursor:pointer}
.im-done{display:flex;align-items:center;gap:.55em;font-size:.95em;color:var(--text)}
.im-done[hidden]{display:none}
.im-ok{flex:none;display:grid;place-items:center;width:1.5em;height:1.5em;border-radius:50%;background:var(--acc);color:var(--acc-ink)}
.im-ok .ic{width:.95em;height:.95em;stroke-width:2}

.im-win{position:relative;z-index:2;display:flex;flex-direction:column;min-height:0;border-radius:1.1em;background:var(--bg);box-shadow:0 0 0 1px var(--hair);overflow:hidden}
.im-head{display:flex;align-items:center;gap:.7em;padding:.75em 1em;border-bottom:1px solid var(--hair)}
.im-dots{flex:none;width:2.6em;height:.7em;background:radial-gradient(circle,var(--hair-2) .3em,transparent .32em) 0 0/.9em .7em repeat-x}
.im-proj{display:flex;align-items:center;gap:.45em;min-width:0;color:var(--text)}
.im-proj b{font-weight:620;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.im-proj .ic{flex:none;width:1.1em;height:1.1em}
.im-count{margin-left:auto;flex:none;font-size:.85em;color:var(--muted);font-variant-numeric:tabular-nums}
.im-list{display:flex;flex-direction:column;gap:.3em;padding:.8em;list-style:none;margin:0}
.im-list:empty{flex:1;justify-content:center;align-items:center}
.im-list:empty::before{content:"Новый проект появится здесь";font-size:.92em;color:var(--muted)}
.im-page{display:flex;align-items:center;gap:.6em;padding:.5em .75em;border-radius:.7em;background:var(--plate);color:var(--text-soft);animation:im-page .45s var(--spring) both}
.im-page .ic{flex:none;width:1.05em;height:1.05em;color:var(--acc)}
@keyframes im-page{from{opacity:0;translate:-1.2em 0;scale:.96}to{opacity:1;translate:0 0;scale:1}}
.im-win.is-filled{box-shadow:0 0 0 1.5px var(--acc)}
@media (prefers-reduced-motion:reduce){.im-page,.imp-from.is-new{animation:none}}

@container (max-width:560px){
  .im{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:.6em;padding:.9em}
  .im-side{gap:.45em}
  .im-cap{display:none}
  .im-ask{font-size:1em;padding:.6em .85em}
  .im-chip{min-height:2.35em;height:auto;padding:.25em .8em;font-size:.9em}
  .im-chip:nth-child(n+6){display:none}
  .im-yes{min-height:2.6em;height:auto;padding:.3em 1.5em}
  .im-plan{padding:.65em .8em;gap:.3em}
  .im-list{padding:.55em;gap:.25em}
  .im-page{padding:.35em .6em}
  .im-page:nth-child(n+4){display:none}
}
