.item-page { display: grid; gap: 1.3rem; }
.item-header { display: flex; align-items: flex-start; gap: 1rem; }
.item-header h1 { margin-top: 0; }
.item-icon { width: 5rem; height: 5rem; flex: none; }
.item-path { overflow-wrap: anywhere; color: #42576a; }
.item-badges, .item-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.item-badges span { background: #e7eef3; border-radius: 1rem; padding: .3rem .7rem; }
.item-descriptions { display: grid; gap: .5rem; }
.item-descriptions details, .item-history, .item-chat { background: white; border: 1px solid #d5dfe6; border-radius: .6rem; padding: 1rem; }
.item-descriptions summary { cursor: pointer; font-weight: 700; }
.item-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.item-column { min-width: 0; padding: 1rem; border: 2px solid; border-radius: .7rem; }
.item-column.current { background: #eef4fa; border-color: #6285a7; }
.item-column.suggestion { background: #f4effa; border-color: #9273ad; }
.item-column.draft { background: #edf8ef; border-color: #6c9e78; }
.item-column h2 { font-size: 1.2rem; margin-top: 0; }
.item-column textarea, .item-chat textarea { box-sizing: border-box; width: 100%; min-height: 16rem; resize: vertical; font: inherit; }
.item-chat textarea { min-height: 5rem; }
.item-column button, .item-chat button, .item-history button, .item-modal button { min-height: 44px; }
.item-count.over { color: #a50000; font-weight: bold; }
.item-count.target { color: #9b5000; font-weight: bold; }
.item-pre, .item-preview, .item-diff { white-space: pre-wrap; overflow-wrap: anywhere; }
.item-diff, .item-preview { max-height: 25rem; overflow: auto; background: #fff; padding: .7rem; }
.diff-added { background: #d5f3dd; color: #145724; }
.diff-removed { background: #fde0df; color: #85201d; }
.item-notice:empty { display: none; }
.item-notice.success { background: #d9f4df; color: #145724; padding: .8rem; }
.item-notice.error { background: #fde0df; color: #85201d; padding: .8rem; }
.item-modal { position: fixed; inset: 0; z-index: 10; background: #0009; display: grid; place-items: center; padding: 1rem; }
.item-modal-panel { background: white; border-radius: .7rem; padding: 1.5rem; width: min(100%, 34rem); box-sizing: border-box; }
.version-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.version-row span { flex: 1 1 12rem; }
.chat-messages { display: flex; flex-direction: column; gap: .7rem; max-height: 32rem; overflow: auto; margin-bottom: 1rem; }
.chat-message { max-width: 85%; padding: .7rem; border-radius: .7rem; background: #edf1f5; align-self: flex-start; }
.chat-message.pavel { align-self: flex-end; background: #dceef9; }
.chat-message time { display: inline-block; margin-left: .8rem; color: #526573; font-size: .85rem; }
.chat-message p { margin-bottom: 0; }
@media (max-width: 850px) { .item-columns { grid-template-columns: 1fr; } .item-icon { width: 3.5rem; height: 3.5rem; } }
