:root {
  --bg: #07111f;
  --surface: #0f1b2b;
  --surface-soft: #142235;
  --text: #edf4fb;
  --text-muted: #b5c2d2;
  --text-soft: #8fa0b4;
  --border: #27384d;
  --primary: #0b73ff;
  --primary-dark: #061b4e;
  --primary-soft: rgba(11, 115, 255, 0.14);
  --accent: #0b73ff;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.22);
  --radius-lg: 24px;
  --radius-sm: 12px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at 18% 0%, rgba(11, 115, 255, 0.16), transparent 30rem),
    linear-gradient(180deg, #0a1728 0%, var(--bg) 100%);
  overflow-x: clip;
}

html.chat-open,
body.chat-open {
  overflow: hidden;
}

body.chat-open {
  position: fixed;
  width: 100%;
}

body.chat-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 27, 78, 0.38);
  backdrop-filter: blur(2px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 31, 0.9);
  border-bottom: 1px solid rgba(143, 160, 180, 0.18);
  backdrop-filter: blur(14px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: clamp(8.75rem, 15vw, 11rem);
  height: auto;
  max-height: 3.5rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  gap: 0.05rem;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-text span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #8fc0ff;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 0.9rem;
  background: rgba(237, 244, 251, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.26rem auto;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.card h3,
.process-card h3,
.feature-list h3,
.contact-copy h2,
.panel-card h2,
.info-card h2 {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.hero h1 {
  max-width: 12.5ch;
  margin: 0;
  font-size: clamp(2.8rem, 6.4vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1.04rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 26px rgba(11, 115, 255, 0.2);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.hero-points,
.services,
.process-grid,
.feature-list,
.contact-checklist {
  display: grid;
}

.hero-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-card,
.card,
.process-card,
.panel-card,
.feature-list article,
.contact-copy,
.contact-form,
.section-note {
  background: var(--surface);
  border: 1px solid rgba(143, 160, 180, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.info-card {
  padding: 1.2rem 1.15rem;
}

.info-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.info-card p,
.card p:last-child,
.process-card p,
.feature-list p,
.contact-copy p,
.field-hint,
.section-note p,
.panel-steps p {
  margin: 0;
  color: var(--text-muted);
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-visual,
.feature-visual {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(143, 160, 180, 0.16);
  box-shadow: var(--shadow);
}

.hero-visual {
  min-height: 24rem;
}

.hero-visual img,
.feature-visual img,
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-card {
  padding: 1.5rem;
}

.panel-label {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-card h2 {
  margin: 0.45rem 0 1rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.panel-steps {
  display: grid;
  gap: 0.9rem;
}

.panel-steps div {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.panel-steps strong {
  display: block;
  margin-bottom: 0.3rem;
}

.section {
  padding: 5.5rem 0;
}

.section-light {
  background: transparent;
}

.section-muted {
  background: linear-gradient(180deg, #091525 0%, #0b1829 100%);
  border-top: 1px solid rgba(143, 160, 180, 0.12);
  border-bottom: 1px solid rgba(143, 160, 180, 0.12);
}

.section-heading {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading-left {
  margin-left: 0;
  text-align: left;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading-left .eyebrow {
  justify-content: flex-start;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-heading p:last-child {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.03rem;
}

.services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  overflow: hidden;
}

.card img {
  aspect-ratio: 4 / 3;
}

.card-content {
  padding: 1.6rem;
}

.card-kicker {
  margin: 0 0 0.6rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card h3,
.process-card h3,
.feature-list h3,
.contact-copy h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.15;
}

.section-note {
  max-width: 52rem;
  margin: 1.5rem auto 0;
  padding: 1rem 1.2rem;
  text-align: center;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-card {
  padding: 1.6rem;
  border-top: 4px solid var(--primary);
}

.step-number {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.feature-layout,
.location-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 1.4rem;
  align-items: stretch;
}

.feature-copy,
.location-copy,
.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-list {
  gap: 1rem;
}

.feature-list article {
  padding: 1.2rem 1.25rem;
}

.location-points,
.faq-list {
  display: grid;
  gap: 1rem;
}

.location-points {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-points article,
.location-card,
.faq-item {
  background: var(--surface);
  border: 1px solid rgba(143, 160, 180, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.location-points article,
.location-card,
.faq-item {
  padding: 1.35rem 1.4rem;
}

.location-points h3,
.location-card h3,
.faq-item h3 {
  margin: 0 0 0.65rem;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.2;
}

.location-points p,
.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

.location-card {
  border-top: 4px solid var(--accent);
}

.location-card ul {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.location-card li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--text-muted);
}

.location-card li::before {
  content: "";
  width: 0.68rem;
  height: 0.68rem;
  margin-top: 0.48rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary);
}

.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item {
  border-top: 4px solid var(--primary);
}

.contact-section {
  background: linear-gradient(180deg, #091525 0%, #07111f 100%);
  border-top: 1px solid rgba(143, 160, 180, 0.12);
}

.contact-copy {
  padding: 2rem;
  border-top: 4px solid var(--primary);
}

.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-checklist {
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-checklist li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text-muted);
}

.contact-checklist li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary);
}

.contact-chat-btn {
  width: fit-content;
  margin-top: 1.4rem;
}

.contact-form {
  padding: 2rem;
}

.field + .field {
  margin-top: 1rem;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.field label {
  font-weight: 700;
}

.field-optional {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

.field-count {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-soft);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(11, 115, 255, 0.62);
  box-shadow: 0 0 0 0.25rem rgba(11, 115, 255, 0.13);
  background: #17283d;
}

.field input[type="file"] {
  padding: 0.8rem 0.9rem;
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #9cc8ff;
  font-weight: 700;
  cursor: pointer;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field-hint {
  margin-top: 0.45rem;
  font-size: 0.92rem;
}

.field.has-error input,
.field.has-error textarea {
  border-color: rgba(185, 28, 28, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(185, 28, 28, 0.08);
}

.field.has-error .field-hint {
  color: #fca5a5;
}

.upload-preview-list {
  display: none !important;
  margin-top: 0.95rem;
}

.upload-preview-list[hidden] {
  display: none !important;
}

.upload-preview-list.is-visible {
  display: block !important;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.upload-preview {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.upload-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.9rem;
  object-fit: cover;
}

.upload-preview-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.35rem;
}

.upload-preview-copy strong,
.upload-preview-copy span {
  overflow-wrap: anywhere;
}

.upload-preview-copy span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.remove-upload {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fca5a5;
  font-weight: 700;
  cursor: pointer;
}

.remove-upload-all {
  margin-top: 0.85rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-weight: 600;
}

.form-status.is-success {
  color: var(--primary);
}

.form-status.is-error {
  color: #b91c1c;
}

.contact-form .btn {
  margin-top: 1.35rem;
}

.contact-form .btn:disabled {
  cursor: progress;
  opacity: 0.8;
  transform: none;
}

.site-footer {
  padding: 1.75rem 0 7rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(143, 160, 180, 0.16);
  color: var(--text-muted);
}

.chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 0.8rem;
  width: min(22.5rem, calc(100vw - 2rem));
  pointer-events: none;
  max-height: calc(100dvh - 2.5rem);
}

.chat-toggle,
.chat-panel {
  pointer-events: auto;
}

.chat-toggle {
  position: relative;
  min-width: 8rem;
  min-height: 3.9rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 34px rgba(11, 115, 255, 0.24);
  font-weight: 800;
  cursor: pointer;
}

.chat-widget.has-unread .chat-toggle::after {
  content: attr(data-unread);
  position: absolute;
  top: -0.35rem;
  right: -0.25rem;
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.34);
}

.chat-toggle:hover,
.chat-toggle:focus-visible {
  background: var(--primary-dark);
}

.chat-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100dvh - 7.5rem);
  overflow: hidden;
  border: 1px solid rgba(143, 160, 180, 0.18);
  border-radius: 1.2rem;
  background: var(--surface);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.chat-header p,
.chat-header strong {
  display: block;
  margin: 0;
}

.chat-header p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chat-header strong {
  margin-top: 0.2rem;
  font-size: 1rem;
}

.chat-close {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.chat-messages {
  display: grid;
  gap: 0.65rem;
  flex: 1 1 auto;
  max-height: min(13rem, 34dvh);
  padding: 1rem;
  overflow-y: auto;
  background: #0a1626;
}

.chat-message {
  max-width: 92%;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.94rem;
  line-height: 1.45;
}

.chat-message-service {
  justify-self: start;
  border-bottom-left-radius: 0.3rem;
  background: var(--primary-soft);
  color: #d7e9ff;
  border: 1px solid rgba(11, 115, 255, 0.22);
  box-shadow: 0 8px 18px rgba(11, 115, 255, 0.08);
}

.chat-message-note {
  justify-self: start;
  border-bottom-left-radius: 0.3rem;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid rgba(143, 160, 180, 0.16);
}

.chat-message-user {
  justify-self: end;
  border-bottom-right-radius: 0.3rem;
  background: var(--primary);
  color: #fff;
}

.chat-form {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.chat-identity {
  display: grid;
  gap: 0.65rem;
}

.chat-identity.is-hidden {
  display: none;
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface-soft);
  color: var(--text);
}

.chat-form input {
  padding: 0.72rem 0.85rem;
}

.chat-form textarea {
  min-height: 5.5rem;
  padding: 0.78rem 0.85rem;
  resize: vertical;
}

.chat-form input:focus,
.chat-form textarea:focus {
  outline: none;
  border-color: rgba(11, 115, 255, 0.62);
  box-shadow: 0 0 0 0.22rem rgba(11, 115, 255, 0.13);
  background: #17283d;
}

.chat-form .btn {
  margin-top: 0.2rem;
  padding: 0.82rem 1rem;
}

.chat-form .btn:disabled {
  cursor: progress;
  opacity: 0.78;
  transform: none;
}

.chat-status {
  min-height: 1.25rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.chat-status.is-success {
  color: var(--primary);
}

.chat-status.is-error {
  color: #fca5a5;
}

@media (max-width: 980px) {
  .hero-grid,
  .hero-points,
  .feature-layout,
  .location-layout,
  .contact-layout,
  .services,
  .process-grid,
  .location-points,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .site-header {
    background: rgba(7, 17, 31, 0.96);
  }

  .header-row {
    min-height: 76px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.8rem;
    background: rgba(15, 27, 43, 0.98);
    border: 1px solid rgba(143, 160, 180, 0.16);
    border-radius: 1.1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 0.9rem;
    border-radius: 0.85rem;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(11, 115, 255, 0.14);
  }

  .nav-cta {
    background: rgba(11, 115, 255, 0.18);
  }

  .hero {
    padding: 2rem 0 3.25rem;
  }

  .container {
    width: min(var(--container), calc(100% - 1.35rem));
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero-points,
  .panel-steps,
  .contact-checklist {
    gap: 0.85rem;
  }

  .panel-card,
  .contact-form,
  .contact-copy,
  .location-card,
  .faq-item,
  .info-card,
  .card-content,
  .process-card {
    padding: 1.4rem;
  }

  .footer-row {
    flex-direction: column;
  }

  .site-footer {
    padding-bottom: 6.5rem;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: clamp(8rem, 42vw, 9.5rem);
  }

  .brand-text span {
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions,
  .field-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn,
  .btn-block,
  .contact-chat-btn {
    width: 100%;
  }

  .upload-preview-grid {
    grid-template-columns: 1fr;
  }

  .chat-widget {
    right: 1rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: auto;
    justify-items: end;
    width: min(21rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 1.5rem);
  }

  .chat-toggle {
    width: auto;
    min-width: 0;
    min-height: 3.25rem;
    padding: 0 1.15rem;
  }

  .chat-widget.is-open {
    right: 0.75rem;
    left: 0.75rem;
    justify-items: stretch;
    width: auto;
  }

  .chat-widget.is-open .chat-toggle {
    display: none;
  }

  .chat-widget.is-open .chat-panel {
    max-height: calc(100dvh - 1.5rem);
  }

  .chat-panel {
    max-height: calc(100dvh - 5.5rem);
  }

  .chat-messages {
    max-height: 28dvh;
  }
}
