/* BeaverApp — LPSCo */
:root {
  --ink: #0f172a;
  --cream: #faf7f2;
  --sand: #e8e2d8;
  --accent: #c45c26;
  --accent-dark: #9a4318;
  --forest: #14532d;
  --muted: #334155;
  --white: #ffffff;
  --radius: 12px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  /* Outer frame: fallback behind global background image */
  --page-frame: #c4562e;
  --app-bg-image: url("../images/BeaverApp_background.png");
  /* Main column: lighter wash so BeaverApp_background.png reads more clearly */
  --main-gradient-soft: linear-gradient(
    175deg,
    rgba(255, 253, 246, 0.62) 0%,
    rgba(254, 246, 220, 0.55) 22%,
    rgba(253, 236, 196, 0.5) 48%,
    rgba(252, 228, 176, 0.46) 72%,
    rgba(250, 216, 154, 0.42) 100%
  );
  /* Header / footer: darker terracotta bands (readability over bg image) */
  --header-bar: linear-gradient(
    180deg,
    rgba(118, 52, 30, 0.96) 0%,
    rgba(95, 42, 24, 0.97) 45%,
    rgba(78, 34, 20, 0.98) 100%
  );
  --logo-plate: linear-gradient(
    145deg,
    rgba(62, 28, 16, 0.98) 0%,
    rgba(88, 40, 22, 0.97) 45%,
    rgba(72, 32, 18, 0.98) 100%
  );
  --bright-yellow: #facc15;
  --bright-yellow-glow: #fde047;
  --caption-orange: #ff6a00;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background-color: var(--page-frame);
  background-image: var(--app-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
}

/* Middle content area: warm wash over global PNG background */
main {
  flex: 1 0 auto;
  width: 100%;
  background: var(--main-gradient-soft);
  background-attachment: scroll;
}

a {
  color: #9a3412;
  font-weight: 600;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
}

.site-header a {
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--header-bar);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.68rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

/* Prominent logo on a darker plate */
.brand-logo-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 0.68rem;
  background: var(--logo-plate);
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand img {
  width: clamp(73px, 11.2vw, 96px);
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 2vw, 1.08rem);
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.brand-text > span:not(.nyc-badge) {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 2vw, 1.08rem);
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.nyc-badge {
  font-size: 0.62rem;
  font-weight: 600;
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.2rem 0.44rem;
  border-radius: 999px;
  margin-top: 0.28rem;
  display: inline-block;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.8rem;
}

nav a {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  padding: 0.36rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

nav a:hover,
nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Landing page only: yellow header title lines + hero paragraphs */
body.home .brand-text strong {
  color: var(--bright-yellow-glow);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

body.home .brand-text > span:not(.nyc-badge) {
  color: var(--bright-yellow);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

body.home .hero-lede {
  color: #0a0a0a;
  text-shadow: none;
}

body.home .hero-lede-tight {
  margin-top: 0.8rem;
}

/* Landing hero photo captions — scaled with compact home layout */
body.home .hero-photos figcaption {
  color: var(--caption-orange);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
  font-size: 0.84rem;
  line-height: 1.35;
}

/* Hero — home uses compact vertical rhythm (~20% tighter); flush under sticky header */
.hero {
  padding: 0 0 1.6rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.92rem, 4.8vw, 2.88rem);
  margin: 0 0 0.4rem;
  color: var(--forest);
}

.hero .welcome {
  display: inline-block;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pop-in 0.9s ease both;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-lede {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.9);
  max-width: 52ch;
}

.motto {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.8vw, 1.48rem);
  color: var(--accent-dark);
  max-width: 40ch;
  animation: motto-in 1.2s ease 0.2s both;
}

@keyframes motto-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phrase-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.phrase-cloud li {
  font-size: clamp(0.76rem, 1.6vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.28rem 0.52rem;
  border-radius: 6px;
  color: var(--white);
  background: var(--forest);
  animation: floaty 4s ease-in-out infinite;
}

.phrase-cloud li:nth-child(2n) {
  background: var(--accent);
  animation-delay: 0.5s;
}

.phrase-cloud li:nth-child(3n) {
  background: #0f766e;
  animation-delay: 1s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 1.6rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.hero-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.hero-photos figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.12);
}

.hero-photos figcaption {
  font-size: 0.62rem;
  color: rgba(15, 23, 42, 0.78);
  padding: 0.28rem 0 0;
}

body.home .hero-photos img {
  width: 100%;
  height: min(22vh, 143px);
  object-fit: cover;
  display: block;
}

/* Buttons — compact (~20% smaller padding / type) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.52rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  border: 2px solid #5c2d0e;
  background: linear-gradient(180deg, #e8853a 0%, #c45c26 48%, #9a4318 100%);
  color: var(--white);
  box-shadow:
    0 3px 0 #4a2510,
    0 6px 16px rgba(74, 37, 16, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #f09448 0%, #d4652e 48%, #a84a1c 100%);
  border-color: #3d1f0c;
  box-shadow:
    0 2px 0 #3d1f0c,
    0 8px 20px rgba(74, 37, 16, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #3d1f0c,
    0 3px 10px rgba(74, 37, 16, 0.35),
    inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    0 2px 0 #4a2510,
    0 4px 12px rgba(74, 37, 16, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}

/* Sections */
section.page-section {
  padding: 2.5rem 0 3rem;
}

section.page-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 1rem;
  color: var(--forest);
}

.services-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: start;
}

.service-card img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

/* Service line titles — same size as .btn label (e.g. Contact Us) */
.service-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--caption-orange);
  font-weight: 800;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Gallery */
.gallery-intro {
  color: rgba(15, 23, 42, 0.88);
  max-width: 65ch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.gallery-grid figure {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--sand);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--caption-orange);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.58));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.before-after {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .before-after {
    grid-template-columns: 1fr 1fr;
  }
}

.before-after h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.pair figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sand);
}

.pair figcaption {
  font-size: 0.8rem;
  color: var(--caption-orange);
  font-weight: 800;
  margin-top: 0.35rem;
}

.video-block {
  margin-top: 2rem;
}

.video-block .meta {
  color: rgba(15, 23, 42, 0.88);
}

.video-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .video-row {
    grid-template-columns: 1fr 1fr;
  }
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
}

.testimonial-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--sand);
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 0.98rem;
}

.testimonial-card cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-weight: 700;
  color: var(--forest);
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contact */
.form-grid {
  max-width: 560px;
  display: grid;
  gap: 1rem;
}

label span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(196, 92, 38, 0.35);
  border-color: var(--accent);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  font-size: 0.85rem;
  color: #b91c1c;
  min-height: 1.1rem;
}

.captcha-box {
  background: var(--white);
  border: 1px dashed var(--sand);
  border-radius: var(--radius);
  padding: 1rem;
}

.captcha-box label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.captcha-question {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--forest);
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.status-msg {
  font-size: 0.95rem;
  font-weight: 600;
}

.status-msg.ok {
  color: var(--forest);
}

.status-msg.err {
  color: #b91c1c;
}

/* Contact page — tighter vertical rhythm so form + chrome fit a typical laptop viewport */
body.contact-page .header-inner {
  padding: 0.55rem 0;
}

body.contact-page .brand img {
  width: clamp(72px, 11vw, 100px);
}

body.contact-page .brand-logo-wrap {
  padding: 0.45rem 0.65rem;
}

body.contact-page section.page-section {
  padding: 0.6rem 0 0.75rem;
}

body.contact-page section.page-section h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.3rem;
}

body.contact-page .gallery-intro {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  line-height: 1.35;
  max-width: 72ch;
}

body.contact-page .form-grid {
  gap: 0.4rem;
  max-width: 640px;
}

@media (min-width: 700px) {
  body.contact-page .form-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.1rem;
    row-gap: 0.35rem;
  }

  body.contact-page .form-grid > div:nth-child(3),
  body.contact-page .form-grid > div:nth-child(4),
  body.contact-page .form-grid > div:nth-child(5),
  body.contact-page .form-grid > div:nth-child(6),
  body.contact-page .form-grid > div:nth-child(7) {
    grid-column: 1 / -1;
  }
}

body.contact-page .form-grid label span {
  margin-bottom: 0.1rem;
  font-size: 0.86rem;
}

body.contact-page input[type="text"],
body.contact-page input[type="email"],
body.contact-page input[type="tel"],
body.contact-page textarea {
  padding: 0.35rem 0.5rem;
  font-size: 0.95rem;
}

body.contact-page textarea {
  min-height: 56px;
  resize: vertical;
}

body.contact-page .field-error {
  min-height: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.15;
  margin: 0;
}

body.contact-page .captcha-box {
  padding: 0.45rem 0.6rem;
}

body.contact-page .captcha-box .hint {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  line-height: 1.3;
}

body.contact-page .captcha-question {
  font-size: 0.92rem;
}

body.contact-page label.hint {
  font-size: 0.8rem;
  line-height: 1.3;
}

body.contact-page .form-actions {
  gap: 0.45rem;
  padding-top: 0.1rem;
}

body.contact-page .status-msg {
  font-size: 0.85rem;
}

body.contact-page .site-footer {
  margin-top: 0.55rem;
}

/* Footer — compact bar; contact split into two columns on wide screens */
.site-footer {
  margin-top: 2rem;
  padding: 0.52rem 0 0.68rem;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  background: linear-gradient(
    180deg,
    rgba(118, 52, 30, 0.96) 0%,
    rgba(95, 42, 24, 0.97) 55%,
    rgba(78, 34, 20, 0.98) 100%
  );
  color: #fff7ed;
  font-size: 0.68rem;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.site-footer a {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .footer-contact strong {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  font-family: var(--font-display);
  font-size: 1.3em;
  font-weight: 700;
}

.footer-grid {
  display: grid;
  gap: 0.4rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.footer-contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1rem;
  margin-top: 0.12rem;
  align-items: start;
}

.footer-contact-block {
  font-style: normal;
  line-height: 1.32;
  margin: 0;
}

@media (max-width: 640px) {
  .footer-contact-cols {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.footer-meta {
  text-align: left;
  color: rgba(255, 250, 245, 0.92);
}

@media (min-width: 800px) {
  .footer-meta {
    text-align: right;
  }
}

.footer-meta small {
  display: block;
  line-height: 1.32;
  font-size: 0.95em;
}

body.home .site-footer {
  margin-top: 1rem;
}

.cta-row {
  margin: 1.2rem 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--white);
  z-index: 100;
}

/* --- Log analyzer (internal) --- */
body.loganalyzer-page main.la-main {
  min-height: calc(100vh - 200px);
}

.la-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 0 2rem;
}

.la-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.la-lede {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 52ch;
}

.la-login-form {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.la-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.la-input {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  font: inherit;
  max-width: 100%;
}

.la-msg {
  margin: 0;
  font-size: 0.95rem;
}

.la-msg--err {
  color: #b91c1c;
  font-weight: 600;
}

.la-msg--ok {
  color: var(--forest);
}

.la-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.la-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.la-meta {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.la-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 38vh;
}

.la-panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
}

.la-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.la-grid-scroll {
  flex: 1 1 auto;
  overflow: auto;
  max-height: min(45vh, 520px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.la-grid-scroll--leads {
  max-height: min(40vh, 480px);
}

.la-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.la-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(254, 243, 220, 0.98), rgba(252, 231, 196, 0.96));
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.12);
}

.la-table th,
.la-table td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
}

.la-table th {
  font-weight: 700;
  white-space: nowrap;
}

.la-col-datetime {
  min-width: 12.5rem;
  white-space: nowrap;
}

.la-table--leads .la-col-datetime {
  min-width: 13.5rem;
}

.la-col-phone {
  min-width: 9.25rem;
  white-space: nowrap;
}

.la-table--nested {
  font-size: 0.82rem;
}

.la-group {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.45);
}

.la-group-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 0.75rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.la-group-summary::-webkit-details-marker {
  display: none;
}

.la-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(196, 92, 38, 0.15);
  color: var(--accent-dark);
  font-size: 0.85rem;
}

.la-ip {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9rem;
}

.la-sum-meta {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.88rem;
}

.la-table-wrap {
  padding: 0 0.5rem 0.5rem;
}

.la-ua {
  max-width: 28rem;
  word-break: break-word;
  font-size: 0.78rem;
  color: var(--muted);
}

.la-cell-page {
  word-break: break-all;
}

.la-msg-cell {
  max-width: 22rem;
  word-break: break-word;
}

.la-empty {
  padding: 1rem;
  margin: 0;
  color: var(--muted);
}

.mono {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 0.88em;
}

body.loganalyzer-page .footer-note {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
}
