/* Стиль Редакто: серое шасси без цвета, один синий акцент. */
:root {
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --surface-sunken: #f0f0f0;
  --text: #0a0a0a;
  --text-secondary: #404040;
  --text-muted: #737373;
  --border: #e4e4e4;
  --accent: #1c1c1c;
  --blue: #2563eb;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--surface-soft);
}

* { box-sizing: border-box; }
body { margin: 0; padding: 24px; }
h1 { font-size: 40px; font-weight: 500; letter-spacing: -0.01em; color: var(--blue); margin: 0 0 8px; }
h2 { font-size: 20px; font-weight: 500; margin: 0 0 12px; }
.top { max-width: 1300px; margin: 0 auto 24px; }
.lead { font-size: 17px; line-height: 1.5; color: var(--text-secondary); margin: 0 0 8px; max-width: 900px; }
.hint, .note { font-size: 14px; line-height: 1.5; color: var(--text-muted); margin: 0 0 12px; }
.grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.col { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; min-height: 70vh; }
.feed { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; max-height: 60vh; }
.msg { font-size: 15px; line-height: 1.45; padding: 10px 14px; border-radius: 14px; max-width: 90%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--accent); color: #f5f5f5; }
.msg.shop { align-self: flex-start; background: var(--surface-sunken); }
.msg.system { align-self: center; color: var(--text-muted); font-size: 13px; }
.msg a { color: var(--blue); }
.msg.me a { color: #bfdbfe; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
button { font: inherit; font-size: 14px; border: 1px solid var(--border); background: var(--surface-soft); color: var(--text); border-radius: 10px; padding: 7px 12px; cursor: pointer; }
button:hover { background: var(--surface-sunken); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.send { display: flex; gap: 8px; }
.send input { flex: 1; font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid #8c8c8c; border-radius: 10px; }
.send button { background: var(--accent); color: #f5f5f5; border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.note.after { margin: 12px 0 0; }
.journal { flex: 1; overflow-y: auto; max-height: 60vh; margin: 0; padding-left: 20px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); }
.journal li { margin-bottom: 4px; overflow-wrap: anywhere; }
.status { max-width: 1300px; margin: 12px auto 0; font-size: 14px; color: var(--text-muted); min-height: 1.5em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
  .col { min-height: auto; }
  .feed, .journal { max-height: 50vh; }
}
