/* MYCOVITA Asistan — 2026-09-04 code injection foot'tan temaya taşındı (Codex M-02).
   Kök `.mv-toggle, .mv-chat`; tema yazı tipini devralır. ≤768 px gizli. */
:root { --mvc-primary: #1b3322; --mvc-primary-dark: #142719; --mvc-accent: #8B6F47; --mvc-bg: #F8F5F0; --mvc-surface: #fff; --mvc-text: #1A1A1A; --mvc-muted: #6B6B6B; --mvc-border: rgba(27, 51, 34, .12); --mvc-bot: #EFE9E0; --mvc-shadow: 0 8px 32px rgba(27, 51, 34, .20); --mvc-radius: 16px; }
.mv-toggle, .mv-toggle *, .mv-chat, .mv-chat * { box-sizing: border-box; margin: 0; padding: 0; font-family: inherit; }
.mv-toggle { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; border-radius: 50%; background: var(--mvc-primary); color: #fff; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--mvc-shadow); z-index: 95; transition: transform .2s ease, bottom .25s ease; }
.mv-toggle:hover { transform: scale(1.05); }
.mv-toggle svg { width: 28px; height: 28px; }
.mv-chat { position: fixed; bottom: 96px; right: 24px; width: 420px; height: 640px; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); background: var(--mvc-surface); color: var(--mvc-text); border-radius: var(--mvc-radius); box-shadow: var(--mvc-shadow); display: flex; flex-direction: column; overflow: hidden; z-index: 96; border: 1px solid var(--mvc-border); animation: mvc-slide-up .25s ease; }
.mv-chat[hidden] { display: none; }
@keyframes mvc-slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mv-header { background: #fff; color: var(--mvc-primary); padding: 14px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--mvc-border); }
.mv-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--mvc-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.mv-chat-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.mv-chat-sub { font-size: 12px; color: var(--mvc-muted); display: flex; align-items: center; gap: 6px; }
.mv-status-dot { width: 7px; height: 7px; background: #5CB85C; border-radius: 50%; }
.mv-hbtn { background: none; border: 0; cursor: pointer; color: var(--mvc-muted); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.mv-hbtn:first-of-type { margin-left: auto; }
.mv-hbtn:hover { background: var(--mvc-bg); color: var(--mvc-primary); }
.mv-messages { flex: 1; overflow-y: auto; padding: 18px 16px; background: var(--mvc-bg); display: flex; flex-direction: column; gap: 10px; }
.mv-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; animation: mvc-fade-in .2s ease; }
@keyframes mvc-fade-in { from { opacity: 0; } to { opacity: 1; } }
.mv-msg.bot { background: var(--mvc-bot); color: var(--mvc-text); border-bottom-left-radius: 4px; align-self: flex-start; }
.mv-msg.user { background: var(--mvc-primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.mv-msg.bot p { margin: 0 0 8px; }
.mv-msg.bot p:last-child { margin-bottom: 0; }
.mv-sources { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--mvc-border); font-size: 12.5px; }
.mv-sources-t { display: block; margin-bottom: 4px; color: var(--mvc-muted); font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; }
.mv-sources ul { margin: 0; padding: 0 0 0 16px; }
.mv-sources li { margin: 2px 0; }
.mv-sources a { color: var(--mvc-primary); text-decoration: underline; }
.mv-sources a:hover { color: var(--mvc-primary-dark); }
.mv-msg.toxic-alert { background: #dc3545; color: #fff; border: 2px solid #a71d2a; font-weight: 600; }
.mv-msg.toxic-alert a { color: #fff; text-decoration: underline; }
.mv-input-area { padding: 12px 14px; background: #fff; border-top: 1px solid var(--mvc-border); display: flex; gap: 8px; align-items: flex-end; position: relative; }
.mv-feature-tag { font-size: 10px; font-weight: 600; color: var(--mvc-accent); text-transform: uppercase; letter-spacing: 1px; padding: 6px 14px; background: #fff; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--mvc-border); }
.mv-feature-tag span { width: 6px; height: 6px; background: #5CB85C; border-radius: 50%; display: inline-block; animation: mvc-blink 2s infinite; }
@keyframes mvc-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.mv-img-preview-box { position: absolute; bottom: 65px; left: 14px; background: #fff; padding: 5px; border-radius: 10px; border: 1px solid var(--mvc-border); box-shadow: var(--mvc-shadow); z-index: 10; }
.mv-img-preview-box[hidden] { display: none; }
.mv-img-preview-box img { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; display: block; }
.mv-remove-img { position: absolute; top: -10px; right: -10px; background: #E24B4A; color: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 12px; }
.mv-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.mv-input { flex: 1; border: 1px solid var(--mvc-border); border-radius: 20px; padding: 10px 14px; font-size: 14px; resize: none; max-height: 80px; background: transparent; color: var(--mvc-text); }
.mv-input:focus-visible { outline: 2px solid var(--mvc-primary); outline-offset: 1px; }
.mv-send, .mv-upload-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--mvc-primary); color: #fff; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; flex: none; }
.mv-send:disabled { opacity: .5; cursor: default; }
.mv-upload-btn { background: none; color: var(--mvc-accent); }
.mv-upload-btn:hover { color: var(--mvc-primary); }
.mv-typing { display: none; align-self: flex-start; background: var(--mvc-bot); padding: 12px 14px; border-radius: 14px; }
.mv-typing.show { display: flex; gap: 4px; }
.mv-typing span { width: 7px; height: 7px; background: var(--mvc-muted); border-radius: 50%; animation: mvc-bounce 1.2s infinite; }
@keyframes mvc-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
.mv-session-warning { background: #fff3cd; border: 1px solid #ffc107; color: #856404; padding: 8px 12px; font-size: 11px; text-align: center; }
.mv-chat-note { padding: 6px 14px; text-align: center; font-size: 10px; line-height: 1.4; color: var(--mvc-muted); background: #fff; border-top: 1px solid var(--mvc-border); }
.mv-chat-note a { color: inherit; text-decoration: underline; }
@media (max-width: 768px) { .mv-toggle, .mv-chat { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mv-chat, .mv-msg, .mv-feature-tag span, .mv-typing span { animation: none !important; } }
@media print { .mv-toggle, .mv-chat { display: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
