/* Раздел «Улучшить помощника» (/improve): поверх style.css кабинета */
body.imp { height: auto; min-height: 100%; }
.imp-top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.imp-top h1 { font-size: 18px; margin: 0; flex: 1; }
.imp-top a.link { text-decoration: none; color: var(--accent); }
.imp-tabs { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.imp-tabs button { border: 0; background: var(--panel); padding: 7px 14px; cursor: pointer; }
.imp-tabs button.on { background: var(--accent); color: #fff; }
.imp-main { max-width: 1200px; margin: 0 auto; padding: 16px; }
.imp-cols { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.imp-list { display: flex; flex-direction: column; gap: 8px; }
.req { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.req:hover { border-color: var(--accent); }
.req.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.req.unread b::after { content: " •"; color: var(--accent); }
.tag { align-self: flex-start; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eef0f3; color: var(--muted); }
.tag.ok { background: #e3f5e8; color: #1f7a3a; }
.tag.dev { background: #fff3d6; color: #8a5a00; }
.tag.wait { background: #e5f3fb; color: var(--accent-dark); }
.tag.bad { background: #fde8e7; color: var(--danger); }
.imp-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.imp-card h2 { font-size: 18px; margin: 0 0 10px; }
.imp-card h3 { font-size: 15px; margin: 20px 0 8px; }
.imp-card .f-title { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }
.req-head { display: flex; gap: 10px; align-items: center; }
.req-head h2 { margin: 0; flex: 1; }
.imp-thread { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.im { border-radius: 10px; padding: 10px 12px; max-width: 92%; }
.im.rop { background: var(--bubble-user); align-self: flex-end; }
.im.bot, .im.dev { background: #fff; border: 1px solid var(--border); }
.im.dev { border-color: #f0c96a; }
.im.typing { color: var(--muted); font-size: 13px; }
.im-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.im-text { white-space: pre-wrap; line-height: 1.45; overflow-wrap: anywhere; }
.im-img { max-height: 160px; border-radius: 8px; border: 1px solid var(--border); margin-top: 6px; }
.im-file { display: inline-block; margin: 6px 6px 0 0; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); font-size: 14px; }
.cmp textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; resize: vertical; }
.cmp textarea:focus { outline: none; border-color: var(--accent); }
.composer-box.drag .cmp textarea { border-color: var(--accent); background: #f3faff; }
.cmp-row { display: flex; gap: 16px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.att-prev { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.att-prev .att { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.att-prev img { height: 40px; border-radius: 4px; }
.chg { border-top: 1px solid var(--border); padding: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.chg.reverted { opacity: .6; }
.chg-act { display: flex; gap: 12px; align-items: start; }
.chg .diff { grid-column: 1 / -1; font: 13px/1.45 ui-monospace, Menlo, monospace; background: var(--bg); border-radius: 8px; padding: 8px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
.d-add { background: #dff5e4; }
.d-del { background: #fde4e2; text-decoration: line-through; color: #8c2f2b; }
.d-eq { color: var(--muted); }
.d-gap { color: var(--muted); text-align: center; }
button.danger { color: var(--danger); }
.primary-link { display: inline-block; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
@media (max-width: 800px) {
  .imp-cols { grid-template-columns: minmax(0, 1fr); }
  .imp-main { padding: 12px; }
  .im { max-width: 100%; }
}
.imp-tabs button { color: var(--text); font-size: 14px; white-space: nowrap; }
.cmp-row .file-label { color: var(--accent); }
@media (max-width: 800px) { .imp-top h1 { flex-basis: calc(100% - 140px); } .imp-tabs { width: 100%; } .imp-tabs button { flex: 1; } }
