/* =========================================================================
   MonteVellum — "Surveyor's Chart"
   A boutique corporate & real estate advisory in Montenegro, styled after
   the object it actually produces: a clean, plotted, registrable boundary.
   Coastline contour of the Boka Kotorska bay threads the whole page as a
   watermark; reference codes read like real cadastral parcel numbers.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Public+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --deep:      #0E2A2E;
  --deep-2:    #123338;
  --deep-3:    #0A2124;
  --paper:     #EDE7D6;
  --paper-2:   #E3DCC7;
  --brass:     #A9793F;
  --brass-2:   #C9954F;
  --verdigris: #5B8C7B;
  --verdigris-2: #79B39C;
  --ink:       #12181A;
  --ink-soft:  #33403F;
  --cream:     #F6F2E7;
  --line:      rgba(169, 121, 63, 0.28);
  --line-dim:  rgba(237, 231, 214, 0.14);

  --display: 'Newsreader', Georgia, serif;
  --body:    'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --container: 1180px;
  --radius: 1px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* -------------------------------------------------------------------- */
/* Coordinate / reference mark — the recurring motif                    */
/* -------------------------------------------------------------------- */

.mv-coord {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--verdigris-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mv-coord::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.mv-coord::after {
  content: "";
}

/* -------------------------------------------------------------------- */
/* Header                                                                */
/* -------------------------------------------------------------------- */

.mv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 42, 46, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dim);
}

.mv-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

.mv-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
}
.mv-mark-glyph { font-family: var(--mono); font-size: 12px; color: var(--verdigris-2); letter-spacing: 0.02em; }
.mv-mark-logo { height: 50px; width: auto; display: block; }

.mv-footer-logo { height: 32px; width: auto; display: block; margin-bottom: 14px; }

.mv-wordmark {
  font-family: var(--display);
  font-style: italic;
  font-size: 21px;
  letter-spacing: 0.01em;
}

.mv-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13.5px;
  color: rgba(246, 242, 231, 0.68);
  flex: 1;
  justify-content: center;
}
.mv-nav a { transition: color 0.2s ease; position: relative; }
.mv-nav a:hover { color: var(--verdigris-2); }

.mv-nav-cta {
  border: 1px solid var(--line);
  padding: 9px 20px;
  border-radius: var(--radius);
  color: var(--cream) !important;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.mv-nav-cta:hover { border-color: var(--brass); background: rgba(169,121,63,0.1); }

.mv-lang {
  display: flex;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: rgba(246, 242, 231, 0.4);
  padding-left: 22px;
  border-left: 1px solid var(--line-dim);
}
.mv-lang-link:hover { color: var(--verdigris-2); }

.mv-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------------- */
/* Hero — the coastline watermark lives here                            */
/* -------------------------------------------------------------------- */

.mv-hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 110px;
  border-bottom: 1px solid var(--line-dim);
}

.mv-chart-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.mv-chart-bg svg { width: 100%; height: 100%; }

.mv-hero-inner { position: relative; z-index: 2; max-width: 700px; }

.mv-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--verdigris-2);
  border: 1px solid var(--line);
  padding: 7px 14px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.mv-h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.06;
  color: var(--cream);
  margin-bottom: 28px;
}
.mv-h1 em {
  font-style: italic;
  color: var(--verdigris-2);
}

.mv-hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(246, 242, 231, 0.72);
  max-width: 540px;
  margin-bottom: 42px;
}

.mv-hero-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.mv-btn {
  display: inline-block;
  background: var(--brass);
  color: var(--deep-3) !important;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 15px 30px;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.15s ease;
}
.mv-btn:hover { background: var(--brass-2); transform: translateY(-1px); }

.mv-btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream) !important;
}
.mv-btn-outline:hover { border-color: var(--brass); }

.mv-cta-note { font-size: 13px; color: rgba(246,242,231,0.5); font-family: var(--mono); }

.mv-plot-line {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--line-dim);
}
.mv-plot-line .mv-coord { color: rgba(246,242,231,0.55); }
.mv-plot-line .mv-coord strong { color: var(--cream); font-weight: 500; }

/* -------------------------------------------------------------------- */
/* Shared section chrome                                                 */
/* -------------------------------------------------------------------- */

.mv-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--verdigris-2);
  text-transform: uppercase;
  margin: 0 0 20px;
}

.mv-h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--cream);
  margin-bottom: 20px;
  max-width: 640px;
  line-height: 1.15;
}
.mv-h2 em { font-style: italic; color: var(--verdigris-2); }

.mv-section-intro {
  color: rgba(246, 242, 231, 0.68);
  font-size: 16.5px;
  max-width: 600px;
  line-height: 1.7;
}

section { padding: 100px 0; }
.mv-on-paper { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mv-on-paper .mv-eyebrow { color: var(--brass); }
.mv-on-paper .mv-h2 { color: var(--ink); }
.mv-on-paper .mv-h2 em { color: var(--brass); }
.mv-on-paper .mv-section-intro { color: var(--ink-soft); }

/* -------------------------------------------------------------------- */
/* Mandates (services) — cadastral parcel cards                         */
/* -------------------------------------------------------------------- */

.mv-parcels {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mv-parcel {
  background: var(--paper);
  padding: 34px 32px;
  position: relative;
  transition: background 0.2s ease;
}
.mv-parcel:hover { background: var(--cream); }

.mv-parcel-ref {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brass);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 16px;
}

.mv-parcel-title {
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
}

.mv-parcel-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--verdigris);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mv-parcel-desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* -------------------------------------------------------------------- */
/* Cases — anonymized case files, closed mandates                       */
/* -------------------------------------------------------------------- */

.mv-cases { padding-top: 84px; }

.mv-case-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mv-case {
  background: var(--paper);
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
}

.mv-case-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.mv-case-ref {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brass);
  letter-spacing: 0.02em;
}

.mv-case-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--verdigris);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mv-case-row { margin-bottom: 18px; }
.mv-case-row:last-child { margin-bottom: 0; }

.mv-case-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 6px;
}

.mv-case-row p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

.mv-case-outcome {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.mv-case-outcome .mv-case-label { color: var(--brass); opacity: 1; }
.mv-case-outcome p { color: var(--ink); font-weight: 500; }

/* -------------------------------------------------------------------- */
/* Approach — survey field notes                                        */
/* -------------------------------------------------------------------- */

.mv-approach { background: var(--deep-2); }

.mv-notes {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dim);
}

.mv-note {
  background: var(--deep-2);
  padding: 0 32px 0 0;
}
.mv-note:not(:first-child) { padding-left: 32px; }

.mv-note-tick {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--verdigris-2);
  margin-bottom: 14px;
  display: block;
}

.mv-note h3 {
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 10px;
  font-style: italic;
}
.mv-note p { font-size: 14.5px; color: rgba(246,242,231,0.65); line-height: 1.65; margin: 0; }

/* -------------------------------------------------------------------- */
/* Advisor — the name on the file                                       */
/* -------------------------------------------------------------------- */

.mv-advisor { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mv-advisor .mv-eyebrow { color: var(--brass); }
.mv-advisor .mv-h2 { color: var(--ink); }
.mv-advisor .mv-h2 em { color: var(--brass); }

.mv-advisor-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}

.mv-advisor-photo-wrap {
  position: relative;
  border: 1px solid var(--brass);
  padding: 10px;
  background: var(--cream);
}
.mv-advisor-photo-wrap::before {
  content: "MV / ADVISOR";
  position: absolute;
  top: -10px;
  left: 22px;
  background: var(--paper);
  color: var(--brass);
  border: 1px solid var(--brass);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 2px 10px;
}

.mv-advisor-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05) sepia(0.08);
}

.mv-advisor-name {
  font-family: var(--display);
  font-size: 21px;
  color: var(--ink);
  margin: 4px 0 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.mv-advisor-name span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--verdigris);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mv-advisor-bio { color: var(--ink-soft); font-size: 15.5px; line-height: 1.75; max-width: 560px; margin: 0 0 22px; }

.mv-advisor-note {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  max-width: 560px;
  margin: 0;
}

@media (max-width: 720px) {
  .mv-advisor-inner { grid-template-columns: 1fr; gap: 32px; }
  .mv-advisor-photo-wrap { max-width: 260px; }
}

/* -------------------------------------------------------------------- */
/* Process — chain of custody ledger                                    */
/* -------------------------------------------------------------------- */

.mv-process { background: var(--deep); }

.mv-ledger { margin-top: 56px; max-width: 780px; }

.mv-ledger-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line-dim);
  position: relative;
}
.mv-ledger-row:first-child { border-top: none; }
.mv-ledger-row:last-child::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  border-bottom: 1px solid var(--line-dim);
}

.mv-ledger-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--verdigris-2);
  padding-top: 3px;
}
.mv-ledger-code span { display: block; color: rgba(246,242,231,0.4); font-size: 11px; margin-top: 3px; }

.mv-ledger-row h3 { font-size: 18px; color: var(--cream); margin-bottom: 8px; font-weight: 500; }
.mv-ledger-row p { font-size: 14.5px; color: rgba(246,242,231,0.65); line-height: 1.65; margin: 0; max-width: 560px; }

/* -------------------------------------------------------------------- */
/* Contact — the intake                                                 */
/* -------------------------------------------------------------------- */

.mv-contact { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }

.mv-contact-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}

.mv-contact-text { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; max-width: 480px; }

.mv-contact-box {
  background: var(--deep);
  color: var(--cream);
  border: 1px solid var(--brass);
  padding: 40px;
  border-radius: var(--radius);
  position: relative;
}
.mv-contact-box::before {
  content: "MV / INTAKE";
  position: absolute;
  top: -10px;
  left: 32px;
  background: var(--paper);
  color: var(--brass);
  border: 1px solid var(--brass);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 2px 10px;
}

.mv-contact-box .mv-btn { width: 100%; text-align: center; margin-bottom: 16px; }

.mv-contact-sla {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--verdigris-2);
  margin: 0 0 20px;
}
.mv-contact-sla-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--verdigris-2);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(121, 179, 156, 0.18);
}

.mv-contact-note {
  font-size: 13px;
  color: rgba(246,242,231,0.55);
  line-height: 1.6;
  border-top: 1px solid var(--line-dim);
  padding-top: 18px;
}

/* -------------------------------------------------------------------- */
/* Footer                                                                */
/* -------------------------------------------------------------------- */

.mv-footer {
  background: var(--deep-3);
  padding: 48px 0 32px;
  font-size: 13.5px;
  color: rgba(246,242,231,0.5);
}

.mv-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-dim);
  gap: 20px;
  flex-wrap: wrap;
}
.mv-footer-row p { margin: 6px 0 0; }
.mv-footer-row a:hover { color: var(--verdigris-2); }
.mv-footer-links { display: flex; gap: 24px; }

.mv-disclaimer { max-width: 780px; line-height: 1.6; margin: 0 0 14px; }
.mv-copyright { font-family: var(--mono); font-size: 11.5px; }
.mv-reg { font-family: var(--mono); font-size: 11.5px; margin-top: 4px; color: rgba(246,242,231,0.5); }
.mv-reg a { color: inherit; text-decoration: underline; text-decoration-color: rgba(246,242,231,0.3); text-underline-offset: 2px; }
.mv-reg a:hover { color: var(--verdigris-2); text-decoration-color: currentColor; }

/* -------------------------------------------------------------------- */
/* Focus states / motion                                                */
/* -------------------------------------------------------------------- */

a:focus-visible, button:focus-visible {
  outline: 1px solid var(--verdigris-2);
  outline-offset: 3px;
}

.mv-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.mv-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .mv-reveal { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------- */
/* Responsive                                                            */
/* -------------------------------------------------------------------- */

@media (max-width: 980px) {
  .mv-parcels { grid-template-columns: 1fr; }
  .mv-case-grid { grid-template-columns: 1fr; }
  .mv-notes { grid-template-columns: 1fr; gap: 26px; background: none; }
  .mv-note { padding: 0 !important; border-top: 1px solid var(--line-dim); padding-top: 26px !important; }
  .mv-note:first-child { border-top: none; padding-top: 0 !important; }
  .mv-contact-inner { grid-template-columns: 1fr; }
  .mv-nav { display: none; }
  .mv-menu-btn { display: flex; }
}

@media (max-width: 620px) {
  .mv-header-row { height: 66px; }
  .mv-hero { padding: 84px 0 68px; }
  section { padding: 68px 0; }
  .mv-ledger-row { grid-template-columns: 1fr; gap: 10px; }
  .mv-footer-row { flex-direction: column; }
}

/* =========================================================================
   Site assistant widget — "field instrument" styling
   Floating toggle + panel for the on-site chat assistant (chat.php).
   Reuses the tokens defined above (brass/verdigris/paper palette,
   --display/--body/--mono, --radius) so it reads as part of the same
   system rather than a bolted-on widget.
   ========================================================================= */


.mv-chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--deep-3);
  border: 1px solid var(--brass-2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(10, 33, 36, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
}
.mv-chat-toggle:hover { background: var(--brass-2); transform: translateY(-1px); }
.mv-chat-toggle svg { width: 22px; height: 22px; }
.mv-chat-toggle .mv-chat-close-icon { display: none; }
.mv-chat-toggle[aria-expanded="true"] .mv-chat-open-icon { display: none; }
.mv-chat-toggle[aria-expanded="true"] .mv-chat-close-icon { display: block; }

.mv-chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--verdigris-2);
  border: 2px solid var(--deep);
}

.mv-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 80;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 560px;
  max-height: calc(100vh - 140px);
  background: var(--deep-2);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10, 33, 36, 0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mv-chat-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mv-chat-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-dim);
  position: relative;
  flex-shrink: 0;
}
.mv-chat-head::before {
  content: "MV / ASSISTANT";
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--verdigris-2);
  display: block;
  margin-bottom: 6px;
}
.mv-chat-head h2 {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
  margin: 0;
}
.mv-chat-head p {
  font-size: 12.5px;
  color: rgba(246, 242, 231, 0.55);
  margin: 4px 0 0;
  line-height: 1.5;
}

.mv-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mv-chat-log::-webkit-scrollbar { width: 6px; }
.mv-chat-log::-webkit-scrollbar-thumb { background: var(--line); }

.mv-chat-msg {
  max-width: 88%;
  font-size: 14px;
  line-height: 1.55;
  padding: 10px 13px;
  border-radius: var(--radius);
}
.mv-chat-msg.user {
  align-self: flex-end;
  background: var(--brass);
  color: var(--deep-3);
}
.mv-chat-msg.assistant {
  align-self: flex-start;
  background: rgba(246, 242, 231, 0.06);
  border: 1px solid var(--line-dim);
  color: var(--cream);
}
.mv-chat-msg.system {
  align-self: center;
  background: none;
  color: rgba(246, 242, 231, 0.45);
  font-family: var(--mono);
  font-size: 11.5px;
  text-align: center;
  max-width: 100%;
}

.mv-chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 13px;
}
.mv-chat-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--verdigris-2);
  opacity: 0.4;
  animation: mv-chat-bounce 1.1s infinite ease-in-out;
}
.mv-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.mv-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes mv-chat-bounce {
  0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.mv-chat-report {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--verdigris-2);
  border: 1px solid var(--line);
  padding: 7px 12px;
  background: none;
  margin-top: -6px;
}
.mv-chat-report:hover { border-color: var(--brass); color: var(--brass-2); }

.mv-chat-report-form {
  align-self: stretch;
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mv-chat-report-form input {
  background: var(--deep);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--body);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: var(--radius);
}
.mv-chat-report-form input:focus-visible { outline: 1px solid var(--verdigris-2); outline-offset: 1px; }
.mv-chat-report-form-actions { display: flex; gap: 8px; }
.mv-chat-report-form button {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: none;
  color: var(--cream);
}
.mv-chat-report-form button.primary { background: var(--brass); color: var(--deep-3); border-color: var(--brass-2); }
.mv-chat-report-form button.primary:hover { background: var(--brass-2); }
.mv-chat-report-form button:not(.primary):hover { border-color: var(--brass); }

.mv-chat-input-row {
  border-top: 1px solid var(--line-dim);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
}
.mv-chat-input-row textarea {
  flex: 1;
  resize: none;
  background: var(--deep);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: var(--radius);
  height: 100px;
  max-height: 100px;
  overflow-y: auto;
}
.mv-chat-input-row textarea:focus-visible { outline: 1px solid var(--verdigris-2); outline-offset: 1px; }
.mv-chat-input-row button {
  background: var(--brass);
  color: var(--deep-3);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mv-chat-input-row button:hover { background: var(--brass-2); }
.mv-chat-input-row button:disabled { opacity: 0.4; cursor: default; }
.mv-chat-input-row button svg { width: 16px; height: 16px; }

[data-dir="rtl"] .mv-chat-toggle,
[data-dir="rtl"] .mv-chat-panel { right: auto; left: 24px; }
[data-dir="rtl"] .mv-chat-msg.user { align-self: flex-start; }
[data-dir="rtl"] .mv-chat-msg.assistant { align-self: flex-end; }

@media (max-width: 480px) {
  .mv-chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
  .mv-chat-toggle { right: 16px; bottom: 16px; }
  [data-dir="rtl"] .mv-chat-toggle,
  [data-dir="rtl"] .mv-chat-panel { left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mv-chat-panel, .mv-chat-toggle, .mv-chat-typing span { transition: none; animation: none; }
}
