:root {
  --ink: #202225;
  --muted: #687078;
  --line: #d9dde2;
  --paper: #f4f5f7;
  --surface: #ffffff;
  --pine: #2f343a;
  --pine-soft: #e9f5f4;
  --clay: #347f79;
  --steel: #58616b;
  --gold: #5aada5;
  --accent: #347f79;
  --accent-strong: #1f625d;
  --brand-primary: var(--accent);
  --brand-accent: var(--accent-strong);
  --text: #202225;
  --shadow: 0 18px 42px rgba(24, 28, 33, 0.12);
  --site-header-offset: 74px;
  --site-hero-height: clamp(620px, calc(100svh - var(--site-header-offset)), 760px);
  --site-hero-padding-top: clamp(104px, 17vh, 148px);
  --site-hero-padding-bottom: clamp(42px, 7vh, 76px);
  --site-section-anchor-gap: 50px;
  --site-section-top-padding: clamp(60px, 9vw, 108px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--site-header-offset);
}

.i18n-pending .public-site [data-i18n],
.i18n-pending .public-site [data-i18n-placeholder],
.i18n-pending .public-site [data-i18n-aria] {
  visibility: hidden;
}

.i18n-pending .site-hero-copy {
  visibility: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

:lang(he),
[dir="rtl"] body,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
  font-family:
    "Noto Sans Hebrew", "Segoe UI", Arial, ui-sans-serif, system-ui,
    sans-serif;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
  padding: 28px 22px;
  color: #f8fafc;
  background: var(--pine);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: block;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: #ffffff;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.25rem;
  font-weight: 800;
}

.brand h1,
.brand p,
.topbar h2,
.preview-header h3 {
  margin: 0;
}

.brand h1 {
  font-size: 1.45rem;
  letter-spacing: 0;
}

.brand p {
  margin-top: 3px;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.86rem;
}

.public-site {
  min-height: 100vh;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 8%, #ffffff), var(--paper) 34%),
    var(--paper);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: var(--site-header-offset);
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(32, 34, 37, 0.1);
  background: color-mix(in srgb, var(--brand-primary) 10%, rgba(244, 245, 247, 0.92));
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo-light {
  display: none;
}

.site-menu-toggle {
  display: none;
}

.site-brand .brand-logo {
  width: 54px;
  height: 54px;
  background: transparent;
}

.admin-brand-logo {
  background: transparent;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
}

.site-mobile-menu {
  display: contents;
}

.site-nav a,
.site-actions a,
.site-hero-actions a,
.contact-panel a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-actions a:hover,
.site-hero-actions a:hover,
.contact-panel a:hover {
  color: var(--brand-primary);
}

.site-hero {
  position: relative;
  display: grid;
  height: var(--site-hero-height);
  min-height: 0;
  align-items: start;
  overflow: hidden;
  padding-top: var(--site-hero-padding-top);
  padding-bottom: var(--site-hero-padding-bottom);
  isolation: isolate;
  scroll-margin-top: var(--site-header-offset);
}

.site-hero img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.site-media-managed {
  opacity: 0;
}

.site-media-ready .site-media-managed {
  opacity: 1;
}

.site-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(32, 34, 37, 0.72), rgba(32, 34, 37, 0.22) 62%, rgba(32, 34, 37, 0.06)),
    linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 44%, transparent), color-mix(in srgb, var(--brand-accent) 22%, transparent));
}

[dir="rtl"] .site-hero::after {
  background:
    linear-gradient(270deg, rgba(32, 34, 37, 0.78), rgba(32, 34, 37, 0.28) 62%, rgba(32, 34, 37, 0.06)),
    linear-gradient(225deg, color-mix(in srgb, var(--brand-primary) 44%, transparent), color-mix(in srgb, var(--brand-accent) 22%, transparent));
}

.site-hero-copy {
  display: grid;
  gap: 18px;
  align-content: start;
  width: min(760px, calc(100% - 36px));
  max-height: calc(var(--site-hero-height) - var(--site-hero-padding-top) - var(--site-hero-padding-bottom));
  margin: 0 0 0 clamp(18px, 7vw, 96px);
  color: #ffffff;
}

[dir="rtl"] .site-hero-copy {
  margin-right: clamp(18px, 7vw, 96px);
  margin-left: 0;
}

.site-hero-copy h1,
.section-copy h2,
.section-heading h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(2.25rem, 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

:lang(el) .site-hero-copy h1 {
  font-size: clamp(2rem, 4.8vw, 4.25rem);
  line-height: 1.04;
}

.site-hero-copy p:not(.eyebrow) {
  max-width: 600px;
  min-height: 3.1lh;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.55vw, 1.16rem);
  line-height: 1.45;
}

:lang(el) .site-hero-copy p:not(.eyebrow) {
  min-height: 5.8lh;
}

.site-hero-actions,
.site-actions,
.portfolio-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-hero-actions {
  gap: 12px;
}

.site-hero-actions .primary-button,
.site-hero-actions .ghost-button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  box-shadow: none;
  font-weight: 680;
}

.site-hero-actions .primary-button {
  color: #ffffff;
  background: var(--brand-primary);
}

.site-hero-actions .ghost-button {
  color: #ffffff;
  background: color-mix(in srgb, var(--brand-accent) 36%, rgba(255, 255, 255, 0.13));
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.site-hero-actions .primary-button:hover {
  color: #ffffff;
  background: var(--brand-accent);
}

.site-hero-actions .ghost-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
}

.site-section {
  display: grid;
  gap: 34px;
  padding: var(--site-section-top-padding) clamp(18px, 5vw, 76px);
  scroll-margin-top: calc(var(--site-header-offset) + var(--site-section-anchor-gap) - var(--site-section-top-padding));
}

.about-section {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  align-items: center;
}

.section-copy,
.section-heading {
  display: grid;
  gap: 16px;
}

.section-copy h2,
.section-heading h2 {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
  white-space: pre-line;
}

.about-photo {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-media-about-frame {
  aspect-ratio: 4 / 5;
}

.about-photo img,
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.about-photo img {
  object-position: right center;
}

.portfolio-section,
.testimonials-section,
.contact-section {
  border-top: 1px solid color-mix(in srgb, var(--brand-primary) 24%, var(--line));
}

.portfolio-section {
  overflow-anchor: none;
}

.portfolio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-controls button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--steel);
  border: 0;
  border-radius: 8px;
  background: rgba(32, 34, 37, 0.05);
  font-weight: 650;
}

.portfolio-controls button:hover,
.portfolio-controls button.is-active {
  color: #ffffff;
  background: var(--brand-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  overflow-anchor: none;
}

.portfolio-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(32, 35, 38, 0.08);
  overflow-anchor: none;
}

.portfolio-card-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.portfolio-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-image-placeholder {
  aspect-ratio: 4 / 3;
}

.portfolio-card div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.portfolio-card span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-card strong {
  color: var(--ink);
}

.portfolio-pagination {
  justify-content: center;
}

.portfolio-intro {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 650;
  line-height: 1.65;
  white-space: pre-line;
}

.portfolio-pagination span {
  color: var(--muted);
  font-weight: 900;
}

.portfolio-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.testimonials-section {
  background: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonials-carousel {
  position: relative;
}

.testimonials-viewport {
  min-width: 0;
}

.testimonial-carousel-button {
  display: none;
}

.testimonial-card {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
  box-shadow: 0 10px 28px rgba(32, 35, 38, 0.08);
}

.testimonial-card p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 750;
  line-height: 1.55;
}

.testimonial-card div {
  display: grid;
  gap: 4px;
}

.testimonial-card strong {
  color: var(--ink);
}

.testimonial-card span {
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 520px);
  align-items: start;
  background: color-mix(in srgb, var(--brand-primary) 5%, #ffffff);
}

.contact-section .section-copy,
.contact-panel {
  grid-column: 1;
}

.contact-section .section-copy {
  align-self: end;
}

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: start;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 8%, #f9fafb);
}

.contact-link {
  display: inline-flex;
  min-width: min(100%, 230px);
  min-height: 48px;
  flex: 1 1 230px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, var(--line));
  border-radius: 8px;
  background: #ffffff;
}

.contact-link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: var(--brand-primary);
}

.contact-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-link[href^="tel:"] span {
  direction: ltr;
  unicode-bidi: isolate;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid color-mix(in srgb, var(--brand-accent) 42%, var(--line));
  background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-accent) 70%, #202225));
  color: #f9fafb;
}

.site-footer > div:first-child {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.footer-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.site-footer p {
  margin: 0;
}

.site-footer > div:first-child p {
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
}

.footer-nav a {
  color: #e5e7eb;
  font-size: 0.88rem;
  font-weight: 800;
}

.footer-nav a:hover {
  color: color-mix(in srgb, var(--brand-accent) 35%, #ffffff);
}

.social-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.social-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.social-button:hover {
  transform: translateY(-2px);
}

.social-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social-button.whatsapp {
  color: var(--brand-primary);
  border-color: color-mix(in srgb, var(--brand-primary) 24%, #ffffff);
  background: color-mix(in srgb, var(--brand-primary) 8%, #ffffff);
}

.social-button.facebook {
  color: var(--brand-primary);
  border-color: color-mix(in srgb, var(--brand-accent) 24%, #ffffff);
  background: color-mix(in srgb, var(--brand-accent) 8%, #ffffff);
}

.social-button.instagram {
  color: var(--brand-accent);
  border-color: color-mix(in srgb, var(--brand-accent) 24%, #ffffff);
  background: color-mix(in srgb, var(--brand-accent) 8%, #ffffff);
}

.footer-meta {
  grid-column: 1 / -1;
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.contact-form {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-primary) 7%, #f9fafb);
}

.lead-meeting-form {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid #d0d5dc;
  border-radius: 8px;
  background: #ffffff;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-primary);
  outline: 3px solid color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

.contact-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.steps {
  display: grid;
  gap: 8px;
}

.language-control {
  display: grid;
  gap: 8px;
}

.language-control label {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.language-control select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.native-language-select {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.flag-language {
  display: grid;
  gap: 8px;
}

.flag-options {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.site-language .flag-options {
  background: rgba(32, 34, 37, 0.06);
}

.flag-options button {
  display: inline-flex;
  width: 34px;
  min-width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  text-align: center;
  filter: saturate(0.7);
  opacity: 0.72;
}

.flag-options button:hover,
.flag-options button.is-active {
  background: rgba(255, 255, 255, 0.86);
  filter: none;
  opacity: 1;
}

.site-language .flag-options button:hover,
.site-language .flag-options button.is-active {
  background: #ffffff;
}

.step-button {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  color: rgba(248, 250, 252, 0.78);
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-weight: 620;
}

[dir="rtl"] .step-button {
  text-align: right;
}

.step-button span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 0.8rem;
  font-weight: 700;
}

.step-button.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.step-button.is-complete span:first-child {
  color: var(--pine);
  background: var(--gold);
}

.client-project-nav {
  display: grid;
  gap: 8px;
}

.client-nav-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: rgba(248, 250, 252, 0.78);
  border-radius: 8px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 850;
  text-align: start;
  text-decoration: none;
}

.client-nav-step {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  color: rgba(248, 250, 252, 0.82);
  border: 1px solid rgba(248, 250, 252, 0.24);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

[dir="rtl"] .client-nav-button {
  text-align: right;
}

.client-nav-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.client-nav-button.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.client-nav-button.is-complete .client-nav-step {
  color: var(--pine);
  border-color: var(--gold);
  background: var(--gold);
}

.nav-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-inline-start: auto;
  place-items: center;
  padding: 0 7px;
  color: #ffffff;
  border-radius: 999px;
  background: var(--clay);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.mini-panel {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar > .mini-panel:last-child {
  margin-top: auto;
}

.panel-label,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mini-panel .panel-label {
  color: rgba(248, 250, 252, 0.67);
}

.mini-panel strong {
  display: block;
  min-height: 2.35rem;
  margin-top: 6px;
  font-size: 2rem;
  line-height: 1.15;
}

.mini-panel p {
  margin: 4px 0 0;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.86rem;
  line-height: 1.45;
}

.sidebar-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  color: #ffffff;
  border-radius: 8px;
  background: var(--clay);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h2 {
  min-height: 2.75rem;
  margin-top: 5px;
  font-size: clamp(1.7rem, 2vw, 2.35rem);
  line-height: 1.14;
}

.top-actions,
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

[dir="rtl"] .top-actions,
[dir="rtl"] .form-actions {
  flex-direction: row-reverse;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--pine);
}

.primary-button:hover {
  background: #3b4047;
}

.ghost-button {
  color: var(--pine);
  border: 0;
  background: rgba(32, 34, 37, 0.06);
}

.ghost-button:hover {
  background: rgba(32, 34, 37, 0.1);
}

.small-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 0.76rem;
}

.account-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.account-button:hover {
  background: rgba(32, 34, 37, 0.07);
}

.account-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.client-auth {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
  overflow-y: auto;
  background: rgba(32, 34, 37, 0.42);
  backdrop-filter: blur(8px);
}

body.auth-modal-open {
  overflow: hidden;
}

.site-auth-section {
  min-height: 0;
  padding: clamp(14px, 3vw, 28px);
  border-top: 0;
  scroll-margin-top: 0;
}

.auth-shell {
  position: relative;
  display: grid;
  width: min(100%, 460px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(24, 28, 33, 0.16);
}

.auth-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  inset-inline-end: 12px;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.auth-close:hover {
  color: var(--ink);
  background: rgba(32, 34, 37, 0.06);
}

.auth-intro {
  position: relative;
  padding: 34px 58px 4px 34px;
  color: var(--ink);
  background: var(--surface);
}

.auth-intro::before {
  display: none;
}

.auth-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 18px 34px 34px;
  overflow-y: auto;
  background: var(--surface);
}

.auth-copy {
  display: grid;
  gap: 10px;
}

.auth-copy h2,
.auth-copy p {
  margin: 0;
}

.auth-copy h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 650;
  line-height: 1.12;
}

.auth-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.auth-copy .eyebrow {
  display: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.auth-tab {
  min-height: 36px;
  color: var(--steel);
  border-radius: 8px;
  background: transparent;
  font-weight: 650;
}

.auth-tab.is-active {
  color: var(--ink);
  background: rgba(32, 34, 37, 0.07);
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.auth-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid #d0d5dc;
  border-radius: 0;
  background: transparent;
}

.auth-form input:focus {
  border-color: var(--ink);
  outline: 0;
}

.auth-submit {
  min-height: 46px;
  margin-top: 12px;
  background: var(--pine);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.google-button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--pine);
  border: 0;
  border-radius: 8px;
  background: rgba(32, 34, 37, 0.06);
  font-weight: 650;
}

.google-button:hover {
  background: rgba(32, 34, 37, 0.1);
}

.google-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.auth-error {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
  line-height: 1.4;
}

.button-link {
  width: 100%;
  text-align: inherit;
}

.client-session {
  margin-top: 0;
}

.client-session strong {
  margin-top: 4px;
  color: rgba(248, 250, 252, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 22px;
  align-items: start;
  justify-content: center;
}

.live-brief-panel {
  position: sticky;
  top: 96px;
}

.live-brief-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.live-brief-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.live-brief-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.live-brief-meter {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #ecefed;
}

.live-brief-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pine);
  transition: width 180ms ease;
}

.live-brief-rows {
  display: grid;
  gap: 10px;
}

.live-brief-row {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.live-brief-row.is-filled {
  border-color: #cfe2d8;
  background: #f4faf7;
}

.live-brief-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.live-brief-row strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.form-panel,
.design-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-panel {
  padding: 20px;
}

.client-profile-panel {
  width: min(760px, 100%);
  margin: 0 auto;
}

.client-profile-form {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.client-profile-form h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.65rem;
}

.client-profile-form p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.client-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.client-profile-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 760;
}

.client-profile-grid input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.client-profile-grid input:focus {
  border-color: var(--clay);
  outline: 3px solid rgba(90, 173, 165, 0.2);
}

.progress-track {
  overflow: hidden;
  height: 8px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: #ecefed;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--clay);
  transition: width 180ms ease;
}

.questionnaire-intro {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #b9e3df;
  border-radius: 8px;
  background: #f0faf9;
}

.questionnaire-intro strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.questionnaire-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.question-group {
  display: grid;
  gap: 14px;
  min-height: 360px;
  align-content: start;
}

.field {
  display: grid;
  gap: 12px;
}

.field label,
.choice-label {
  color: var(--ink);
  font-weight: 760;
}

.wizard-question {
  max-width: 760px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.18;
}

.question-count {
  margin: 0;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 850;
}

.smart-follow-up {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--pine-soft);
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 850;
}

.field small {
  color: var(--muted);
  line-height: 1.4;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid #d0d5dc;
  border-radius: 8px;
  background: #ffffff;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-card {
  position: relative;
  min-height: 58px;
}

.choice-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.choice-card span {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d0d5dc;
  border-radius: 8px;
  background: #f9fafb;
  color: var(--ink);
  line-height: 1.25;
}

.choice-card input:checked + span {
  border-color: var(--clay);
  background: var(--pine-soft);
  box-shadow: inset 0 0 0 1px var(--clay);
}

.visual-choice-card {
  min-height: 82px;
}

.visual-choice-card span {
  min-height: 82px;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.visual-choice-card em {
  display: inline-flex;
  min-width: 42px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef4f2;
  color: var(--pine);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.visual-choice-card b {
  font-size: 0.95rem;
  line-height: 1.25;
}

.visual-choice-card small {
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 850;
}

.visual-choice-card.is-selected span {
  background: #f4faf7;
}

.form-actions {
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.upload-panel {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.upload-heading h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.upload-heading p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.upload-grid,
.designer-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}

.designer-upload-grid {
  padding: 14px;
  border-top: 1px solid var(--line);
}

.upload-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.upload-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.upload-card-header strong {
  min-width: min(100%, 190px);
  flex: 1 1 190px;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.file-button {
  position: relative;
  display: inline-flex;
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #ffffff;
  border-radius: 8px;
  background: var(--clay);
  font-size: 0.82rem;
  font-weight: 850;
  overflow: hidden;
  text-align: center;
  white-space: normal;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  list-style: none;
  background: #fbfcfc;
}

.file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  background: #ffffff;
}

.file-list .uploaded-file-row {
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
}

.file-preview {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  background: #f7faf9;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 900;
}

button.file-preview {
  padding: 0;
  cursor: pointer;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uploaded-file-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.uploaded-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #edf8f5;
  color: #28766c;
  font-size: 0.76rem;
  font-weight: 900;
}

.file-list a {
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list span {
  color: var(--muted);
  font-size: 0.8rem;
}

.file-list button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--clay);
  border: 1px solid #b9e3df;
  border-radius: 8px;
  background: #f0faf9;
  font-size: 0.78rem;
  font-weight: 850;
}

.file-list .empty-file {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.file-list .upload-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  align-items: stretch;
}

.upload-progress-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.upload-progress-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress-row progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #eceff3;
}

.upload-progress-row progress::-webkit-progress-bar {
  background: #eceff3;
}

.upload-progress-row progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--clay);
}

.upload-progress-row progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--clay);
}

.design-panel {
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 20px 14px;
}

.preview-header h3 {
  margin-top: 4px;
  font-size: 1.35rem;
}

.status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #1f625d;
  background: var(--pine-soft);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.visual-stage {
  margin: 0 20px;
  border: 1px solid #d9dde2;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(47, 52, 58, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(47, 52, 58, 0.06) 1px, transparent 1px),
    #f9fafb;
  background-size: 26px 26px;
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 31 / 21;
}

.concept-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.concept-list div {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.concept-list dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.concept-list dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.completed-view {
  display: grid;
  gap: 20px;
}

.completed-view > .appointment-panel {
  order: -1;
}

.client-account-panel {
  min-width: 0;
}

.completed-summary-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.project-assets-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(420px, 1fr);
  gap: 20px;
  align-items: start;
}

.project-files-panel {
  grid-column: 1 / -1;
  min-width: 0;
}

.appointment-panel {
  align-content: start;
  border-color: #b9e3df;
  background: #f7fbfb;
}

.appointment-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.appointment-day {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.appointment-day strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.appointment-note {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.appointment-actions {
  display: flex;
  justify-content: flex-end;
}

.appointment-meeting-link {
  display: inline-grid;
  gap: 4px;
}

.appointment-meeting-link span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.appointment-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.appointment-slot {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #b9e3df;
  border-radius: 8px;
  color: #1f625d;
  background: #f0faf9;
  font-weight: 850;
}

.appointment-slot:hover:not(:disabled) {
  border-color: var(--clay);
  background: #d9f1ef;
}

.appointment-slot.is-selected {
  color: #ffffff;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.appointment-slot:disabled {
  cursor: not-allowed;
  color: #9ca3af;
  border-color: #e5e7eb;
  background: #f3f4f6;
}

.lead-meeting-form {
  align-self: start;
}

.lead-wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lead-wizard-steps span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
}

.lead-wizard-steps span.is-active {
  color: #ffffff;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.lead-wizard-steps span.is-complete {
  color: var(--accent-strong);
  border-color: #b9e3df;
  background: #f0faf9;
}

.lead-step-panel {
  display: grid;
  gap: 12px;
}

.lead-step-panel > strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.lead-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.lead-day-button {
  min-height: 52px;
  padding: 8px 10px;
  color: #1f625d;
  border: 1px solid #b9e3df;
  border-radius: 8px;
  background: #f0faf9;
  font-weight: 850;
}

.lead-day-button:hover:not(:disabled) {
  border-color: var(--accent-strong);
  background: #d9f1ef;
}

.lead-day-button.is-selected {
  color: #ffffff;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.lead-day-button:disabled {
  cursor: not-allowed;
  color: #9ca3af;
  border-color: #e5e7eb;
  background: #f3f4f6;
}

.lead-meeting-duration {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.lead-slots {
  display: grid;
  gap: 10px;
}

.lead-slots > strong,
.lead-slots > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.lead-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.lead-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.completed-summary-card h3,
.completed-summary-card p {
  margin: 0;
}

.completed-summary-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.completed-summary-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.completed-summary-card > strong {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  color: #ffffff;
  border-radius: 8px;
  background: var(--pine);
}

.completed-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.completed-summary-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #1f625d;
  background: var(--pine-soft);
  font-size: 0.8rem;
  font-weight: 850;
}

.completed-hero,
.completed-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.completed-hero {
  padding: 24px;
}

.completed-hero h3,
.completed-hero p,
.completed-panel h4,
.completed-panel p {
  margin: 0;
}

.completed-hero h3 {
  margin-top: 6px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.completed-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.completed-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.78fr);
  gap: 20px;
  align-items: start;
}

.completed-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.completed-panel > p {
  color: var(--muted);
  line-height: 1.45;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
}

.readonly-answers {
  display: grid;
  gap: 12px;
}

.message-thread {
  display: grid;
  gap: 10px;
  max-height: min(520px, 55vh);
  overflow: auto;
  padding: 4px;
}

.message-bubble {
  display: grid;
  gap: 7px;
  width: min(680px, 92%);
  justify-self: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.message-bubble.is-mine {
  justify-self: end;
  border-color: rgba(139, 94, 90, 0.34);
  background: #e8f5f4;
}

.message-bubble div {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.message-bubble strong {
  color: var(--ink);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.message-bubble.is-mine strong {
  color: var(--clay);
}

.message-bubble span {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.message-bubble p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-form {
  display: grid;
  gap: 10px;
}

.message-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
}

.message-form button {
  justify-self: end;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--clay);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.activity-indicator {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 82px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(340px, calc(100vw - 44px));
  padding: 10px 13px;
  border: 1px solid rgba(32, 34, 37, 0.08);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(24, 28, 33, 0.13);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  pointer-events: none;
}

.activity-indicator.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.activity-indicator::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(52, 127, 121, 0.22);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: activity-spin 780ms linear infinite;
}

@keyframes activity-spin {
  to {
    transform: rotate(360deg);
  }
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(21, 24, 27, 0.28);
  backdrop-filter: blur(10px);
}

.confirm-overlay[hidden] {
  display: none;
}

.confirm-dialog {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.confirm-dialog h2,
.confirm-dialog p {
  margin: 0;
}

.confirm-dialog h2 {
  color: var(--ink);
  font-size: 1.25rem;
}

.confirm-dialog p {
  color: var(--muted);
  line-height: 1.45;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.designer-shell .workspace,
.crm-workspace {
  max-width: 1440px;
  width: 100%;
}

.crm-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  align-items: start;
}

.crm-shell > .sidebar {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.designer-nav a.step-button {
  text-decoration: none;
}

.crm-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(32, 35, 38, 0.08);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.metric-card strong {
  color: var(--pine);
  font-size: 2rem;
}

.review-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(32, 35, 38, 0.08);
}

.search-field {
  display: grid;
  gap: 7px;
  width: min(520px, 100%);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.compact-field {
  width: min(220px, 100%);
}

.search-field input,
.search-field select {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid #d0d5dc;
  border-radius: 8px;
  background: #ffffff;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.review-layout.is-detail-view {
  grid-template-columns: minmax(0, 1fr);
}

.whatsapp-management {
  padding: 0 0 28px;
}

.tenant-console-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 100vh;
  padding: 32px;
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--cream);
}

.tenant-console-loader img {
  width: min(220px, 52vw);
  max-height: 120px;
  object-fit: contain;
}

.tenant-console-booting .tenant-console-loader,
.customer-console-admin.admin-booting .tenant-console-loader {
  display: grid;
}

.customer-console-admin.tenant-console-booting .crm-shell,
.customer-console-admin.admin-booting .crm-shell {
  opacity: 0;
  pointer-events: none;
}

.admin-booting .crm-workspace,
.admin-booting .designer-nav {
  opacity: 0;
}

.whatsapp-management-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.meetings-panel {
  display: grid;
  gap: 14px;
}

.meetings-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.meetings-header h3,
.meetings-header p {
  margin: 0;
}

.meetings-header p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.calendar-connection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.calendar-connection strong,
.calendar-connection p {
  margin: 0;
}

.calendar-connection p,
.calendar-connection small {
  color: var(--muted);
}

.calendar-connection p {
  margin-top: 4px;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f5f4;
}

.settings-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.settings-tab:hover,
.settings-tab.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(39, 39, 35, 0.08);
}

.settings-form {
  grid-template-columns: minmax(0, 1fr);
}

.settings-tab-panels {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

.settings-tab-panel {
  display: none;
}

.settings-tab-panel.active {
  display: grid;
  gap: 14px;
}

.settings-fieldset {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 16px;
}

.settings-fieldset legend {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0 6px;
}

.settings-upload-field {
  display: grid;
  gap: 8px;
}

.settings-upload-field > span {
  color: var(--ink);
  font-weight: 750;
}

.favicon-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.favicon-preview {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.favicon-preview:empty::before {
  width: 22px;
  height: 22px;
  border: 1px solid color-mix(in srgb, var(--muted) 40%, transparent);
  border-radius: 4px;
  content: "";
}

.favicon-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.favicon-upload-button {
  width: auto;
}

.upload-progress-text {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.scheduler-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scheduler-days legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.calendar-connection.warning-card {
  border-color: rgba(90, 173, 165, 0.38);
  background: #f0faf9;
}

.calendar-connection.warning-card strong {
  color: #1f625d;
}

.calendar-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.calendar-settings-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.calendar-settings-form span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.calendar-settings-form small {
  color: var(--muted);
  line-height: 1.35;
}

.meetings-list {
  display: grid;
  gap: 10px;
}

.meeting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.35fr) minmax(110px, auto) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.meeting-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.meeting-row span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.meeting-row strong,
.meeting-row small,
.meeting-link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-row small {
  color: var(--muted);
}

.meeting-row .error-text {
  color: #b42318;
}

.meeting-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.meeting-link:hover {
  text-decoration: underline;
}

.questionnaire-builder-panel {
  display: grid;
  gap: 16px;
}

.questionnaire-builder-form,
.questionnaire-sections,
.builder-section,
.builder-questions,
.builder-question,
.builder-options,
.builder-option {
  display: grid;
  gap: 12px;
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.builder-actions.inline {
  justify-content: flex-start;
}

.builder-section,
.builder-question,
.builder-option {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.builder-section {
  background: #fbfcfd;
}

.builder-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.builder-card-toolbar span {
  display: inline-flex;
  gap: 6px;
}

.builder-question-grid,
.localized-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.builder-id-field {
  max-width: 320px;
}

.builder-label,
.questionnaire-builder-form label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.questionnaire-builder-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.questionnaire-builder-form input,
.questionnaire-builder-form select,
.questionnaire-builder-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #ffffff;
}

.icon-button.danger {
  color: #b42318;
}

.client-list,
.review-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.client-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.client-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  width: 100%;
  min-height: 74px;
  padding: 14px 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  text-align: start;
}

.client-row > span:first-child {
  min-width: 0;
}

.client-row > span:last-child {
  display: grid;
  justify-items: end;
  min-width: 180px;
}

.client-row:last-child {
  border-bottom: 0;
}

.client-row:hover {
  background: #f0faf9;
  box-shadow: inset 4px 0 0 var(--clay);
}

[dir="rtl"] .client-row:hover {
  box-shadow: inset -4px 0 0 var(--clay);
}

.client-row strong,
.client-row small,
.client-row em {
  display: block;
}

.crm-status {
  display: inline-block;
  width: max-content;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1f625d;
  background: var(--pine-soft);
  font-weight: 850;
}

.crm-status.lead {
  color: #1f625d;
  background: #e4f3f1;
}

.crm-status.active {
  color: #304052;
  background: #e5e9ee;
}

.crm-status.inactive {
  color: #6b7280;
  background: #f3f4f6;
}

.crm-status.won {
  color: #2f6f69;
  background: #d8efec;
}

.crm-status.lost {
  color: #6b7280;
  background: #f3f4f6;
}

.crm-status.urgent,
.crm-status.quoted {
  color: #991b1b;
  background: #fee2e2;
}

.client-row strong {
  margin-bottom: 5px;
  font-size: 1rem;
}

.client-row small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.client-row em {
  margin-top: 6px;
  color: var(--clay);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.review-detail {
  overflow: hidden;
}

.review-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.review-heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

.whatsapp-cloud-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(100%, 360px);
}

.whatsapp-cloud-actions label {
  display: grid;
  gap: 5px;
  min-width: 190px;
}

.whatsapp-cloud-actions span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.whatsapp-cloud-actions select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
}

.status-badge.neutral {
  color: var(--steel);
  background: #eef0f3;
}

.status-badge.pending {
  color: #7c5c16;
  background: #fff2cc;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.detail-tab {
  min-height: 38px;
  padding: 0 14px;
  color: var(--steel);
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 650;
}

.detail-tab:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.tab-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-inline-start: 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.tab-status.warning {
  background: #d99a18;
}

.tab-status.done {
  background: #2f9e72;
}

.detail-tab.is-active {
  color: var(--ink);
  background: rgba(32, 34, 37, 0.08);
}

.detail-tab-panel {
  min-height: 0;
}

.section-action-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.section-action-heading h4 {
  margin: 0;
}

.messages-inbox-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.messages-thread-list,
.messages-inbox-detail,
.messages-inbox-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.messages-thread-list {
  display: grid;
  overflow: hidden;
}

.messages-thread-list header {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.messages-thread-list h3,
.messages-thread-list p,
.messages-inbox-panel h3,
.messages-inbox-panel p {
  margin: 0;
}

.messages-thread-list p,
.messages-inbox-panel p {
  color: var(--muted);
  line-height: 1.45;
}

.message-thread-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  width: 100%;
  padding: 14px 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  text-align: start;
}

.message-thread-row:hover,
.message-thread-row.is-active {
  background: #f0faf9;
}

.message-thread-row > small,
.message-thread-row time {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-thread-row time {
  justify-self: end;
}

.message-thread-row strong,
.message-thread-row span small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-inbox-detail,
.messages-inbox-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.compact-heading {
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.review-heading h3 {
  margin: 4px 0 4px;
  font-size: 1.65rem;
}

.detail-back-button {
  min-height: 34px;
  margin-bottom: 12px;
  padding: 0 12px;
}

.review-heading p {
  margin: 0;
  color: var(--muted);
}

.summary-strip {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #f9fafb;
}

.crm-panel {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.crm-panel h4 {
  margin: 0;
  font-size: 1rem;
}

.crm-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.crm-form.settings-form {
  grid-template-columns: minmax(0, 1fr);
}

.settings-form > * {
  grid-column: 1 / -1;
}

.crm-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.crm-form-section {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.crm-form input,
.crm-form select,
.crm-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid #d0d5dc;
  border-radius: 8px;
  background: #ffffff;
}

.quote-items {
  display: grid;
  gap: 10px;
}

.quote-includes {
  display: grid;
  gap: 10px;
}

.quote-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.quote-checkbox-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  min-height: 0;
  padding: 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.86rem;
  line-height: 1.35;
}

.quote-checkbox-card input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.quote-item-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(90px, 0.22fr) minmax(120px, 0.28fr) 34px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.quote-item-includes {
  grid-column: 1 / -2;
  display: grid;
  gap: 8px;
}

.quote-item-includes strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.quote-line-includes {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.quote-line-includes ul {
  margin: 5px 0 0;
  padding-inline-start: 1.2rem;
}

.quote-item-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.quote-item-row input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  border: 1px solid #d0d5dc;
  border-radius: 8px;
  background: #ffffff;
}

.quote-total-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.quote-total-row strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.quote-signing-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(250, 248, 243, 0.92), rgba(239, 244, 244, 0.95)),
    var(--paper);
  color: var(--ink);
  padding: clamp(20px, 4vw, 48px);
}

.quote-signing-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.quote-signing-header {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(32, 34, 37, 0.12);
}

.quote-signing-header img {
  width: 120px;
  height: auto;
  mix-blend-mode: multiply;
}

.quote-signing-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  letter-spacing: 0;
}

.quote-signing-header p {
  margin: 3px 0;
  color: var(--steel);
}

.quote-signing-card {
  margin: 14px 0;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(32, 34, 37, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(32, 34, 37, 0.08);
}

.quote-signing-card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.quote-signing-card ul {
  margin: 0;
  padding-inline-start: 1.2rem;
}

.quote-signing-card li + li {
  margin-top: 7px;
}

.quote-signing-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-signing-table > div {
  display: grid;
  grid-template-columns: 1fr 80px 150px;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.quote-signing-table > div:last-child {
  border-bottom: 0;
  background: var(--mist);
}

.quote-signature-form {
  display: grid;
  gap: 14px;
}

.quote-signature-form label {
  display: grid;
  gap: 8px;
}

.quote-signature-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
}

.quote-signature-form canvas {
  width: 100%;
  max-width: 760px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  touch-action: none;
}

.quote-signed-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #1f625d;
  background: var(--pine-soft);
  font-weight: 700;
}

.quote-signing-page footer {
  margin-top: 22px;
  color: var(--steel);
  font-size: 0.9rem;
}

.compact-client-form {
  max-width: 760px;
  align-items: end;
  align-content: start;
  gap: 10px;
}

.compact-client-form label {
  gap: 5px;
  font-size: 0.76rem;
}

.compact-client-form input {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.9rem;
}

.compact-client-form .crm-save {
  min-height: 34px;
  align-self: end;
}

.whatsapp-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d8ecdf;
  border-radius: 8px;
  background: #f7fbf8;
}

.whatsapp-panel .crm-notes {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex !important;
  grid-column: 1 / -1;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  gap: 9px !important;
  color: var(--ink) !important;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--clay);
}

.portfolio-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(32, 35, 38, 0.08);
}

.compact-heading h2,
.compact-heading p {
  margin: 0;
}

.compact-heading h2 {
  font-size: 1.6rem;
}

.users-roles-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.portfolio-editor-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.users-roles-layout {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.users-roles-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
}

.users-roles-modal-card {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 72px rgba(15, 23, 42, 0.22);
}

.website-media-editor {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.website-media-editor h3,
.website-media-editor p {
  margin: 0;
}

.website-media-editor p {
  color: var(--muted);
}

.website-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.website-media-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.58fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.website-media-thumb {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #202225;
}

.website-media-thumb.is-hero {
  aspect-ratio: 16 / 7;
}

.website-media-thumb.is-about {
  aspect-ratio: 4 / 5;
}

.website-media-thumb img,
.site-media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.website-media-card div {
  display: grid;
  gap: 8px;
}

.website-media-card small {
  color: var(--muted);
}

.site-media-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 34, 37, 0.55);
}

.site-media-modal-card {
  display: grid;
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  gap: 16px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(32, 35, 38, 0.28);
}

.site-media-frame {
  width: min(100%, 820px);
  max-height: 56vh;
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202225;
}

.site-media-frame.is-hero {
  aspect-ratio: 16 / 7;
}

.site-media-frame.is-about {
  width: min(100%, 430px);
  aspect-ratio: 4 / 5;
}

.site-media-modal-card > .portfolio-crop-controls {
  position: relative;
  z-index: 2;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.meeting-info-card {
  max-width: none;
}

.meeting-info-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.meeting-info-list div {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meeting-info-list div:last-child {
  border-bottom: 0;
}

.meeting-info-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.meeting-info-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.meeting-info-list a {
  color: var(--accent-strong);
}

.meeting-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
}

.meeting-warning {
  margin: 0;
  color: #9a6510;
  font-size: 0.86rem;
  font-weight: 750;
}

.portfolio-editor-layout > aside,
.portfolio-editor-layout > section {
  display: grid;
  gap: 14px;
}

.portfolio-category-form,
.portfolio-item-form {
  grid-template-columns: 1fr;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.portfolio-category-form h3,
.portfolio-item-form h3,
.portfolio-editor-layout > section > h3,
.portfolio-cropper h4 {
  margin: 0;
  color: var(--ink);
}

.compact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.portfolio-category-form .compact-form-grid {
  grid-template-columns: 1fr;
}

.form-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portfolio-upload-control {
  grid-column: 1 / -1;
}

.portfolio-upload-control input {
  display: none;
}

.portfolio-upload-control em {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--ink);
  border: 1px dashed #b7bec8;
  border-radius: 8px;
  background: #ffffff;
  font-style: normal;
  cursor: pointer;
}

.portfolio-admin-list {
  display: grid;
  gap: 8px;
}

.portfolio-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.portfolio-admin-row span {
  display: grid;
  gap: 2px;
}

.portfolio-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.portfolio-admin-row small,
.portfolio-editor-card small {
  color: var(--muted);
}

.portfolio-cropper {
  display: grid;
  gap: 12px;
}

.portfolio-crop-frame {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202225;
}

.portfolio-crop-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.portfolio-crop-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portfolio-crop-controls input {
  padding: 0;
}

.portfolio-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-editor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.portfolio-editor-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-editor-card div {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.portfolio-editor-card span {
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.testimonial-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.testimonial-admin-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.testimonial-admin-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.5;
}

.testimonial-admin-card div {
  display: grid;
  gap: 4px;
}

.testimonial-admin-card span {
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-editor-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  padding: 0 !important;
}

.danger-button {
  color: #b42318;
  border-color: #f3b7b0;
  background: #fff7f5;
}

.whatsapp-button {
  min-height: 42px;
  color: #116b37;
  border-color: #bde7cb;
  background: #ffffff;
}

.whatsapp-message-editor {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.whatsapp-message-editor summary {
  cursor: pointer;
  padding: 12px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.whatsapp-message-editor p {
  margin: -4px 12px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.whatsapp-message-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.whatsapp-message-grid textarea {
  min-height: 82px;
}

.whatsapp-template-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-template-heading > span {
  min-width: 0;
}

.whatsapp-language-section {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.whatsapp-language-section + .whatsapp-language-section {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.whatsapp-language-section h4 {
  margin: 0 12px;
  color: var(--ink);
  font-size: 0.92rem;
}

.render-brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 18px;
  align-items: start;
}

.render-reference-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.render-reference-panel h4 {
  margin: 0;
  font-size: 0.95rem;
}

.render-reference-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.render-reference-list li {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.render-reference-list li:first-child {
  border-top: 0;
}

.render-reference-list span {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.render-reference-list small {
  color: var(--muted);
  font-size: 0.76rem;
}

.render-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.render-thumbnail {
  display: grid;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}

.render-thumbnail img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef0f3;
}

.render-thumbnail span {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.render-thumbnail small {
  color: var(--muted);
  font-size: 0.72rem;
}

.render-prompt-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.render-prompt-preview summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

.render-prompt-preview pre {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 0 14px 14px;
  color: var(--steel);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

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

.crm-form textarea {
  min-height: 96px;
  resize: vertical;
}

.crm-notes {
  grid-column: 1 / -1;
}

.crm-save {
  justify-self: start;
  min-width: 150px;
}

.crm-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.danger-button {
  color: #991b1b;
  border-color: #fecaca;
  background: #fff5f5;
}

.summary-strip h4,
.answer-sections h4 {
  margin: 0;
  font-size: 1rem;
}

.summary-strip p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.answer-sections {
  display: grid;
  gap: 12px;
  padding: 20px 22px 24px;
}

.answer-sections.detail-tab-panel .designer-upload-grid {
  grid-template-columns: 1fr;
}

.answer-sections.detail-tab-panel .upload-card-header {
  align-items: center;
  flex-wrap: nowrap;
}

.answer-sections.detail-tab-panel .upload-card-header strong {
  flex: 1 1 auto;
}

.answer-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.answer-section summary {
  padding: 13px 14px;
  color: var(--clay);
  font-weight: 850;
  cursor: pointer;
}

.answer-section dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.questionnaire-edit-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.questionnaire-edit-grid label {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) 1fr;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f3;
}

.questionnaire-edit-grid > div {
  border-bottom: 1px solid #eef0f3;
}

.questionnaire-edit-grid > div:last-child,
.questionnaire-edit-grid label:last-child {
  border-bottom: 0;
}

.questionnaire-edit-grid > div > label {
  border-bottom: 0;
}

.questionnaire-edit-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.questionnaire-choice-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
}

.questionnaire-choice-group legend {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.questionnaire-choice-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
}

.questionnaire-choice-group input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--clay);
}

.questionnaire-choice-group span {
  color: var(--ink);
  font-weight: 650;
}

.questionnaire-edit-grid textarea {
  width: 100%;
  min-height: 44px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  line-height: 1.35;
}

.answer-section dl div {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) 1fr;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f3;
}

.answer-section dl div:last-child {
  border-bottom: 0;
}

.answer-section dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.answer-section dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.empty-state {
  padding: 24px;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .about-section,
  .contact-section,
  .messages-inbox-layout {
    grid-template-columns: 1fr;
  }

  .contact-section .section-copy,
  .contact-panel,
  .contact-form {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-section .section-copy {
    order: 1;
  }

  .lead-meeting-form {
    order: 2;
  }

  .contact-panel {
    order: 3;
  }

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

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

  .app-shell,
  .crm-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    min-height: auto;
  }

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

  .mini-panel {
    margin-top: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .live-brief-panel {
    position: static;
  }

  .review-layout,
  .completed-grid,
  .project-assets-grid {
    grid-template-columns: 1fr;
  }

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

  .upload-grid,
  .designer-upload-grid,
  .client-profile-grid,
  .builder-question-grid,
  .localized-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 0;
  }

  .site-header {
    position: fixed;
    width: 100%;
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(32, 34, 37, 0.12);
    background: rgba(244, 245, 247, 0.9);
    backdrop-filter: blur(18px);
  }

  .site-header.is-menu-open {
    row-gap: 8px;
    border-bottom: 1px solid rgba(32, 34, 37, 0.14);
    background: rgba(244, 245, 247, 0.97);
    backdrop-filter: blur(18px);
  }

  .site-header.is-over-light {
    border-bottom: 1px solid rgba(32, 34, 37, 0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
  }

  .site-header .brand-logo {
    width: 42px;
    height: 42px;
  }

  .site-brand {
    min-width: 0;
  }

  .site-header .brand-logo-dark,
  .site-header.is-menu-open .brand-logo-dark,
  .site-header.is-over-light .brand-logo-dark {
    display: block;
  }

  .site-header .brand-logo-light,
  .site-header.is-menu-open .brand-logo-light,
  .site-header.is-over-light .brand-logo-light {
    display: none;
  }

  .site-menu-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    justify-self: end;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 999px;
    background: rgba(32, 34, 37, 0.84);
    backdrop-filter: blur(10px);
  }

  .site-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
  }

  .site-header.is-menu-open .site-menu-toggle span {
    background: #ffffff;
  }

  .site-header.is-over-light .site-menu-toggle span {
    background: #ffffff;
  }

  .site-mobile-menu {
    grid-column: 1 / -1;
    display: none;
    gap: 10px;
    padding: 6px 0 2px;
  }

  .site-header.is-menu-open .site-mobile-menu {
    display: grid;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 4px 10px;
    overflow: visible;
    padding-bottom: 0;
  }

  .site-nav a {
    padding: 8px 0;
    font-weight: 650;
    line-height: 1.2;
  }

  .site-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding-top: 2px;
  }

  .site-actions .account-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .site-language .flag-options {
    background: rgba(32, 34, 37, 0.07);
  }

  .site-actions .flag-options button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 1rem;
  }

  .site-hero-actions {
    width: 100%;
    justify-content: center;
  }

  .site-hero-actions a {
    width: min(100%, 310px);
    justify-content: center;
    text-align: center;
  }

  .site-hero {
    --site-hero-height: 100svh;
    --site-hero-padding-top: clamp(96px, 15vh, 126px);
    --site-hero-padding-bottom: 24px;
    height: var(--site-hero-height);
    min-height: 0;
    align-items: start;
    padding-top: var(--site-hero-padding-top);
    padding-bottom: var(--site-hero-padding-bottom);
    scroll-margin-top: 0;
  }

  .site-hero::after {
    background: rgba(32, 34, 37, 0.68);
  }

  .site-hero-copy {
    gap: 12px;
    width: calc(100% - 36px);
    max-height: calc(var(--site-hero-height) - var(--site-hero-padding-top) - var(--site-hero-padding-bottom));
    margin: 0 18px;
  }

  .site-hero-copy h1 {
    font-size: clamp(2rem, 10vw, 3.4rem);
    line-height: 1.02;
  }

  :lang(el) .site-hero-copy h1 {
    font-size: clamp(1.76rem, 8.4vw, 2.95rem);
    line-height: 1.06;
  }

  .site-hero-copy p:not(.eyebrow) {
    font-size: clamp(0.9rem, 3.75vw, 1rem);
    line-height: 1.34;
    min-height: 4.05lh;
  }

  :lang(el) .site-hero-copy p:not(.eyebrow) {
    min-height: 7.1lh;
  }

  .site-section {
    padding-top: calc(var(--site-section-top-padding) + 64px);
    scroll-margin-top: 0;
  }

  .about-photo {
    min-height: 0;
  }

  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-carousel {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
    margin-inline: -10px;
  }

  .testimonials-viewport {
    overflow: hidden;
  }

  .testimonials-grid {
    display: flex;
    gap: 0;
    transform: translateX(calc(var(--testimonial-offset, 0) * 100%));
    transition: transform 220ms ease;
  }

  .testimonial-card {
    flex: 0 0 100%;
    min-height: 300px;
  }

  .testimonial-carousel-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 52px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
  }

  .testimonial-carousel-button:disabled {
    cursor: not-allowed;
    opacity: 0.28;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer > div:first-child {
    justify-content: center;
  }

  .social-buttons {
    justify-content: center;
  }

  .portfolio-editor-layout,
  .website-media-grid,
  .website-media-card,
  .compact-form-grid,
  .portfolio-crop-controls,
  .portfolio-editor-grid,
  .testimonial-editor-grid {
    grid-template-columns: 1fr;
  }

  .client-auth {
    padding: 12px;
  }

  .auth-shell {
    width: 100%;
    max-height: calc(100dvh - 24px);
  }

  .auth-intro,
  .auth-panel {
    padding: 22px;
  }

  .auth-intro {
    padding-inline-end: 58px;
    padding-bottom: 0;
  }

  .sidebar,
  .workspace {
    padding: 18px;
  }

  .app-shell {
    min-height: 100dvh;
  }

  .sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: center;
    min-height: 0;
    padding: 12px 14px;
  }

  .sidebar .brand {
    min-width: 0;
    gap: 10px;
  }

  .sidebar .brand-logo {
    width: 74px;
  }

  .sidebar .brand p {
    display: none;
  }

  .language-control {
    justify-self: end;
  }

  .language-control .flag-options {
    gap: 2px;
    padding: 2px;
  }

  .language-control .flag-options button {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .client-session {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 10px;
    align-items: center;
    padding: 8px 10px;
  }

  .client-session .panel-label {
    font-size: 0.66rem;
  }

  .client-session strong {
    margin: 0;
    font-size: 0.74rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .client-session .sidebar-link {
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .steps,
  .client-project-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .steps::-webkit-scrollbar,
  .client-project-nav::-webkit-scrollbar {
    display: none;
  }

  .step-button,
  .client-nav-button {
    width: auto;
    min-width: max-content;
    min-height: 36px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
  }

  .step-button {
    grid-template-columns: 24px auto;
    gap: 7px;
  }

  .step-button span:first-child,
  .client-nav-step {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 0.72rem;
  }

  .topbar,
  .preview-header {
    align-items: stretch;
    flex-direction: column;
  }

  .users-roles-header {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    margin-bottom: 0;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions button,
  .form-actions button {
    flex: 1;
  }

  .steps,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .question-count {
    scroll-margin-top: 18px;
  }

  .review-toolbar,
  .review-heading,
  .client-row,
  .meeting-row,
  .calendar-connection,
  .calendar-settings-form,
  .answer-section dl div,
  .questionnaire-edit-grid label,
  .file-list li {
    grid-template-columns: 1fr;
  }

  .file-list .uploaded-file-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .file-preview {
    width: 52px;
    height: 52px;
  }

  .file-list .uploaded-file-row .uploaded-badge,
  .file-list .uploaded-file-row button:not(.file-preview) {
    grid-column: 2;
    justify-self: start;
  }

  .crm-metrics,
  .crm-form,
  .quote-item-row {
    grid-template-columns: 1fr;
  }

  .quote-signing-header,
  .quote-signing-table > div {
    grid-template-columns: 1fr;
  }

  .quote-signing-header img {
    width: 92px;
  }

  .review-toolbar,
  .review-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

.price-quote-panel .printable-price-quote,
.detail-tab-panel .printable-price-quote {
  margin-top: 16px;
}

.quote-print-actions {
  margin-top: 12px;
}

.printable-price-quote {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.printable-price-quote-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.printable-price-quote-header img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.printable-price-quote-header h3,
.printable-price-quote-header p,
.printable-price-quote h4,
.printable-price-quote li,
.printable-price-quote-table {
  margin: 0;
}

.printable-price-quote-table {
  width: 100%;
  border-collapse: collapse;
}

.printable-price-quote-table th,
.printable-price-quote-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.quote-signature-preview {
  display: grid;
  gap: 8px;
}

.quote-signature-preview img {
  max-width: 260px;
  min-height: 72px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

@media print {
  body.print-price-quote * {
    visibility: hidden !important;
  }

  body.print-price-quote .printable-price-quote,
  body.print-price-quote .printable-price-quote * {
    visibility: visible !important;
  }

  body.print-price-quote .printable-price-quote {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    padding: 18mm;
    border: 0;
    box-shadow: none;
  }

  body.print-price-quote .no-print {
    display: none !important;
  }
}
.payment-page {
  min-height: 100vh;
  background: #f7f4ef;
  color: #1f2722;
}

.payment-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 52px;
}

.payment-brand img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
}

.payment-hero {
  max-width: 760px;
  margin-bottom: 28px;
}

.payment-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.payment-hero p {
  max-width: 620px;
  margin: 0;
  color: #58625d;
  font-size: 1.05rem;
}

.payment-panel {
  display: grid;
  gap: 18px;
}

.payment-email {
  display: grid;
  gap: 8px;
  max-width: 420px;
  font-weight: 700;
}

.payment-email input {
  width: 100%;
  border: 1px solid rgba(31, 39, 34, 0.2);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  background: #fffdf9;
  color: #1f2722;
}

.payment-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.payment-plan {
  display: grid;
  min-height: 260px;
  align-content: space-between;
  gap: 24px;
  border: 1px solid rgba(31, 39, 34, 0.14);
  border-radius: 8px;
  padding: 24px;
  background: #fffdf9;
  box-shadow: 0 18px 50px rgba(31, 39, 34, 0.08);
}

.highlighted-plan {
  border-color: rgba(50, 101, 83, 0.45);
  background: #f4fbf6;
}

.plan-kicker {
  margin: 0 0 10px;
  color: #326553;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-plan h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.payment-plan p {
  margin: 0;
  color: #58625d;
}

.payment-button {
  width: 100%;
}

.payment-status {
  min-height: 1.4em;
  margin: 0;
  color: #58625d;
  font-weight: 700;
}

.payment-status[data-tone="success"] {
  color: #226747;
}

.payment-status[data-tone="error"] {
  color: #a43b32;
}

.portal-page {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(247, 244, 239, 0.98)),
    linear-gradient(135deg, rgba(50, 101, 83, 0.12), rgba(74, 91, 132, 0.1));
}

.portal-shell {
  display: grid;
  gap: 44px;
}

.portal-header {
  margin-bottom: 10px;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-nav a,
.portal-nav-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(31, 39, 34, 0.16);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 253, 249, 0.78);
  color: #1f2722;
  font-weight: 800;
  text-decoration: none;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  min-height: min(640px, calc(100vh - 170px));
}

.portal-hero-copy {
  max-width: 780px;
}

.portal-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.portal-hero p {
  max-width: 680px;
  margin: 0;
  color: #43504a;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.portal-preview {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(31, 39, 34, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 253, 249, 0.84);
  box-shadow: 0 20px 60px rgba(31, 39, 34, 0.12);
}

.portal-preview span {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid rgba(31, 39, 34, 0.1);
  color: #1f2722;
  font-weight: 800;
}

.portal-preview span:last-child {
  border-bottom: 0;
}

.portal-section {
  display: grid;
  gap: 18px;
  padding: 32px 0 4px;
}

.portal-section h2,
.portal-plans-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0;
}

.portal-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portal-steps article {
  border: 1px solid rgba(31, 39, 34, 0.14);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 253, 249, 0.88);
}

.portal-steps strong {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #326553;
  color: #fffdf9;
}

.portal-steps h3 {
  margin: 18px 0 8px;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.portal-steps p {
  margin: 0;
  color: #58625d;
}

.portal-plans {
  border-top: 1px solid rgba(31, 39, 34, 0.14);
  padding-top: 34px;
}

.portal-plans-heading {
  margin-bottom: 0;
}

.console-page {
  background: #f6f7f4;
}

.console-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.console-heading {
  max-width: 760px;
  margin: 0 0 28px;
}

.console-heading h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.console-heading p {
  margin: 0;
  color: #58625d;
  font-size: 1.05rem;
}

.console-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.console-form {
  display: grid;
  gap: 16px;
}

.console-form > section,
.workspace-preview {
  border: 1px solid rgba(31, 39, 34, 0.14);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 18px 50px rgba(31, 39, 34, 0.08);
}

.console-form > section {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.workspace-list-section {
  background: #f9fbf7 !important;
}

.join-flow .workspace-list-section,
.embedded-setup-flow .workspace-list-section {
  display: none;
}

.workspace-list {
  display: grid;
  gap: 8px;
}

.workspace-list-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(31, 39, 34, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf9;
  color: #1f2722;
  text-align: left;
  cursor: pointer;
}

.workspace-list-item:hover,
.workspace-list-item.is-active {
  border-color: rgba(50, 101, 83, 0.42);
  background: #edf4ef;
}

.workspace-list-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workspace-list-item strong,
.workspace-list-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-list-item small,
.workspace-list-item em,
.empty-workspace-list {
  color: #58625d;
}

.workspace-list-item em {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  text-transform: capitalize;
}

.empty-workspace-list {
  margin: 0;
}

.console-section-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.console-section-title > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #326553;
  color: #fffdf9;
  font-weight: 900;
}

.console-section-title h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.console-section-title p {
  margin: 0;
  color: #58625d;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.console-grid label,
.console-modules label {
  display: grid;
  gap: 8px;
  color: #1f2722;
  font-weight: 800;
}

.console-grid input,
.console-grid select,
.console-grid textarea {
  width: 100%;
  border: 1px solid rgba(31, 39, 34, 0.18);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: #1f2722;
  font: inherit;
}

.console-grid input[type="file"] {
  padding: 10px;
}

.console-grid input[type="color"] {
  min-height: 46px;
  padding: 4px;
}

.field-hint {
  color: #58625d;
  font-size: 0.82rem;
  font-weight: 650;
}

.wide-field {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-field input {
  width: auto;
}

.console-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.console-plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.console-plan-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(31, 39, 34, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: #f7f8f5;
  cursor: pointer;
}

.console-plan-options label:has(input:checked) {
  border-color: rgba(50, 101, 83, 0.45);
  background: #edf4ef;
}

.console-plan-options strong,
.console-plan-options small {
  display: block;
}

.console-plan-options small {
  margin-top: 4px;
  color: #58625d;
  font-weight: 650;
  line-height: 1.35;
}

.console-modules label {
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid rgba(31, 39, 34, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: #f7f8f5;
}

.console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.workspace-preview {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.workspace-preview-logo {
  display: block;
  max-width: 180px;
  max-height: 96px;
  object-fit: contain;
}

.workspace-preview h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0;
}

.workspace-preview p {
  margin: 0;
  color: #58625d;
}

.preview-domain {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(31, 39, 34, 0.12);
  padding-top: 16px;
}

.preview-domain span {
  color: #58625d;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-domain strong {
  overflow-wrap: anywhere;
}

.preview-swatches {
  display: flex;
  gap: 8px;
}

.preview-swatches span {
  width: 52px;
  height: 32px;
  border: 1px solid rgba(31, 39, 34, 0.14);
  border-radius: 8px;
}

.preview-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-modules span {
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf4ef;
  color: #326553;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: capitalize;
}

.customer-console-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.customer-console-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.customer-console-hero p {
  max-width: 720px;
  margin: 0;
  color: #58625d;
  font-size: 1.05rem;
}

.super-admin-page {
  min-height: 100vh;
  background: #f4f6f3;
  color: #1f2722;
}

.super-admin-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.super-admin-header,
.super-admin-title,
.tenant-panel-head,
.tenant-toolbar,
.tenant-editor-head,
.tenant-actions,
.tenant-links {
  display: flex;
  align-items: center;
}

.super-admin-header,
.super-admin-title {
  justify-content: space-between;
  gap: 18px;
}

.super-admin-header {
  margin-bottom: 28px;
}

.super-admin-title {
  align-items: end;
  margin-bottom: 18px;
}

.super-admin-title h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.super-admin-title p {
  max-width: 780px;
  margin: 0;
  color: #58625d;
}

.super-admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.super-admin-metrics article,
.tenant-panel,
.tenant-editor-panel {
  border: 1px solid rgba(31, 39, 34, 0.14);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 18px 50px rgba(31, 39, 34, 0.08);
}

.super-admin-metrics article {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.super-admin-metrics span {
  color: #58625d;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.super-admin-metrics strong {
  font-size: 2rem;
  line-height: 1;
}

.super-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 16px;
  align-items: start;
}

.tenant-list-document .tenant-editor-panel,
.tenant-list-page .tenant-editor-panel {
  display: none;
}

.tenant-list-document .super-admin-layout,
.tenant-list-page .super-admin-layout {
  grid-template-columns: minmax(0, 1fr);
}

.tenant-detail-document .super-admin-metrics,
.tenant-detail-document .tenant-panel,
.tenant-detail-page .super-admin-metrics,
.tenant-detail-page .tenant-panel {
  display: none;
}

.tenant-detail-document .super-admin-layout,
.tenant-detail-page .super-admin-layout {
  display: block;
}

.tenant-panel {
  min-width: 0;
  overflow: hidden;
}

.tenant-panel-head {
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(31, 39, 34, 0.1);
  padding: 18px 18px 14px;
}

.tenant-panel-head h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.tenant-toolbar {
  gap: 10px;
  justify-content: space-between;
  border-bottom: 1px solid rgba(31, 39, 34, 0.12);
  padding: 14px;
  background: #f9fbf7;
}

.tenant-toolbar label {
  flex: 1 1 auto;
}

.tenant-toolbar input,
.tenant-toolbar select,
.tenant-editor-grid input,
.tenant-editor-grid select,
.tenant-editor-grid textarea {
  width: 100%;
  border: 1px solid rgba(31, 39, 34, 0.18);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: #1f2722;
  font: inherit;
}

.tenant-toolbar select {
  max-width: 180px;
}

.tenant-table-wrap {
  overflow: auto;
}

.tenant-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.tenant-table th,
.tenant-table td {
  border-bottom: 1px solid rgba(31, 39, 34, 0.1);
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

.tenant-table th {
  color: #58625d;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tenant-table tr.is-selected,
.tenant-table tr:hover {
  background: #edf4ef;
}

.tenant-row-button {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.tenant-row-button strong,
.tenant-row-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-row-button span,
.empty-tenant-table {
  color: #58625d;
}

.tenant-table a {
  color: #326553;
  font-weight: 850;
  text-decoration: none;
}

.tenant-pill,
.tenant-status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.tenant-pill {
  background: #eef1f6;
  color: #4a5b84;
}

.tenant-status-pill {
  background: #eef4ef;
  color: #326553;
}

.tenant-status-pill[data-status="paused"],
.tenant-status-pill[data-status="cancelled"] {
  background: #f6efec;
  color: #9a4635;
}

.tenant-editor-panel {
  position: sticky;
  top: 16px;
  padding: 18px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.tenant-detail-document .tenant-editor-panel,
.tenant-detail-page .tenant-editor-panel {
  position: static;
  width: min(980px, 100%);
  max-height: none;
  margin: 0 auto;
  overflow: visible;
}

.tenant-editor-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tenant-editor-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.tenant-editor-head h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0;
}

.tenant-mode {
  margin: 0;
  border: 1px solid rgba(50, 101, 83, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf4ef;
  color: #326553;
  font-size: 0.78rem;
  font-weight: 900;
}

.tenant-logo-section {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(31, 39, 34, 0.12);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f9fbf7;
}

.tenant-logo-preview {
  display: grid;
  width: 96px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(31, 39, 34, 0.14);
  border-radius: 8px;
  background: #fff;
}

.tenant-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.tenant-logo-preview span {
  color: #58625d;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tenant-logo-upload {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-weight: 850;
}

.tenant-logo-upload input {
  width: 100%;
  border: 1px dashed rgba(31, 39, 34, 0.24);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  font: inherit;
}

.tenant-logo-upload small {
  color: #58625d;
  font-weight: 750;
}

.tenant-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tenant-editor-grid label {
  display: grid;
  gap: 7px;
  color: #1f2722;
  font-weight: 850;
}

.tenant-editor-grid input[type="color"] {
  min-height: 43px;
  padding: 4px;
}

.tenant-editor-grid input[readonly] {
  color: #58625d;
  background: #f7f8f5;
  cursor: default;
}

.tenant-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  border: 0;
  padding: 0;
}

.tenant-modules legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #58625d;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tenant-modules label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(31, 39, 34, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: #f7f8f5;
  font-weight: 800;
}

.tenant-links {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tenant-links .ghost-button {
  min-height: 38px;
  padding: 0 12px;
  text-decoration: none;
}

.tenant-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.tenant-actions #deleteTenantBtn {
  margin-right: auto;
  color: #9a4635;
}

@media (max-width: 1080px) {
  .super-admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .super-admin-layout {
    grid-template-columns: 1fr;
  }

  .tenant-editor-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .super-admin-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 14px;
  }

  .super-admin-header,
  .super-admin-title,
  .tenant-panel-head,
  .tenant-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tenant-toolbar select {
    max-width: none;
  }

  .super-admin-metrics,
  .tenant-editor-grid,
  .tenant-logo-section,
  .tenant-modules {
    grid-template-columns: 1fr;
  }
}

.workspace-status-card,
.customer-console-card {
  border: 1px solid rgba(31, 39, 34, 0.14);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 18px 50px rgba(31, 39, 34, 0.08);
}

.workspace-status-card {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.workspace-status-card span {
  color: #58625d;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-status-card strong {
  color: #326553;
  font-size: 1.6rem;
}

.customer-console-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.customer-console-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 220px;
  padding: 20px;
}

.customer-console-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.customer-console-card p {
  margin: 0;
  color: #58625d;
}

.customer-console-card .ghost-button {
  align-self: end;
  justify-self: start;
}

.customer-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.customer-dashboard-panel {
  margin-top: 16px;
  padding: 20px;
}

.customer-dashboard-list {
  display: grid;
  gap: 10px;
}

.customer-console-admin .customer-console-eyebrow {
  margin: 0 0 4px;
}

.customer-console-admin .sidebar {
  gap: 16px;
}

.customer-console-admin .brand {
  min-height: 72px;
}

.customer-console-admin .admin-brand-logo {
  width: 174px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

[dir="rtl"] .customer-console-admin .admin-brand-logo {
  object-position: right center;
}

.customer-console-admin .mini-panel {
  min-height: 92px;
  flex: 0 0 auto;
}

.customer-console-admin .client-session {
  min-height: 126px;
}

.customer-console-admin .client-session[hidden] {
  display: grid;
  visibility: hidden;
}

.customer-console-admin .designer-nav {
  display: grid;
  gap: 10px;
}

.customer-console-admin .step-button {
  min-height: 52px;
}

.customer-console-admin .step-button span:first-child {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.customer-console-admin .topbar {
  min-height: 82px;
}

.customer-console-admin .top-actions {
  min-height: 42px;
}

.customer-console-admin .crm-metrics {
  min-height: 96px;
}

.customer-console-admin .review-toolbar {
  min-height: 78px;
}

.customer-console-admin .review-layout,
.customer-console-admin .whatsapp-management {
  min-height: min(620px, calc(100vh - 230px));
}

.customer-console-admin #customerConsoleWorkspaceLabel {
  font-size: 1.18rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.workspace-setup-frame {
  width: 100%;
  min-height: 1120px;
  margin-top: 18px;
  border: 1px solid rgba(31, 39, 34, 0.12);
  border-radius: 8px;
  background: #f6f7f4;
}

.console-page.is-embedded {
  min-height: auto;
  background: transparent;
}

.console-page.is-embedded .console-shell {
  width: 100%;
  padding: 0;
}

.console-page.is-embedded .payment-header,
.console-page.is-embedded .console-heading {
  display: none;
}

.console-page.is-embedded .console-layout {
  grid-template-columns: minmax(0, 1fr);
}

.console-page.is-embedded .workspace-preview {
  position: static;
  order: -1;
}

.setup-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.setup-summary-card,
.setup-summary-section {
  border: 1px solid rgba(31, 39, 34, 0.12);
  border-radius: 8px;
  background: #fffdf9;
}

.setup-summary-card {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 16px;
}

.setup-summary-card span {
  color: #58625d;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.setup-summary-card strong {
  overflow-wrap: anywhere;
  color: #1f2722;
  font-size: 1.05rem;
}

.setup-summary-card p,
.setup-summary-section p {
  margin: 0;
  color: #58625d;
}

.setup-summary-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 18px;
}

.setup-summary-section h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: 0;
}

.setup-color-row {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.setup-color-row span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(31, 39, 34, 0.16);
  border-radius: 50%;
  background: var(--swatch);
}

@media (max-width: 760px) {
  .payment-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 18px;
  }

  .payment-header {
    margin-bottom: 36px;
  }

  .payment-brand img {
    width: 120px;
  }

  .payment-plans {
    grid-template-columns: 1fr;
  }

  .payment-plan {
    min-height: 220px;
    padding: 20px;
  }

  .portal-nav {
    gap: 6px;
  }

  .portal-nav a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .setup-summary-grid {
    grid-template-columns: 1fr;
  }

  .workspace-setup-frame {
    min-height: 1400px;
  }

  .setup-summary-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .portal-preview {
    align-self: stretch;
  }

  .portal-steps {
    grid-template-columns: 1fr;
  }

  .console-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .console-layout,
  .console-grid,
  .console-plan-options,
  .console-modules {
    grid-template-columns: 1fr;
  }

  .workspace-preview {
    position: static;
  }

  .console-actions {
    justify-content: stretch;
  }

  .console-actions .primary-button,
  .console-actions .ghost-button {
    width: 100%;
  }

  .workspace-list-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-console-hero,
  .customer-console-grid {
    grid-template-columns: 1fr;
  }
}
