body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1A1A1A;
    color: #f5f5f5;
}

header {
    background: #1A1A1A;
    padding: 15px 20px;
    font-size: 20px;
    border-bottom: 1px solid #333;
}

.container {
    display: flex;
    height: calc(100vh - 60px);
}

/* ЛЕВАЯ ЧАСТЬ */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* РАЗДЕЛИТЕЛЬ */
.resizer {
    width: 6px;
    cursor: col-resize;
    background: #333;
}
.resizer:hover {
    background: #E88C00;
}

/* ПРАВАЯ ЧАСТЬ (ЧАТ) */
.chat {
    width: 380px;
    min-width: 260px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    background: #222;
    padding: 15px;
}

/* ОБЩИЕ БЛОКИ */
.search-box,
.results,
.ai-diagnostic {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.short-input {
    width: 33%;
    min-width: 200px;
    display: block;
    margin-top: 10px;
}

input, select, textarea {
    padding: 10px;
    font-size: 16px;
    background: #111;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
}

textarea {
    width: 100%;
    min-height: 80px;
}

.buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    background: #E88C00;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #ff9f1a;
}

/* CHAT */
.chat-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    margin-bottom: 10px;
}

.message {
    margin-bottom: 8px;
}

.user { text-align: right; }
.ai { text-align: left; color: #E88C00; }

.chat-input {
    display: flex;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    background: #111;
    color: #fff;
    border: none;
}

.chat-input button {
    width: 80px;
}

/* Markdown */
.message.ai h1, .message.ai h2, .message.ai h3 {
    margin: 8px 0 6px;
}
.message.ai p { margin: 6px 0; }
.message.ai ul { margin-left: 18px; }

