﻿:root {
  --page: #fcfaff;
  --ink: #26123f;
  --muted: #76658a;
  --accent: #7c3aed;
  --accent-dark: #5b21b6;
  --accent-soft: #f3e8ff;
  --surface: #ffffff;
  --soft-surface: #faf5ff;
  --line: #dcc7f4;
  --success: #36875d;
  --danger: #b84c65;
  --shadow: 0 20px 55px rgba(91, 33, 182, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --page-width: 1220px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 95% -10%, rgba(124, 58, 237, 0.14), transparent 27rem),
    radial-gradient(circle at -8% 18%, rgba(243, 232, 255, 0.9), transparent 28rem),
    var(--page);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

button {
  cursor: pointer;
}

.app-loading,
.app-error {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.app-error p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--page) 78%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}

.header-inner,
.site-footer,
main,
.hero-section,
.section,
.page-hero,
.resources-list,
.resource-safety,
.back-link {
  width: min(var(--page-width), calc(100% - 48px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 50px;
  filter: drop-shadow(0 8px 12px rgba(73, 57, 103, 0.22));
}

.brand-copy {
  display: grid;
  gap: 2px;
  letter-spacing: 0.03em;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.brand-copy small {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 34px);
  font-size: 0.9rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--ink) 86%, var(--muted));
}

.site-nav a {
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-cta {
  color: #fff;
  background: var(--accent-dark);
  box-shadow: 0 10px 24px rgba(86, 68, 112, 0.22);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 13px 25px rgba(91, 33, 182, 0.24);
}

.button-primary:hover {
  box-shadow: 0 17px 34px rgba(91, 33, 182, 0.32);
}

.button-secondary {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 82%, var(--accent-soft));
  border-color: var(--line);
}

.button-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button-danger {
  color: var(--danger);
  background: #fff4f6;
  border-color: #f0c7d1;
}

.button-full {
  width: 100%;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button-arrow {
  font-size: 1.1em;
  line-height: 0;
}

.hero-section {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.82fr);
  align-items: center;
  gap: 64px;
  padding-block: clamp(60px, 9vw, 126px);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 820;
  color: var(--accent-dark);
}

.hero-copy h1,
.page-hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 6.4vw, 6.35rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 630px;
  margin-bottom: 30px;
  color: color-mix(in srgb, var(--ink) 74%, var(--muted));
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.hero-note span,
.consult-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67b78f;
  box-shadow: 0 0 0 5px rgba(103, 183, 143, 0.16);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(243, 232, 255, 0.88)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-art::before {
  position: absolute;
  width: 130%;
  height: 130%;
  content: "";
  background:
    repeating-radial-gradient(circle at 50% 55%, transparent 0 42px, rgba(124, 58, 237, 0.1) 43px 44px, transparent 45px 80px);
}

.hero-art svg {
  position: relative;
  z-index: 2;
  width: min(88%, 440px);
  filter: drop-shadow(0 26px 20px rgba(91, 33, 182, 0.24));
}

.hero-art-orbit {
  position: absolute;
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: 50%;
}

.orbit-one {
  width: 90%;
  height: 62%;
  transform: rotate(-18deg);
}

.orbit-two {
  width: 112%;
  height: 82%;
  transform: rotate(35deg);
}

.section {
  padding-block: clamp(70px, 10vw, 126px);
}

.section-heading {
  max-width: 750px;
  margin-bottom: 42px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.section-heading h2,
.contact-copy h2,
.resource-safety h2,
.editor-toolbar h2,
.inquiries-toolbar h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.1vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-heading > p:not(.eyebrow),
.contact-copy > p:not(.eyebrow),
.page-hero > p:not(.eyebrow),
.resource-safety > p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  line-height: 1.75;
}

.principles-section {
  padding-bottom: 72px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(60, 44, 83, 0.06);
}

.principle-card {
  min-height: 250px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.principle-card:last-child {
  border-right: 0;
}

.principle-card > span,
.workflow-index,
.resource-number {
  display: block;
  margin-bottom: 44px;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.principle-card h3,
.workflow-step h3,
.case-card h3,
.professional-content h3,
.resource-topic h2,
.legal-section h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

.principle-card p,
.workflow-step p,
.case-card p,
.professional-content p,
.resource-topic p,
.legal-section p {
  color: var(--muted);
  line-height: 1.68;
}

.workflow-section {
  position: relative;
}

.workflow-section::before {
  position: absolute;
  right: 0;
  left: 0;
  z-index: -1;
  height: 60%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(234, 227, 246, 0.68), transparent);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.workflow-step {
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft));
}

.workflow-index {
  margin-bottom: 54px;
}

.professionals-section {
  padding-top: 90px;
}

.professional-grid {
  display: grid;
  gap: 24px;
}

.professional-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(65, 46, 92, 0.08);
}

.portrait {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 48% 30%, rgba(255, 255, 255, 0.48) 0 12%, transparent 12.5%),
    radial-gradient(circle at 76% 78%, rgba(255, 255, 255, 0.22) 0 17%, transparent 17.5%),
    linear-gradient(145deg, #8b5cf6, #5b21b6);
}

.portrait-eb {
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.45) 0 11%, transparent 11.5%),
    radial-gradient(circle at 76% 75%, rgba(255, 255, 255, 0.22) 0 19%, transparent 19.5%),
    linear-gradient(145deg, #a78bfa, #6d28d9);
}

.portrait::before,
.portrait::after {
  position: absolute;
  width: 125%;
  height: 64%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.31);
  border-radius: 50%;
  transform: rotate(-32deg);
}

.portrait::after {
  transform: rotate(38deg) translateX(23%);
}

.portrait span {
  z-index: 1;
  display: grid;
  width: 150px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.09), 0 22px 40px rgba(55, 39, 79, 0.19);
}

.professional-content {
  padding: clamp(30px, 5vw, 68px);
}

.professional-content h3 {
  font-size: clamp(2.15rem, 3vw, 3.25rem);
}

.professional-role {
  margin-top: -4px;
  margin-bottom: 22px;
  color: var(--accent-dark) !important;
  font-weight: 760;
}

.professional-quote {
  max-width: 600px;
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  font-style: italic;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 760;
}

.matter-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft-surface);
}

.matter-card h4 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.matter-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.matter-card dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
}

.matter-card dt {
  color: var(--accent-dark);
  font-weight: 800;
}

.matter-card dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.56;
}

.cases-section {
  padding-top: 104px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  min-height: 335px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.case-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.case-topline strong {
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.case-card .text-link {
  margin-top: auto;
}

.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 820;
}

.text-link:hover,
.back-link:hover {
  color: var(--accent);
}

.commitments-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 68px;
  align-items: end;
}

.commitments-section .section-heading {
  margin: 0;
}

.commitment-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.commitment-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.commitment-list span {
  color: var(--accent-dark);
  font-family: Inter, sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: clamp(32px, 7vw, 102px);
  padding-bottom: clamp(78px, 10vw, 140px);
}

.contact-copy > p {
  margin-bottom: 28px;
}

.safety-note {
  display: flex;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 16px 18px;
  border: 1px solid #dcc7f4;
  border-radius: var(--radius-md);
  color: var(--accent-dark);
  background: var(--accent-soft);
  line-height: 1.55;
  font-weight: 650;
}

.safety-note span {
  color: var(--accent);
}

.contact-channels {
  display: grid;
  gap: 10px;
}

.contact-channel {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-channel:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-kind {
  color: var(--accent-dark);
  font-size: 0.77rem;
  font-weight: 830;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-channel small,
.contact-channel strong {
  display: block;
}

.contact-channel small {
  margin-bottom: 3px;
  color: var(--muted);
}

.contact-channel strong {
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
}

.contact-channel b {
  color: var(--accent-dark);
}

.inquiry-form,
.drawer-form {
  display: grid;
  gap: 15px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 4px;
}

.form-heading .eyebrow {
  margin-bottom: 8px;
}

.form-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  letter-spacing: -0.035em;
}

.inquiry-form label,
.drawer-form label,
.admin-login-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 760;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

.consent {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px !important;
  color: var(--muted) !important;
  font-size: 0.77rem !important;
  font-weight: 590 !important;
  line-height: 1.48;
}

.consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent-dark);
}

.form-status {
  min-height: 1.15rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.site-footer {
  padding-top: 52px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.65fr 0.65fr;
  gap: 54px;
}

.footer-grid > div > p {
  max-width: 420px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.footer-grid nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-label {
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid nav a {
  width: max-content;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid nav a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.footer-bottom p {
  max-width: 620px;
  margin: 0;
}

.consult-drawer {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 100;
  width: min(382px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  padding: 23px;
  overflow-y: auto;
  border: 1px solid rgba(124, 58, 237, 0.42);
  border-radius: 25px;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(124, 58, 237, 0.16), transparent 11rem),
    var(--surface);
  box-shadow: 0 30px 75px rgba(49, 34, 76, 0.24);
  transform: translateX(calc(100% + 34px));
  transition: transform 0.34s cubic-bezier(0.22, 0.75, 0.25, 1);
}

.consult-drawer.is-open {
  transform: translateX(0);
}

.consult-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.consult-head h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.consult-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.77rem;
  font-weight: 790;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.5rem;
  line-height: 1;
}

.consult-subtitle {
  margin: 20px 0 14px;
  color: var(--muted);
  line-height: 1.58;
}

.consult-points {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.48;
}

.consult-points li {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 8px;
}

.consult-points li::before {
  content: "\2713";
  color: var(--accent-dark);
}

.response-time {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 720;
}

.drawer-form {
  gap: 11px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.drawer-form textarea {
  min-height: 82px;
}

.live-chat-messages {
  min-height: 150px;
  max-height: 280px;
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.live-chat-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.live-chat-message {
  width: min(88%, 280px);
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft-surface);
}

.live-chat-message.is-visitor {
  justify-self: end;
  color: #fff;
  background: var(--accent);
}

.live-chat-message.is-agent {
  justify-self: start;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.live-chat-message div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  font-size: 0.73rem;
}

.live-chat-message small {
  opacity: 0.75;
}

.live-chat-message p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.86rem;
  line-height: 1.45;
}

.live-chat-profile {
  display: grid;
  gap: 11px;
}

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

.live-chat-actions {
  display: grid;
  gap: 9px;
}

.consult-tab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 11px 12px 15px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  color: var(--accent-dark);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(60, 43, 85, 0.13);
  font-weight: 820;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.consult-tab b {
  font-size: 1.1rem;
}

.drawer-open .consult-tab {
  pointer-events: none;
  opacity: 0;
}

.inner-page {
  min-height: 70vh;
}

.page-hero {
  padding-top: clamp(72px, 11vw, 142px);
  padding-bottom: 58px;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
}

.page-hero > p:not(.eyebrow) {
  max-width: 770px;
  font-size: 1.15rem;
}

.resources-list {
  display: grid;
  gap: 12px;
}

.resource-topic {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(25px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.resource-number {
  margin: 0;
  font-size: 2rem;
}

.resource-topic h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.resource-topic p:last-child {
  max-width: 850px;
  margin-bottom: 0;
}

.resource-safety {
  margin-top: 24px;
  margin-bottom: 35px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #dcc7f4;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(243, 232, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.resource-safety h2 {
  max-width: 700px;
  font-size: clamp(2.1rem, 3.6vw, 3.75rem);
}

.back-link {
  margin-bottom: 90px;
}

.legal-hero {
  padding-bottom: 36px;
}

.legal-grid {
  width: min(930px, calc(100% - 48px));
  display: grid;
  gap: 14px;
  margin: 0 auto;
}

.legal-section {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.legal-section h2 {
  font-size: 1.65rem;
}

.legal-section p {
  max-width: 760px;
  margin-bottom: 0;
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 100% 0, rgba(124, 58, 237, 0.16), transparent 31rem),
    linear-gradient(145deg, #fcfaff, #faf5ff);
}

.admin-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0;
}

.admin-login-card {
  width: min(520px, 100%);
  margin: 8vh auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.admin-login-card h1,
.admin-header h1 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  letter-spacing: -0.05em;
}

.admin-login-card > p:not(.eyebrow),
.admin-header p:not(.eyebrow) {
  max-width: 670px;
  color: var(--muted);
  line-height: 1.65;
}

.admin-login-form {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.admin-console {
  display: grid;
  gap: 24px;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-header h1 {
  margin-bottom: 8px;
}

.admin-header p {
  margin-bottom: 0;
}

.admin-header-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  width: max-content;
  background: rgba(255, 255, 255, 0.68);
}

.admin-tab {
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 780;
}

.admin-tab.is-active {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.admin-content-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.3fr) minmax(0, 1fr);
  gap: 24px;
}

.admin-sidebar,
.editor-panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 15px 38px rgba(61, 43, 87, 0.07);
}

.admin-sidebar {
  height: max-content;
  padding: 25px;
}

.admin-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 20px;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-list li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
}

.admin-list li::before {
  content: "\2713";
  color: var(--accent-dark);
}

.admin-help {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.editor-panel {
  padding: 24px;
}

.editor-toolbar,
.inquiries-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.editor-toolbar h2,
.inquiries-toolbar h2 {
  margin-bottom: 7px;
  font-size: 2rem;
}

.editor-toolbar p:not(.eyebrow),
.inquiries-toolbar p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.content-editor {
  min-height: 680px;
  padding: 18px;
  border-radius: var(--radius-md);
  color: #30263f;
  background: #fcfbfe;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.81rem;
  line-height: 1.58;
  tab-size: 2;
}

.inquiries-toolbar {
  padding: 26px 26px 0;
}

.inquiries-table-wrap {
  overflow-x: auto;
  margin-top: 24px;
}

.inquiries-table {
  width: 100%;
  min-width: 950px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.inquiries-table th,
.inquiries-table td {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.inquiries-table th {
  color: var(--accent-dark);
  background: var(--soft-surface);
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inquiries-table td strong,
.inquiries-table td small {
  display: block;
}

.inquiries-table td strong {
  color: var(--ink);
}

.inquiries-table td small {
  margin-top: 3px;
}

.table-delete {
  padding: 7px 9px;
  border: 1px solid #f0c7d1;
  border-radius: 9px;
  color: var(--danger);
  background: #fff5f7;
  font-size: 0.78rem;
  font-weight: 760;
}

.loading-note,
.empty-inquiries {
  padding: 0 26px 28px;
  color: var(--muted);
}

.live-admin-chat {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  padding: 0 26px 26px;
}

.chat-thread-list {
  min-height: 520px;
  max-height: 680px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.chat-thread-list .empty-inquiries,
.chat-thread-list .loading-note {
  padding: 18px;
}

.chat-thread-button {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.chat-thread-button:hover,
.chat-thread-button.is-active {
  background: var(--accent-soft);
}

.chat-thread-button span,
.chat-thread-button em {
  display: block;
}

.chat-thread-button strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.chat-thread-button small,
.chat-thread-button em {
  color: var(--muted);
  font-size: 0.73rem;
  font-style: normal;
  line-height: 1.35;
}

.chat-thread-button em {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(124, 58, 237, 0.1);
  font-weight: 780;
}

.chat-thread-button em.is-closed {
  color: var(--muted);
  background: #f1eef8;
}

.chat-thread-button p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-detail {
  min-height: 520px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.chat-message-list {
  min-height: 390px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.admin-chat-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--soft-surface);
}

.admin-chat-header strong,
.admin-chat-header small {
  display: block;
}

.admin-chat-header strong {
  color: var(--ink);
}

.admin-chat-header small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-chat-messages-inner {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  overflow-y: auto;
}

.admin-chat-message {
  width: min(78%, 620px);
  padding: 12px 14px;
  border-radius: 15px;
}

.admin-chat-message.is-visitor {
  justify-self: start;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-chat-message.is-agent {
  justify-self: end;
  color: #fff;
  background: var(--accent);
}

.admin-chat-message div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.74rem;
}

.admin-chat-message small {
  opacity: 0.76;
}

.admin-chat-message p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-reply-form {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.chat-reply-form label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 760;
}

.chat-reply-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero-section,
  .contact-section,
  .commitments-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    gap: 32px;
  }

  .hero-art {
    min-height: 390px;
  }

  .professional-card {
    grid-template-columns: 1fr;
  }

  .portrait {
    min-height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    gap: 28px;
  }

  .admin-content-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: start;
    flex-direction: column;
  }

  .admin-header-actions {
    justify-content: start;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-inner,
  .site-footer,
  main,
  .hero-section,
  .section,
  .page-hero,
  .resources-list,
  .resource-safety,
  .back-link,
  .legal-grid {
    width: min(100% - 32px, var(--page-width));
  }

  .brand-mark {
    width: 37px;
    height: 43px;
  }

  .brand-copy strong {
    font-size: 0.86rem;
  }

  .brand-copy small {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .hero-section {
    min-height: unset;
    padding-top: 58px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  .hero-art {
    min-height: 330px;
  }

  .principles-grid,
  .workflow-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .principle-card {
    min-height: unset;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle-card:last-child {
    border-bottom: 0;
  }

  .principle-card > span,
  .workflow-index,
  .case-topline {
    margin-bottom: 25px;
  }

  .matter-card dl div,
  .resource-topic {
    grid-template-columns: 1fr;
  }

  .resource-number {
    margin-bottom: 0;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-bottom {
    gap: 12px;
  }

  .consult-drawer {
    top: auto;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-height: min(86vh, 700px);
    padding: 20px;
    border-radius: 22px;
    transform: translateY(calc(100% + 18px));
  }

  .consult-drawer.is-open {
    transform: translateY(0);
  }

  .consult-tab {
    top: auto;
    right: 16px;
    bottom: 16px;
    writing-mode: initial;
    transform: none;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .contact-channel {
    grid-template-columns: 80px minmax(0, 1fr) auto;
  }

  .admin-shell {
    width: min(100% - 32px, 1440px);
    padding: 24px 0;
  }

  .admin-login-card,
  .editor-panel {
    padding: 24px;
  }

  .admin-tabs {
    width: 100%;
  }

  .admin-tab {
    flex: 1;
  }

  .editor-toolbar,
  .inquiries-toolbar {
    flex-direction: column;
  }

  .live-admin-chat {
    grid-template-columns: 1fr;
  }

  .chat-thread-list,
  .chat-detail {
    min-height: auto;
  }

  .chat-thread-list {
    max-height: 280px;
  }

  .editor-actions {
    justify-content: start;
  }

  .content-editor {
    min-height: 540px;
    font-size: 0.75rem;
  }
}

/* Visual CMS editor: direct form editing, no JSON wall */
.simple-admin-grid {
  grid-template-columns: minmax(250px, 0.26fr) minmax(0, 1fr);
  align-items: start;
}

.visual-editor-panel {
  min-height: 760px;
}

.simple-section-nav {
  display: grid;
  gap: 9px;
  margin: 18px 0 20px;
}

.section-nav-button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.section-nav-button:hover {
  transform: translateX(3px);
  border-color: var(--accent);
}

.section-nav-button span {
  font-weight: 860;
}

.section-nav-button small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.38;
}

.section-nav-button.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(91, 33, 182, 0.22);
}

.section-nav-button.is-active small {
  color: rgba(255, 255, 255, 0.82);
}

.admin-tip {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--accent-soft);
}

.simple-editor {
  display: grid;
  gap: 18px;
}

.editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.editor-field,
.editor-group,
.editor-array,
.array-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.editor-field {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.editor-field-wide,
.editor-group,
.editor-array {
  grid-column: 1 / -1;
}

.field-label {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 860;
}

.editor-field input,
.editor-field textarea,
.editor-field select {
  background: #fff;
}

.editor-field textarea {
  min-height: 112px;
}

.color-control {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.color-control input[type="color"] {
  height: 44px;
  padding: 4px;
  border-radius: 12px;
}

.bool-field {
  align-content: start;
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
}

.switch-line input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.switch-line strong {
  font-size: 0.95rem;
}

.editor-group {
  padding: 18px;
  background: rgba(250, 245, 255, 0.7);
}

.group-title,
.array-head,
.array-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.group-title {
  margin-bottom: 14px;
}

.group-title h3,
.array-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
}

.group-title small,
.array-card-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.editor-array {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(250, 245, 255, 0.76);
}

.array-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.array-list {
  display: grid;
  gap: 12px;
}

.array-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(91, 33, 182, 0.06);
}

.array-card-head strong {
  color: var(--ink);
}

.array-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 7px;
}

.mini-button {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent-dark);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 820;
}

.mini-button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.mini-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.mini-button.danger {
  color: var(--danger);
  border-color: #f0c7d1;
  background: #fff5f7;
}

.compact-array-card > .editor-field {
  border: 0;
  padding: 0;
  background: transparent;
}

.editor-empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
}

@media (max-width: 1100px) {
  .simple-admin-grid,
  .admin-content-grid {
    grid-template-columns: 1fr;
  }

  .simple-section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .editor-fields,
  .simple-section-nav {
    grid-template-columns: 1fr;
  }

  .group-title,
  .array-head,
  .array-card-head,
  .admin-header,
  .editor-toolbar,
  .inquiries-toolbar {
    display: grid;
  }

  .array-card-actions,
  .editor-actions,
  .admin-header-actions {
    justify-content: start;
  }
}

/* Inquiry reply workflow */
.reply-enabled-table {
  min-width: 1120px;
}

.inquiry-summary {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

.reply-meta {
  display: block;
  margin-top: 6px;
  color: var(--accent-dark);
  font-weight: 760;
}

.reply-status {
  display: inline-flex;
  align-items: center;
  min-width: 72px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 840;
}

.reply-status.is-new {
  color: #92400e;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.reply-status.is-replied {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-reply {
  padding: 7px 10px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.reply-row[hidden] {
  display: none;
}

.reply-row td {
  padding: 0 !important;
  background: rgba(250, 245, 255, 0.58);
}

.reply-panel {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px;
  border-top: 1px solid var(--line);
}

.reply-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.reply-panel-head strong,
.reply-history h4 {
  color: var(--ink);
}

.reply-panel-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.reply-field {
  display: grid;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 840;
}

.reply-field textarea {
  min-height: 145px;
}

.reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reply-history {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.reply-history h4 {
  margin: 0;
  font-size: 1rem;
}

.reply-history-item,
.reply-empty {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
}

.reply-history-item div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.reply-history-item small,
.reply-empty {
  color: var(--muted);
}

.reply-history-item p {
  white-space: pre-wrap;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Photo upload fields */
.image-upload-field {
  background: rgba(250, 245, 255, 0.72);
}

.image-upload-box {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.image-upload-preview,
.image-upload-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.image-upload-preview {
  display: block;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(91, 33, 182, 0.1);
}

.image-upload-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  background: linear-gradient(135deg, #fff, var(--accent-soft));
}

.image-upload-controls {
  display: grid;
  gap: 10px;
}

.image-upload-controls input[type="file"] {
  padding: 10px;
}

.image-upload-controls small {
  color: var(--muted);
  line-height: 1.45;
}

/* Uploaded image rendering */
.brand-image {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 12px rgba(91, 33, 182, 0.2);
}

.hero-uploaded-image {
  position: relative;
  z-index: 3;
  width: min(82%, 430px);
  max-height: 360px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow: 0 28px 50px rgba(59, 7, 100, 0.22);
}

.hero-art svg.is-muted {
  position: absolute;
  width: 78%;
  opacity: 0.18;
  filter: blur(0.2px);
}

.professional-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-image,
.contact-image,
.consult-image,
.resource-image {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--accent-soft);
}

.case-image {
  height: 155px;
  margin-bottom: 22px;
}

.contact-image {
  max-height: 260px;
  margin-top: 16px;
}

.consult-image {
  max-height: 150px;
  margin-top: 16px;
  border-radius: 16px;
}

.resource-topic:has(.resource-image) {
  grid-template-columns: 92px minmax(180px, 270px) minmax(0, 1fr);
}

.resource-image {
  height: 170px;
}

@media (max-width: 760px) {
  .image-upload-box,
  .resource-topic:has(.resource-image) {
    grid-template-columns: 1fr;
  }

  .brand-image {
    width: 38px;
    height: 38px;
  }
}

/* Direct SMTP reply settings */
.mail-settings-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 26px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(250, 245, 255, 0.78);
}

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

.mail-settings-panel > div:first-child,
.mail-settings-actions {
  grid-column: 1 / -1;
}

.mail-settings-panel h3 {
  margin: 4px 0 7px;
  color: var(--ink);
  font-size: 1.3rem;
}

.mail-settings-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.mail-settings-panel label {
  display: grid;
  gap: 7px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 840;
}

.mail-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.reply-direct-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 840;
}

@media (max-width: 980px) {
  .mail-settings-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .mail-settings-panel {
    grid-template-columns: 1fr;
  }
}
