/* ============================================================
   Cami Funes · Abogada — hoja de estilos
   Paleta fija de marca (no adaptativa a tema claro/oscuro):
   crema #f2f2e9 · verde #293d33 · verde salvia #516058
   ============================================================ */

:root{
  --cream:      #f2f2e9;
  --cream-dim:  #e7e7d8;
  --ink:        #293d33;
  --ink-soft:   #3c5148;
  --sage:       #516058;
  --sage-tint:  #c9d1c9;
  --line:       rgba(41,61,51,0.16);
  --line-cream: rgba(242,242,233,0.28);
  --shadow:     0 10px 30px rgba(41,61,51,0.14);
  --shadow-sm:  0 2px 10px rgba(41,61,51,0.10);
  --radius:     2px;
  --maxw:       1180px;
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Georgia', serif;
  --font-body:    'Raleway', -apple-system, 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}
@media (min-width: 900px){
  .wrap{ padding-left: 40px; padding-right: 40px; }
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}
.on-ink .eyebrow{ color: var(--sage-tint); }
.eyebrow::before{
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section{ padding: 68px 0; position: relative; }
@media (min-width: 900px){ .section{ padding: 108px 0; } }

.section-title{
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.08;
}
.section-lead{
  margin-top: 16px;
  max-width: 62ch;
  font-size: 17px;
  color: var(--ink-soft);
}
.on-ink .section-lead{ color: var(--sage-tint); }

.on-ink{ background: var(--ink); color: var(--cream); }
.on-ink h1,.on-ink h2,.on-ink h3,.on-ink h4{ color: var(--cream); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-fill{ background: var(--ink); color: var(--cream); }
.btn-fill:hover{ background: var(--ink-soft); }
.btn-line{ border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover{ background: var(--ink); color: var(--cream); }
.on-ink .btn-fill{ background: var(--cream); color: var(--ink); }
.on-ink .btn-fill:hover{ background: var(--sage-tint); }
.on-ink .btn-line{ border-color: var(--cream); color: var(--cream); }
.on-ink .btn-line:hover{ background: var(--cream); color: var(--ink); }
.btn-sm{ padding: 10px 18px; font-size: 13px; }
.btn[disabled]{ opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  box-shadow: 0 2px 14px rgba(41,61,51,0.12);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand-mark{ height: 26px; width: auto; }
.brand-mark img{ height: 100%; width: auto; }

.main-nav{ display: none; }
@media (min-width: 980px){
  .main-nav{
    display: flex;
    align-items: center;
    gap: 30px;
  }
  .main-nav a{
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink);
    position: relative;
    padding: 4px 0;
  }
  .main-nav a::after{
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -2px;
    height: 1.5px;
    background: var(--ink);
    transition: right 0.25s ease;
  }
  .main-nav a:hover::after{ right: 0; }
}
.header-cta{ display: none; }
@media (min-width: 980px){ .header-cta{ display: inline-flex; } }

.hamburger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  border: none;
  color: var(--ink);
}
@media (min-width: 980px){ .hamburger{ display: none; } }
.hamburger svg{ width: 24px; height: 24px; }

.mobile-menu{
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--cream);
  z-index: 55;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow-y: auto;
  box-shadow: 0 12px 24px rgba(41,61,51,0.14);
}
.mobile-menu.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 980px){ .mobile-menu{ display: none; } }
.mobile-menu .wrap{ padding-top: 28px; padding-bottom: 40px; }
.mobile-menu a{
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  color: var(--ink);
}
.mobile-menu .header-cta{ display: inline-flex; margin-top: 26px; }
.mobile-menu a.btn{
  border-bottom: none;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  padding: 15px 28px;
  color: var(--cream);
}

/* ---------- Hero ---------- */
.hero{ padding: 40px 0 60px; }
@media (min-width: 900px){ .hero{ padding: 64px 0 90px; } }
.hero .wrap{
  display: flex;
  flex-direction: column;
  gap: 34px;
}
@media (min-width: 900px){
  .hero .wrap{ flex-direction: row; align-items: center; gap: 60px; }
  .hero-media{ flex: 0 0 46%; }
  .hero-copy{ flex: 1; }
}
.hero-media{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-media img{ width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.hero-media::after{
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--line);
  pointer-events: none;
}
.hero-rating{
  position: absolute;
  left: 18px; bottom: 18px;
  background: var(--cream);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
}
.hero-rating .stars{ color: var(--ink); letter-spacing: 1px; font-size: 13px; }
.hero-copy h1{
  font-size: clamp(38px, 7.6vw, 64px);
  line-height: 1.04;
  margin-top: 14px;
}
.hero-copy .lead{
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions{
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-chips{
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sage);
}

/* ---------- About ---------- */
.about-grid{
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 900px){
  .about-grid{ flex-direction: row; gap: 70px; align-items: flex-start; }
  .about-media{ flex: 0 0 38%; }
  .about-copy{ flex: 1; }
}
.about-media img{
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-copy p{
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.75;
}
.about-copy p:first-of-type{ margin-top: 22px; }
.badge-row{
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.badge-uba{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 9px 16px;
  border: 1px solid var(--line-cream);
  color: var(--cream);
}
.juris-title{
  margin-top: 36px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-tint);
}
.juris-list{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.juris-list li{
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  position: relative;
  padding-left: 18px;
}
.juris-list li::before{
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px;
  background: var(--cream);
  border-radius: 50%;
}

/* ---------- Practice areas ---------- */
.practice-grid{
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 760px){
  .practice-grid{ grid-template-columns: 1fr 1fr; gap: 28px; }
}
.practice-card{
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 34px 30px 36px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.practice-card:hover{ box-shadow: var(--shadow); transform: translateY(-3px); }
.practice-icon{
  width: 52px; height: 52px;
  object-fit: contain;
  display: block;
}
.practice-card.reveal .practice-icon{ animation: iconFloat 4.5s ease-in-out infinite; }
@keyframes iconFloat{
  0%,100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-6px) rotate(-3deg); }
}
.practice-card h3{
  margin-top: 22px;
  font-size: 26px;
}
.practice-card p{
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.practice-list{ margin-top: 20px; display: grid; gap: 10px; }
.practice-list li{
  font-size: 14.5px;
  padding-left: 20px;
  position: relative;
  color: var(--ink);
}
.practice-list li::before{
  content: "—";
  position: absolute; left: 0; top: 0;
  color: var(--sage);
}
.practice-note{
  margin-top: 30px;
  font-size: 14px;
  color: var(--sage);
  max-width: 60ch;
}

/* ---------- Quote / texture ---------- */
.quote-section{
  padding: 90px 0;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(41,61,51,0.86), rgba(41,61,51,0.90)), var(--texture-url);
  background-size: 480px;
  background-repeat: repeat;
  color: var(--cream);
  text-align: center;
}
.quote-section blockquote{
  margin: 0 auto;
  max-width: 18ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(30px, 6vw, 50px);
  line-height: 1.2;
}
.quote-section cite{
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-tint);
}

/* ---------- Testimonials ---------- */
.rating-summary{
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.rating-number{ font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; }
.rating-meta .stars{ font-size: 18px; letter-spacing: 3px; }
.rating-meta p{ margin-top: 6px; font-size: 13.5px; color: var(--sage); }
.review-grid{
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 760px){ .review-grid{ grid-template-columns: repeat(3,1fr); } }
.review-card{
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 26px 24px;
}
.review-card .stars{ font-size: 13px; letter-spacing: 2px; }
.review-card p{ margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.review-card footer{ margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; }
.review-cta{ margin-top: 34px; }

/* ---------- Blog ---------- */
.blog-grid{
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
@media (min-width: 760px){ .blog-grid{ grid-template-columns: repeat(3,1fr); } }
.blog-card{
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.blog-card:hover{ box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card .thumb{
  aspect-ratio: 16/11;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.blog-card .thumb .mono{ width: 44px; height: 44px; opacity: 0.85; }
.blog-card .body{ padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-tag{
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}
.blog-card h3{ font-size: 22px; line-height: 1.2; }
.blog-card .excerpt{ font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.blog-card .meta{ margin-top: 6px; font-size: 12.5px; color: var(--sage); display: flex; justify-content: space-between; align-items: center; }
.blog-empty{
  margin-top: 44px;
  border: 1px dashed var(--line);
  padding: 50px 30px;
  text-align: center;
  color: var(--sage);
}

/* Blog post detail */
.post-view{ padding: 40px 0 100px; }
.post-hero-tag{ margin-top: 18px; }
.post-title{ margin-top: 18px; font-size: clamp(30px,6vw,48px); }
.post-meta{ margin-top: 14px; font-size: 13.5px; color: var(--sage); }
.post-cover{ margin-top: 30px; aspect-ratio: 16/8; overflow: hidden; }
.post-cover img{ width: 100%; height: 100%; object-fit: cover; }
.post-body{ margin-top: 34px; max-width: 68ch; font-size: 17.5px; line-height: 1.85; }
.post-body p{ margin-top: 20px; }
.post-body p:first-child{ margin-top: 0; }
.back-link{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sage);
}

/* ---------- Contact ---------- */
.contact-grid{
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 760px){ .contact-grid{ grid-template-columns: repeat(2,1fr); gap: 24px; } }
.contact-card{
  border: 1px solid var(--line-cream);
  padding: 26px 24px;
}
.contact-card h4{ font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-tint); font-family: var(--font-body); font-weight: 700; }
.contact-card p, .contact-card a{ margin-top: 12px; font-size: 18px; font-family: var(--font-display); font-weight: 600; }
.contact-card .sub{ margin-top: 6px; font-family: var(--font-body); font-size: 13.5px; font-weight: 400; color: var(--sage-tint); }
.social-row{ margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }
.social-pill{
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-cream);
  padding: 10px 18px;
  font-size: 13px; font-weight: 600;
}
.social-pill:hover{ background: var(--cream); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: var(--cream); padding: 56px 0 26px; }
.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}
@media (min-width: 760px){ .footer-grid{ grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; } }
.footer-logo{ height: 30px; }
.footer-logo img{ height: 100%; width: auto; }
.site-footer .tagline{ margin-top: 16px; font-size: 14px; color: var(--sage-tint); max-width: 34ch; }
.footer-col h5{ font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-tint); font-weight: 700; }
.footer-col ul{ margin-top: 16px; display: grid; gap: 10px; }
.footer-col a{ font-size: 14.5px; }
.footer-col a:hover{ text-decoration: underline; }
.footer-bottom{
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line-cream);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--sage-tint);
}
.footer-bottom a{ color: var(--sage-tint); }
.footer-bottom a:hover{ color: var(--cream); }

/* ---------- Floating WhatsApp ---------- */
.wa-float{
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 70;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.wa-float:hover{ transform: scale(1.06); }
.wa-float svg{ width: 26px; height: 26px; }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- Admin ---------- */
.admin-shell{ min-height: 100vh; background: var(--cream); padding: 30px 0 90px; }
.admin-top{ display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-top h1{ font-size: 28px; }
.admin-gate{
  max-width: 380px;
  margin: 90px auto;
  padding: 40px 32px;
  background: var(--cream);
  border: 1px solid var(--line);
  text-align: center;
}
.admin-gate h1{ font-size: 26px; }
.admin-gate p{ margin-top: 10px; font-size: 14px; color: var(--sage); }
.field{ margin-top: 18px; text-align: left; }
.field label{ display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sage); margin-bottom: 7px; }
.field input, .field textarea, .field select{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.field textarea{ resize: vertical; min-height: 120px; line-height: 1.6; }
.field-hint{ margin-top: 6px; font-size: 12px; color: var(--sage); }
.admin-error{ margin-top: 14px; font-size: 13px; color: #8a2e2e; }
.admin-tabs{ margin-top: 30px; display: flex; gap: 10px; border-bottom: 1px solid var(--line); }
.admin-tab{
  padding: 12px 4px; margin-right: 20px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--sage); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none;
}
.admin-tab.active{ color: var(--ink); border-bottom-color: var(--ink); }
.admin-panel{ margin-top: 30px; }
.admin-card{ background: #fff; border: 1px solid var(--line); padding: 26px 24px; margin-bottom: 22px; }
.admin-card h3{ font-size: 19px; }
.field-grid{ display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
@media (min-width: 700px){ .field-grid.two{ grid-template-columns: 1fr 1fr; } }
.admin-save-row{ margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.save-status{ font-size: 13px; color: var(--sage); }
.post-row{
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.post-row .thumb-sm{ width: 56px; height: 56px; background: var(--ink); flex-shrink: 0; overflow: hidden; }
.post-row .thumb-sm img{ width: 100%; height: 100%; object-fit: cover; }
.post-row .info{ flex: 1; min-width: 0; }
.post-row .info strong{ display: block; font-size: 15px; }
.post-row .info span{ font-size: 12.5px; color: var(--sage); }
.post-row .actions{ display: flex; gap: 8px; }
.icon-btn{
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff;
}
.icon-btn:hover{ background: var(--cream-dim); }
.cover-picker{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.cover-opt{ display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border: 2px solid transparent; overflow: hidden; opacity: 0.7; cursor: pointer; }
.cover-opt img{ width: 100%; height: 100%; object-fit: cover; }
.cover-opt.selected{ border-color: var(--ink); opacity: 1; }
.cover-opt.none{ background: var(--ink); display: flex; align-items: center; justify-content: center; color: var(--cream); font-size: 10px; text-align: center; }

.hidden{ display: none !important; }

/* ---------- Formulario de contacto público ---------- */
.contact-form{
  margin-top: 44px;
  max-width: 640px;
  background: rgba(242,242,233,0.06);
  border: 1px solid var(--line-cream);
  padding: 30px 26px;
}
.contact-form .field label{ color: var(--sage-tint); }
.contact-form .field input, .contact-form .field textarea{
  background: rgba(242,242,233,0.96);
}
.contact-form-title{ font-size: 20px; font-family: var(--font-display); font-weight: 600; }
.form-note{ margin-top: 10px; font-size: 13px; color: var(--sage-tint); }
.form-alert{
  margin-top: 18px;
  padding: 14px 16px;
  font-size: 14px;
  border: 1px solid var(--line-cream);
}
.form-alert.ok{ background: rgba(242,242,233,0.1); }
.form-alert.err{ color: #e6b3b3; }

/* ---------- Bandeja de mensajes (admin) ---------- */
.msg-row{
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.msg-row.is-unread{ background: rgba(41,61,51,0.04); }
.msg-row .dot{
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); margin-top: 8px; flex-shrink: 0;
}
.msg-row.is-read .dot{ background: var(--line); }
.msg-row .content{ flex: 1; min-width: 0; }
.msg-row .top{ display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.msg-row strong{ font-size: 15px; }
.msg-row .when{ font-size: 12px; color: var(--sage); }
.msg-row .text{ margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); white-space: pre-wrap; }
.msg-row .channel{ margin-top: 8px; font-size: 12.5px; color: var(--sage); }
.msg-row .actions{ display: flex; gap: 8px; flex-shrink: 0; }
.msg-empty{ padding: 40px 0; text-align: center; color: var(--sage); }
.tab-badge{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--ink); color: var(--cream);
  border-radius: 999px; font-size: 10.5px; font-weight: 700;
  margin-left: 6px;
}
.admin-flash{
  margin-top: 20px; padding: 14px 18px;
  border: 1px solid var(--line); background: #fff;
  font-size: 14px;
}
.admin-flash.ok{ border-color: var(--ink); }
.admin-flash.err{ border-color: #8a2e2e; color: #8a2e2e; }
.field input[type="file"]{ padding: 9px 10px; background: #fff; }
.field-note{ margin-top: 8px; font-size: 12.5px; color: var(--sage); }

@media print{
  .site-header, .wa-float, .mobile-menu{ display: none; }
}
