@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

/* =========================================================================
   SCH MEDICOS — Design System
   Executive healthcare engineering. Premium, clinical, precise.
   ========================================================================= */

:root {
  /* Ink / neutrals (cool family, single hue) */
  --ink: #0e1a28;
  --ink-soft: #27384b;
  --muted: #56697b;
  --faint: #8696a6;
  --line: #e3eaf1;
  --line-soft: #eef3f8;
  --page: #f3f7fb;
  --surface: #ffffff;
  --surface-2: #f8fbfe;

  /* Dark surfaces (nav / footer) */
  --graphite: #0b1521;
  --graphite-2: #0f1d2c;
  --graphite-3: #14283c;

  /* Brand */
  --blue: #0666b3;
  --blue-strong: #04508f;
  --blue-deep: #06243f;
  --blue-bright: #1284d6;
  --cyan: #1fa6d8;
  --green: #15a34a;
  --green-strong: #0f7d39;
  --amber: #d97706;
  --red: #dc2626;

  /* Logo-derived dashboard accents — sampled from logo_SCH_-removebg-preview.png
     (green "SCH" #037f32 / olive-brass caduceus #6b5d38). Primary = medical green,
     warm secondary = caduceus brass/gold. */
  --brand: #0a7d36;          /* logo green, primary dashboard accent (white text = 5.2:1) */
  --brand-strong: #066128;   /* solid buttons / strong text (white text = 7.6:1) */
  --brand-deep: #064a20;
  --brand-bright: #12a04a;   /* charts, fills, highlights */
  --brand-soft: #e8f4ec;     /* tint surface */
  --brand-tint: #f1f8f3;
  --brand-ring: 0 0 0 4px rgba(10, 125, 54, .15);
  --gold: #9c7d34;           /* caduceus brass */
  --gold-strong: #7c6228;    /* gold text on light (5.8:1) */
  --gold-bright: #c2a04e;    /* gold on dark surfaces */
  --gold-soft: #f5edd6;      /* tint surface */
  --shadow-card: 0 1px 2px rgba(14, 26, 40, .05), 0 10px 26px -16px rgba(14, 26, 40, .22);
  --shadow-pop: 0 18px 42px -20px rgba(8, 40, 24, .35), 0 4px 12px -8px rgba(14, 26, 40, .14);

  /* Effects */
  --ring: 0 0 0 4px rgba(6, 102, 179, .16);
  --shadow-xs: 0 1px 2px rgba(14, 26, 40, .06);
  --shadow-sm: 0 1px 2px rgba(14, 26, 40, .07), 0 1px 1px rgba(14, 26, 40, .04);
  --shadow-md: 0 6px 16px -4px rgba(14, 26, 40, .10), 0 2px 6px -3px rgba(14, 26, 40, .08);
  --shadow-lg: 0 22px 48px -16px rgba(8, 40, 80, .22), 0 8px 18px -10px rgba(8, 40, 80, .14);
  --shadow-blue: 0 14px 30px -12px rgba(6, 102, 179, .45);
  --shadow-green: 0 14px 28px -12px rgba(21, 163, 74, .40);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 18px;
  --r-xl: 26px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
  --speed: .2s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "Segoe UI", system-ui, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

h1, h2, h3, h4, h5,
.font-display {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: -.018em;
}

::selection {
  background: rgba(6, 102, 179, .18);
  color: var(--blue-deep);
}

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

/* Scrollbar (subtle, cool) */
* {
  scrollbar-width: thin;
  scrollbar-color: #c2cedb transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: #c5d1de;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: #a9b8c8;
  background-clip: padding-box;
}

/* ----- Utilities ----------------------------------------------------------- */

[x-cloak] { display: none !important; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  width: 100%;
  max-width: 100%;
  height: 3px;
  z-index: 70;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(31, 166, 216, .5);
  pointer-events: none;
  will-change: transform;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  border-radius: 0 0 var(--r-sm) 0;
  background: var(--graphite);
  color: #fff;
  padding: .75rem 1.1rem;
  font-weight: 600;
  transform: translateY(-120%);
  transition: transform var(--speed) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  top: 0;
}

.container-sch {
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
}

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.focus-ring:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bg-sch-blue { background-color: var(--blue) !important; }
.text-sch-blue { color: var(--blue) !important; }
.border-sch-blue { border-color: var(--blue) !important; }
.hover\:text-sch-blue:hover { color: var(--blue) !important; }
.hover\:border-sch-blue:hover { border-color: var(--blue) !important; }
.focus\:border-sch-blue:focus { border-color: var(--blue) !important; }

/* Eyebrow / label */
.sch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sch-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.sch-eyebrow--light { color: #7fd0ff; }
.sch-eyebrow--light::before { background: #7fd0ff; }

.sch-title-rule {
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 1.2rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* Scroll reveal — only hide initially when JS can reveal it (robust no-JS fallback) */
@media (scripting: enabled) {
  [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(26px); }
  [data-reveal="left"]:not(.is-visible) { transform: translateX(-30px); }
  [data-reveal="right"]:not(.is-visible) { transform: translateX(30px); }
  [data-reveal="scale"]:not(.is-visible) { transform: scale(.93); }
  [data-reveal="blur"]:not(.is-visible) { transform: translateY(22px); filter: blur(8px); }
  [data-reveal="fade"]:not(.is-visible) { transform: none; }
}
[data-reveal] {
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out), filter .75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* Decorative grain for dark surfaces */
.has-grain {
  position: relative;
}
.has-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.sch-dot-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(6, 102, 179, .12) 1px, transparent 1.6px);
  background-size: 13px 13px;
}

/* ----- Brand lockup -------------------------------------------------------- */

.sch-brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.sch-brand__mark {
  height: 50px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
}
.sch-brand__plaque {
  display: grid;
  place-items: center;
  height: 52px;
  width: 58px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(14, 26, 40, .06);
}
.sch-brand__plaque img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.sch-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}
.sch-brand__text strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.sch-brand__text small {
  margin-top: .3rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}
.sch-brand--light .sch-brand__text strong { color: #fff; }
.sch-brand--light .sch-brand__text small { color: #9fb2c4; }

.sch-brand__since {
  display: grid;
  align-content: center;
  padding-left: 1rem;
  margin-left: .2rem;
  border-left: 1px solid var(--line);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--blue);
}
.sch-brand__since b {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--faint);
}

/* Legacy wordmark (footer alt / install / quote) */
.sch-public-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  white-space: nowrap;
  letter-spacing: -.035em;
  font-family: "Space Grotesk", sans-serif;
}
.sch-public-wordmark strong {
  color: var(--blue);
  font-size: 2.4rem;
  line-height: .85;
  font-weight: 700;
}
.sch-public-wordmark span {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 500;
}
.sch-public-wordmark--footer strong { color: #4aa8ff; }
.sch-public-wordmark--footer span { color: #fff; }

/* =========================================================================
   PUBLIC — Navigation
   ========================================================================= */

.public-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
.public-nav.is-stuck {
  box-shadow: 0 6px 24px -12px rgba(8, 40, 80, .26);
}

.public-topbar {
  background: var(--graphite);
  color: #fff;
}
.public-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 40px;
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
}
.public-topbar__meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: .8rem;
  font-weight: 500;
  color: #c3d0dd;
  min-width: 0;
}
.public-topbar__meta span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}
.public-topbar__meta svg { color: var(--cyan); }
.public-topbar__sep { color: rgba(255, 255, 255, .22); }
.public-topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: stretch;
  padding-inline: 1.25rem;
  background: var(--green);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--speed) var(--ease);
}
.public-topbar__cta:hover { background: var(--green-strong); }

.public-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
  min-height: 78px;
}

.public-nav__links {
  display: none;
  align-items: center;
  gap: .3rem;
}
@media (min-width: 1100px) {
  .public-nav__links { display: flex; }
}
.public-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .8rem;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.public-nav-link:hover {
  color: var(--blue);
  background: rgba(6, 102, 179, .06);
}
.public-nav-link.is-active { color: var(--blue); }
.public-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.public-nav__actions {
  display: none;
  align-items: center;
  gap: .75rem;
}
@media (min-width: 1024px) {
  .public-nav__actions { display: flex; }
}
.public-nav__crm {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--speed) var(--ease);
}
.public-nav__crm:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.mobile-menu__inner {
  display: grid;
  gap: .25rem;
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
  padding-block: 1rem;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu a:hover,
.mobile-menu a.is-active {
  background: rgba(6, 102, 179, .07);
  color: var(--blue);
}
.mobile-menu a.is-primary {
  margin-top: .35rem;
  background: var(--blue);
  color: #fff;
  justify-content: center;
}

/* =========================================================================
   Buttons (public + shared)
   ========================================================================= */

.sch-btn-primary,
.sch-btn-outline-green,
.sch-btn-ghost {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: .9rem 1.65rem;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .26s var(--ease-spring), background var(--speed) var(--ease),
              color var(--speed) var(--ease), border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
/* icon micro-motion */
.sch-btn-primary svg,
.sch-btn-outline-green svg,
.sch-btn-ghost svg {
  transition: transform .26s var(--ease-spring);
}
.sch-btn-primary:hover svg,
.sch-btn-outline-green:hover svg,
.sch-btn-ghost:hover svg { transform: translateX(2px); }

.sch-btn-primary {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #fff;
  box-shadow: var(--shadow-blue);
}
/* sheen sweep (sits above bg, below text) */
.sch-btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 36%, rgba(255, 255, 255, .42) 50%, transparent 64%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease-out);
}
.sch-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px -14px rgba(6, 102, 179, .62);
}
.sch-btn-primary:hover::before { transform: translateX(130%); }
.sch-btn-primary:active { transform: translateY(-1px) scale(.99); }

.sch-btn-outline-green {
  border: 1.5px solid rgba(21, 163, 74, .45);
  color: var(--green-strong);
  background: #fff;
}
.sch-btn-outline-green::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--green);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}
.sch-btn-outline-green:hover {
  border-color: var(--green);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-green);
}
.sch-btn-outline-green:hover::before { opacity: 1; }
.sch-btn-outline-green:active { transform: translateY(-1px) scale(.99); }

.sch-btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  background: #fff;
}
.sch-btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.sch-btn-ghost:active { transform: translateY(0); }

/* =========================================================================
   PUBLIC — Home hero
   ========================================================================= */

.sch-home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(58% 75% at 88% 8%, rgba(31, 166, 216, .12), transparent 60%),
    radial-gradient(50% 60% at 6% 96%, rgba(6, 102, 179, .09), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
}
.sch-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(6, 102, 179, .08) 1px, transparent 1.6px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(72% 60% at 26% 32%, #000, transparent 76%);
  mask-image: radial-gradient(72% 60% at 26% 32%, #000, transparent 76%);
  pointer-events: none;
}
.sch-home-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
  padding-block: clamp(2.75rem, 5vw, 5.25rem);
}
.sch-home-hero__copy { position: relative; z-index: 2; max-width: 660px; }
.sch-home-hero__copy h1 {
  margin: 1.15rem 0 0;
  font-size: clamp(2.55rem, 4.9vw, 4.35rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--blue-deep);
  text-wrap: balance;
}
.sch-home-hero__copy h1 em {
  font-style: normal;
  color: var(--blue);
}
.sch-home-hero__copy p {
  max-width: 540px;
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.65;
}
.sch-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}
.sch-home-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.sch-home-trust div { line-height: 1; }
.sch-home-trust strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: -.02em;
}
.sch-home-trust span {
  display: block;
  margin-top: .35rem;
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
}

.sch-home-hero__media {
  position: relative;
  min-height: 380px;
}
.sch-hero-main-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: 540px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.sch-hero-floating {
  position: absolute;
  width: 38%;
  max-width: 210px;
  border-radius: var(--r-md);
  border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.sch-hero-floating--one { left: -22px; bottom: 34px; }
.sch-hero-floating--two { right: -18px; top: 28px; width: 30%; aspect-ratio: 1; }
.sch-hero-badge {
  position: absolute;
  left: -26px;
  top: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1rem;
  border-radius: var(--r-md);
  background: rgba(11, 21, 33, .92);
  color: #fff;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.sch-hero-badge i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(21, 163, 74, .18);
  color: #5fe39a;
}
.sch-hero-badge strong { display: block; font-size: .9rem; font-weight: 700; }
.sch-hero-badge span { display: block; font-size: .72rem; color: #9fb2c4; }

.sch-hero-stat {
  position: absolute;
  right: -18px;
  bottom: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem 1.05rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px) saturate(160%);
}
.sch-hero-stat__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--blue), var(--cyan));
  color: #fff;
}
.sch-hero-stat strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--blue-deep);
  letter-spacing: -.02em;
}
.sch-hero-stat span {
  display: block;
  margin-top: .2rem;
  font-size: .74rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 1099px) {
  .sch-hero-floating { display: none; }
  .sch-hero-badge { left: 14px; }
  .sch-hero-stat { right: 14px; bottom: 14px; }
}
@media (max-width: 480px) {
  .sch-hero-badge span,
  .sch-hero-stat span { display: none; }
  .sch-hero-stat { gap: .6rem; padding: .6rem .8rem; }
}

/* =========================================================================
   PUBLIC — Page hero (interior pages)
   ========================================================================= */

.sch-page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--surface-2));
}
.sch-page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background-image: radial-gradient(circle at 1px 1px, rgba(6, 102, 179, .08) 1px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 48%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 48%);
  pointer-events: none;
}
.sch-page-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  min-height: 380px;
  padding-block: clamp(2.75rem, 5vw, 4.75rem);
}
.sch-page-hero h1 {
  max-width: 720px;
  color: var(--blue-deep);
  font-size: clamp(2.2rem, 3.8vw, 3.9rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.sch-page-hero p {
  max-width: 600px;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.7;
}
.sch-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.8rem;
}
.sch-page-hero__media { position: relative; }
.sch-page-hero__media img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

/* =========================================================================
   PUBLIC — Proof strip / band
   ========================================================================= */

.sch-proof-strip {
  width: min(100% - 2.5rem, 1280px);
  margin: -2.2rem auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.sch-proof-strip article {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 92px;
  padding: 1rem 1.2rem;
  border-right: 1px solid var(--line-soft);
}
.sch-proof-strip article:last-child { border-right: 0; }
.sch-proof-strip svg {
  width: 30px;
  height: 30px;
  color: var(--blue);
  flex: 0 0 auto;
}
.sch-proof-strip h2 {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.sch-proof-strip p {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.sch-mini-flag {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, .14);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.sch-mini-flag--do {
  background:
    linear-gradient(90deg, transparent 0 41%, #fff 41% 59%, transparent 59%),
    linear-gradient(0deg, transparent 0 38%, #fff 38% 62%, transparent 62%),
    linear-gradient(135deg, #0038a8 0 50%, #ce1126 50% 100%);
}
.sch-mini-flag--us {
  background:
    linear-gradient(#b22234 0 7.69%, #fff 7.69% 15.38%, #b22234 15.38% 23.07%, #fff 23.07% 30.76%, #b22234 30.76% 38.45%, #fff 38.45% 46.14%, #b22234 46.14% 53.83%, #fff 53.83% 61.52%, #b22234 61.52% 69.21%, #fff 69.21% 76.9%, #b22234 76.9% 84.59%, #fff 84.59% 92.28%, #b22234 92.28% 100%);
}
.sch-mini-flag--us::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 46%; height: 54%;
  background: #3c3b6e;
}

.sch-proof-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sch-proof-band article {
  min-height: 130px;
  padding: 1.4rem;
  border-right: 1px solid var(--line-soft);
  transition: background var(--speed) var(--ease);
}
.sch-proof-band article:last-child { border-right: 0; }
.sch-proof-band article:hover { background: var(--surface-2); }
.sch-proof-band span {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sch-proof-band strong {
  display: block;
  margin-top: .55rem;
  color: var(--blue-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}
.sch-proof-band p {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.55;
}

/* =========================================================================
   PUBLIC — Sections shell
   ========================================================================= */

.sch-section { padding-block: clamp(3rem, 5.5vw, 5.5rem); overflow-x: clip; }
.sch-section--white { background: #fff; }
.sch-section--page { background: var(--page); }
.sch-section--dark {
  position: relative;
  background: var(--graphite);
  color: #fff;
}

.sch-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
.sch-section-head--compact { margin-bottom: 1.2rem; }
.sch-section-head h2 {
  max-width: 720px;
  color: var(--blue-deep);
  font-size: clamp(1.85rem, 2.9vw, 2.9rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.sch-section-head p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.65;
}

/* Soluciones */
.sch-solutions,
.sch-project-showcase,
.sch-about-band,
.sch-brand-strip {
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
}

.sch-solutions {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5.5vw, 5rem);
  align-items: start;
  background: transparent;
}
.sch-solutions__intro { position: sticky; top: 120px; }
.sch-solutions__intro h2,
.sch-project-showcase__intro h2,
.sch-about-band h2 {
  margin-top: 1rem;
  color: var(--blue-deep);
  font-size: clamp(1.9rem, 2.7vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -.028em;
  font-weight: 700;
  text-wrap: balance;
}
.sch-solutions__intro p {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.sch-solutions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.sch-solution-item {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .65rem;
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}
.sch-solution-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.sch-solution-item:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 102, 179, .4);
  box-shadow: var(--shadow-lg);
}
.sch-solution-item:hover::before { transform: scaleX(1); }
.sch-solution-item__num {
  position: absolute;
  top: 1.3rem;
  right: 1.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #c9d6e3;
  letter-spacing: -.02em;
}
.sch-solution-item__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, rgba(6, 102, 179, .12), rgba(31, 166, 216, .12));
  color: var(--blue);
}
.sch-solution-item__icon svg { width: 26px; height: 26px; stroke-width: 1.8; }
.sch-solution-item h3 {
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.sch-solution-item p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}
.sch-solution-item__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  align-self: end;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 700;
}
.sch-solution-item__link svg {
  transition: transform var(--speed) var(--ease);
}
.sch-solution-item:hover .sch-solution-item__link svg { transform: translateX(4px); }

/* Project showcase */
.sch-project-showcase {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5.5vw, 5rem);
}
.sch-project-showcase__intro p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.65;
}
.sch-project-showcase__intro a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.6rem;
  min-width: 230px;
  border: 1.5px solid var(--blue);
  border-radius: var(--r-sm);
  padding: .9rem 1.1rem;
  color: var(--blue);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--speed) var(--ease);
}
.sch-project-showcase__intro a:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.sch-project-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.sch-showcase-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.sch-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.sch-showcase-card__media {
  position: relative;
  aspect-ratio: 1.9 / 1;
  overflow: hidden;
}
.sch-showcase-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.sch-showcase-card:hover .sch-showcase-card__media img { transform: scale(1.05); }
.sch-showcase-card__body { padding: 1rem 1.1rem 1.15rem; }
.sch-showcase-card h3 {
  color: var(--ink);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.sch-showcase-card p {
  margin-top: .3rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .82rem;
}

/* About band */
.sch-about-band {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 5.5vw, 5rem);
}
.sch-about-band p {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.sch-about-points {
  display: grid;
  gap: .75rem;
  margin-top: 1.5rem;
}
.sch-about-points li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 500;
}
.sch-about-points svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--green);
}
.sch-about-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: .9rem;
}
.sch-about-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.sch-about-gallery img:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Brand strip */
.sch-brands { overflow: hidden; }
.sch-brand-strip { text-align: center; }
.sch-brand-strip__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .9rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: rgba(6, 102, 179, .08);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sch-brand-strip__eyebrow svg { width: 15px; height: 15px; }
.sch-brand-strip h2 {
  color: var(--blue-deep);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.sch-brand-strip__hint {
  margin: .7rem auto 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* Infinite logo marquee */
.sch-marquee {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  overflow: hidden;
  padding: .6rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sch-marquee__track {
  display: flex;
  width: max-content;
  animation: sch-marquee-scroll 42s linear infinite;
}
.sch-marquee:hover .sch-marquee__track { animation-play-state: paused; }
.sch-marquee__item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 256px;
  height: 156px;
  margin-right: 1.4rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fff, var(--surface-2));
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.sch-marquee__item:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 102, 179, .4);
  box-shadow: var(--shadow-lg);
}
.sch-marquee__item img {
  max-width: 90%;
  max-height: 112px;
  width: auto;
  object-fit: contain;
  transition: transform .4s var(--ease-out);
}
.sch-marquee__item:hover img { transform: scale(1.07); }
@keyframes sch-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .sch-marquee__item { width: 196px; height: 122px; padding: 1.2rem; margin-right: 1rem; }
  .sch-marquee__item img { max-height: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  .sch-marquee { -webkit-mask-image: none; mask-image: none; }
  .sch-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; gap: 1rem; width: 100%; }
  .sch-marquee__item { margin-right: 0; }
  .sch-marquee__item[aria-hidden="true"] { display: none; }
}

/* Service blocks */
.sch-service-block {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.sch-service-block:first-child { border-top: 0; padding-top: 0; }
.sch-service-block.is-reversed .sch-service-block__media { order: 2; }
.sch-service-block__media {
  position: relative;
}
.sch-service-block__media img {
  width: 100%;
  aspect-ratio: 1.3 / 1;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.sch-service-block__tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(11, 21, 33, .9);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
  backdrop-filter: blur(4px);
}
.sch-service-block h2 {
  color: var(--blue-deep);
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.sch-service-block > div > p {
  margin-top: 1rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.sch-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 1.5rem;
}
.sch-check-grid span {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: .65rem .85rem;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 600;
}
.sch-check-grid svg {
  flex: 0 0 auto;
  color: var(--green);
}

/* Galleries */
.sch-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: .85rem;
}
.sch-gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.sch-gallery-grid img:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
}
.sch-gallery-grid img:nth-child(4n+1) { grid-column: span 5; }
.sch-gallery-grid img:nth-child(4n+2) { grid-column: span 3; }
.sch-gallery-grid img:nth-child(4n+3),
.sch-gallery-grid img:nth-child(4n+4) { grid-column: span 4; }

/* Project cards (proyectos page) */
.sch-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
.sch-project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.sch-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 102, 179, .4);
  box-shadow: var(--shadow-lg);
}
.sch-project-card__media { overflow: hidden; aspect-ratio: 1.7 / 1; }
.sch-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.sch-project-card:hover .sch-project-card__media img { transform: scale(1.05); }
.sch-project-card__body {
  display: grid;
  gap: .55rem;
  align-content: start;
  padding: 1.1rem 1.2rem 1.3rem;
}
.sch-project-card h2,
.sch-project-card h3 {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}
.sch-project-card p {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
}
.sch-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.sch-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: .26rem .6rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

/* Contact */
.sch-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.sch-contact-stack { display: grid; gap: .85rem; align-content: start; }
@media (min-width: 1100px) {
  .sch-contact-stack { position: sticky; top: 100px; }
}

/* Highlighted support / contact CTA card */
.sch-support-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: .55rem;
  margin-top: .25rem;
  padding: 1.5rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--blue-deep) 0%, #0a3f72 58%, var(--blue) 128%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.sch-support-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .08) 1px, transparent 1.6px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 75%);
  mask-image: linear-gradient(135deg, #000, transparent 75%);
  pointer-events: none;
}
.sch-support-cta > * { position: relative; z-index: 1; }
.sch-support-cta__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.sch-support-cta h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.01em;
}
.sch-support-cta p { color: #c8dbef; font-size: .88rem; line-height: 1.55; }
.sch-support-cta__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .55rem; }
.sch-support-cta__call,
.sch-support-cta__wa {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--r-sm);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
.sch-support-cta__call { background: #fff; color: var(--blue-deep); }
.sch-support-cta__call:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .5); }
.sch-support-cta__wa { background: var(--green); color: #fff; box-shadow: var(--shadow-green); }
.sch-support-cta__wa:hover { background: var(--green-strong); transform: translateY(-2px); }
.sch-contact-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  padding: 1.2rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.sch-contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sch-contact-card > i,
.sch-contact-card svg:first-child {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, rgba(6, 102, 179, .12), rgba(31, 166, 216, .1));
  color: var(--blue);
}
.sch-contact-card h2,
.sch-contact-card h3 {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
}
.sch-contact-card p { margin-top: .3rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.sch-contact-card a {
  display: inline-block;
  margin-top: .35rem;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.sch-contact-card a:hover { text-decoration: underline; }

/* Public forms */
.sch-public-form {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
}
.sch-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.sch-field { display: block; }
.sch-field > span {
  display: block;
  margin-bottom: .4rem;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
}
.sch-field input,
.sch-field select,
.sch-field textarea {
  width: 100%;
  border: 1px solid #cdd9e6;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: .8rem .9rem;
  color: var(--ink);
  font-family: inherit;
  font-size: .94rem;
  outline: 0;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
              background var(--speed) var(--ease);
}
.sch-field input:focus,
.sch-field select:focus,
.sch-field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: var(--ring);
}
.sch-field textarea { resize: vertical; min-height: 120px; }
.sch-field--full { grid-column: 1 / -1; }

.sch-cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--blue-deep) 0%, #0a3f72 55%, var(--blue) 130%);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.sch-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .08) 1px, transparent 1.6px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.sch-cta-band > * { position: relative; z-index: 1; }
.sch-cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
}
.sch-cta-band p { margin-top: .7rem; color: #c8dbef; max-width: 560px; }
.sch-cta-band .sch-btn-primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
}
.sch-cta-band .sch-btn-primary:hover { background: #eef5fc; }

/* =========================================================================
   PUBLIC — Footer
   ========================================================================= */

footer.sch-footer {
  position: relative;
  background: var(--graphite);
  color: #fff;
}
.sch-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1fr;
  gap: 2.5rem;
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
  padding-block: clamp(3rem, 5vw, 4rem);
}
.sch-footer__brand p {
  margin-top: 1.3rem;
  max-width: 30ch;
  color: #aebccb;
  font-size: .92rem;
  line-height: 1.7;
}
.sch-footer__social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.sch-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem .95rem;
  border-radius: var(--r-sm);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--speed) var(--ease);
}
.sch-footer__social a.is-mail {
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
}
.sch-footer__social a.is-mail:hover { background: rgba(255, 255, 255, .1); }
.sch-footer__social a.is-wa {
  background: var(--green);
  color: #fff;
}
.sch-footer__social a.is-wa:hover { background: var(--green-strong); }
.sch-footer h2 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9fb2c4;
}
.sch-footer ul { margin-top: 1.1rem; display: grid; gap: .6rem; list-style: none; padding: 0; }
.sch-footer ul a {
  color: #c4d0dd;
  font-size: .9rem;
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
.sch-footer ul a:hover { color: #fff; }
.sch-footer address {
  margin-top: 1.1rem;
  display: grid;
  gap: .55rem;
  font-style: normal;
  color: #c4d0dd;
  font-size: .9rem;
  line-height: 1.5;
}
.sch-footer address a { color: #c4d0dd; text-decoration: none; }
.sch-footer address a:hover { color: #fff; }
.sch-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.sch-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
  padding-block: 1.4rem;
  color: #9fb2c4;
  font-size: .8rem;
}
.sch-footer__bottom-inner a { color: #9fb2c4; text-decoration: none; }
.sch-footer__bottom-inner a:hover { color: #fff; }

/* =========================================================================
   CRM — Shell / topbar / sidebar
   ========================================================================= */

.crm-shell { min-height: 100dvh; background: var(--page); }

.crm-topbar {
  position: sticky;
  top: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: 244px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  height: 60px;
  padding-inline: 1rem;
  background: linear-gradient(180deg, var(--graphite-3) 0%, var(--graphite-2) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), var(--shadow-md);
}
.crm-topbar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.crm-wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
}
.crm-wordmark img { height: 34px; width: auto; }
.crm-wordmark__plaque {
  display: grid;
  place-items: center;
  height: 38px;
  width: 42px;
  border-radius: 9px;
  background: #fff;
  flex: 0 0 auto;
}
.crm-wordmark__plaque img { height: 28px; width: auto; }
.crm-wordmark b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}
.crm-wordmark b span { color: #5fb0f0; }

.crm-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
}

.crm-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 540px);
}
.crm-search svg { position: absolute; left: .9rem; color: #8499ad; }
.crm-search input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .06);
  padding: 0 5.4rem 0 2.5rem;
  color: #e8eef4;
  font-size: .88rem;
  outline: 0;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.crm-search input::placeholder { color: #8499ad; }
.crm-search input:focus {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(95, 176, 240, .6);
}
.crm-search kbd {
  position: absolute;
  right: .5rem;
  display: inline-flex;
  gap: .25rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, .1);
  padding: .25rem .5rem;
  color: #b8c6d4;
  font-size: .7rem;
  font-family: "JetBrains Mono", monospace;
}

.crm-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}
.crm-top-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  height: 40px;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  padding: 0 1rem;
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.crm-top-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.crm-top-btn--ghost {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: none;
}
.crm-top-btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.crm-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  color: #c4d0dd;
  cursor: pointer;
}
.crm-bell:hover { background: rgba(255, 255, 255, .07); }
.crm-bell b {
  position: absolute;
  right: 5px;
  top: 4px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  border: 2px solid var(--graphite-2);
}
.crm-user-chip {
  display: flex;
  align-items: center;
  gap: .55rem;
  height: 44px;
  max-width: 230px;
  padding: 0 .55rem 0 .35rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--speed) var(--ease);
}
.crm-user-chip:hover { background: rgba(255, 255, 255, .07); }
.crm-user-chip__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--blue-bright), var(--blue-strong));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}
.crm-user-chip__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  min-width: 0;
}
.crm-user-chip__meta b {
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 134px;
}
.crm-user-chip__meta small {
  color: #93a5b6;
  font-size: .71rem;
  font-weight: 500;
  white-space: nowrap;
}
.crm-user-chip svg { color: #93a5b6; width: 16px; height: 16px; flex: 0 0 auto; }

.crm-body {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: calc(100dvh - 60px);
}

.crm-nav {
  position: sticky;
  top: 60px;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 60px);
  background: linear-gradient(170deg, var(--graphite-2) 0%, var(--graphite) 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  overflow-y: auto;
}
.crm-nav__label {
  padding: .9rem .85rem .4rem;
  color: #5f7387;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.crm-nav__links {
  display: grid;
  gap: .2rem;
  padding: .5rem .65rem;
}
.crm-nav__links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: .8rem;
  height: 44px;
  border-radius: var(--r-sm);
  padding-inline: .9rem;
  color: #c0ccd9;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.crm-nav__links a svg { color: #7d90a3; transition: color var(--speed) var(--ease); }
.crm-nav__links a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.crm-nav__links a:hover svg { color: #c0ccd9; }
.crm-nav__links a.is-active,
.crm-nav__links a[aria-current="page"] {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue-strong));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), var(--shadow-blue);
}
.crm-nav__links a.is-active svg,
.crm-nav__links a[aria-current="page"] svg { color: #fff; }
.crm-nav__links a .crm-nav__count {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #e8eef4;
  font-size: .68rem;
  font-weight: 700;
}
.crm-nav__links a.is-active .crm-nav__count { background: rgba(255, 255, 255, .25); }

.crm-nav__footer { margin-top: auto; padding: .65rem; }
.crm-local-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04);
  padding: 1rem;
  color: #c0ccd9;
}
.crm-local-card p { color: #7fd0ff; font-size: .8rem; font-weight: 700; margin: 0; }
.crm-local-card > span { display: block; margin-top: .25rem; font-size: .76rem; color: #93a5b6; }
.crm-local-card hr { margin: .85rem 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.crm-local-card small { display: block; color: #7d90a3; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.crm-local-card strong {
  display: block;
  margin-top: .2rem;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  font-weight: 500;
}
.crm-local-card em {
  display: inline-flex;
  margin-top: .6rem;
  border-radius: 5px;
  background: rgba(217, 119, 6, .18);
  padding: .25rem .5rem;
  color: #fcd34d;
  font-style: normal;
  font-size: .68rem;
  font-weight: 600;
}
.crm-logout {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: .65rem;
  border-radius: var(--r-sm);
  padding: .7rem .85rem;
  color: #c0ccd9;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.crm-logout:hover { background: rgba(220, 38, 38, .14); color: #fca5a5; }

.crm-content { min-width: 0; }
.crm-page-title { display: none; }
.crm-main { padding: 1.1rem; }
@media (min-width: 1280px) { .crm-main { padding: 1.35rem 1.6rem 2rem; } }

/* =========================================================================
   CRM — Operations dashboard
   ========================================================================= */

.ops-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  margin-bottom: 1.1rem;
}
.ops-title { display: flex; align-items: center; gap: .8rem; }
.ops-title svg {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, rgba(6, 102, 179, .12), rgba(31, 166, 216, .12));
  color: var(--blue);
}
.ops-title h2 {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.ops-title p { margin: .1rem 0 0; color: var(--muted); font-size: .82rem; }
.ops-filters { display: flex; gap: .55rem; margin-left: auto; flex-wrap: wrap; }
.ops-control {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 0 .9rem;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: border-color var(--speed) var(--ease);
}
.ops-control:hover { border-color: #b9c7d6; }
.ops-control svg { color: var(--muted); }

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 1rem;
  align-items: start;
}
.ops-main-grid { display: grid; gap: 1rem; min-width: 0; }

.ops-dash { display: grid; gap: 1rem; }

.ops-row { display: grid; gap: 1rem; align-items: start; }
.ops-row--split { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ops-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(162px, 1fr));
  gap: .8rem;
}
.ops-kpi {
  position: relative;
  display: grid;
  gap: .55rem;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  padding: 1rem 1.05rem 1.05rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.ops-kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cfdbe8; }
.ops-kpi__head { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.ops-kpi__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
}
.ops-kpi__head p {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-kpi__value { display: flex; align-items: baseline; gap: .5rem; }
.ops-kpi__value strong {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
}
.ops-kpi__value small {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .16rem .42rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
}
.ops-kpi__value small.is-up { background: rgba(21, 163, 74, .1); color: var(--green-strong); }
.ops-kpi__value small.is-down { background: rgba(220, 38, 38, .1); color: var(--red); }
.ops-kpi__spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  margin-top: .15rem;
}
.ops-kpi__spark i {
  flex: 1;
  min-width: 3px;
  border-radius: 2px 2px 0 0;
  background: #e6eef6;
}
.ops-kpi__spark i.is-last { background: var(--blue); }
.ops-kpi--amber .ops-kpi__spark i.is-last { background: var(--amber); }
.ops-kpi--green .ops-kpi__spark i.is-last { background: var(--green); }

/* Ticket en foco (compact detail card) */
.ops-focus { display: flex; flex-direction: column; }
.ops-focus__body { padding: 1rem 1.1rem; display: grid; gap: .85rem; }
.ops-focus__id { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.ops-focus__id strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.ops-focus__subject { color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.ops-focus__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.ops-focus__grid dt {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ops-focus__grid dd { margin: .2rem 0 0; color: var(--ink); font-size: .82rem; line-height: 1.4; }
.ops-focus__desc {
  border-top: 1px solid var(--line-soft);
  padding-top: .85rem;
  color: var(--ink-soft);
  font-size: .85rem;
  line-height: 1.55;
}
.ops-focus__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  padding: 0 1.1rem 1.1rem;
}

.ops-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .92fr);
  gap: 1rem;
}

.ops-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.ops-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 50px;
  border-bottom: 1px solid var(--line-soft);
  padding: .55rem 1rem;
}
.ops-card__head h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
}
.ops-card__head a {
  color: var(--blue);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}
.ops-card__head a:hover { text-decoration: underline; }
.ops-card__head > span { color: var(--muted); font-size: .8rem; font-weight: 600; }

.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}
.ops-table th {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: .55rem .7rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}
.ops-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: .6rem .7rem;
  color: var(--ink-soft);
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.ops-nowrap { white-space: nowrap; }
.ops-table--tickets { min-width: 640px; }
.ops-table tbody tr { transition: background var(--speed) var(--ease); }
.ops-table tbody tr:hover { background: var(--surface-2); }
.ops-table tbody tr:last-child td { border-bottom: 0; }
.ops-table a {
  color: var(--blue);
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  font-size: .74rem;
  text-decoration: none;
  white-space: nowrap;
}
.ops-table a:hover { text-decoration: underline; }

.ops-status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-radius: 999px;
  padding: .24rem .55rem;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ops-calendar { position: relative; padding-bottom: .6rem; }
.ops-calendar__bar {
  display: grid;
  grid-template-columns: 54px 1fr;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .75rem;
}
.ops-calendar__bar > div {
  min-height: 44px;
  border-right: 1px solid var(--line-soft);
  padding: .35rem .55rem;
}
.ops-calendar__bar > div:first-child {
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem;
}
.ops-calendar__event {
  display: block;
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  background: rgba(6, 102, 179, .08);
  padding: .45rem .6rem;
  color: var(--blue-strong);
  font-size: .76rem;
  font-weight: 700;
}
.ops-calendar__event small {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-weight: 500;
}
.ops-now-dot {
  position: relative;
  display: block;
  height: 2px;
  margin: .2rem 0;
  border-radius: 2px;
  background: var(--red);
}
.ops-now-dot::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.ops-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
}
.ops-stage {
  position: relative;
  min-height: 78px;
  padding: .8rem .7rem;
  text-align: center;
  border-right: 1px solid var(--line-soft);
  transition: background var(--speed) var(--ease);
}
.ops-stage:last-child { border-right: 0; }
.ops-stage:hover { background: var(--surface-2); }
.ops-stage span { display: block; color: var(--muted); font-size: .7rem; font-weight: 600; }
.ops-stage strong {
  display: block;
  margin-top: .2rem;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.ops-stage small {
  display: block;
  margin-top: .2rem;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 600;
}

.ops-activity { display: grid; }
.ops-activity-row {
  display: grid;
  grid-template-columns: 56px 32px 1fr auto;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  border-bottom: 1px solid var(--line-soft);
  padding: .35rem 1rem;
  font-size: .78rem;
}
.ops-activity-row:last-child { border-bottom: 0; }
.ops-activity-row time { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: .72rem; }
.ops-activity-row i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 102, 179, .1);
  color: var(--blue);
}
.ops-activity-row > span { color: var(--ink-soft); }
.ops-activity-row b { color: var(--blue); font-family: "JetBrains Mono", monospace; font-size: .74rem; }
.ops-activity-row > span:last-child { color: var(--muted); font-size: .74rem; text-align: right; }

/* Ticket detail aside */
.ops-detail {
  position: sticky;
  top: 76px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ops-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 1.1rem 1.1rem .9rem;
}
.ops-detail__head h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.ops-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-soft);
}
.ops-tabs span {
  padding: .75rem .4rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.ops-tabs span:first-child {
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
}
.ops-detail__body { padding: 1.1rem; display: grid; gap: 1.1rem; }
.ops-detail__group h4 {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ops-detail__group p { margin-top: .4rem; color: var(--ink); font-size: .9rem; line-height: 1.55; }
.ops-detail__meta {
  display: grid;
  gap: .75rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 1.1rem;
}
.ops-detail__meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
}
.ops-detail__meta div > span:first-child { color: var(--muted); }
.ops-detail__meta strong { color: var(--ink); font-weight: 600; }
.ops-detail__actions { display: grid; gap: .65rem; padding: 1.1rem; }
.ops-detail__actions-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.ops-action-blue,
.ops-action-green,
.ops-action-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 42px;
  border-radius: var(--r-sm);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
.ops-action-blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.ops-action-blue:hover { transform: translateY(-1px); }
.ops-action-green { background: var(--green); color: #fff; box-shadow: var(--shadow-green); }
.ops-action-green:hover { transform: translateY(-1px); }
.ops-action-light { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); }
.ops-action-light:hover { border-color: #b9c7d6; background: var(--surface-2); }

/* =========================================================================
   CRM — Cards / tables / forms (modules)
   ========================================================================= */

.crm-module-grid { display: grid; gap: 1rem; }
.crm-module-grid--with-panel { grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); align-items: start; }

.crm-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.crm-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  border-bottom: 1px solid var(--line-soft);
  padding: .85rem 1.1rem;
}
.crm-card__head h2 {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.crm-card__head p { margin-top: .15rem; color: var(--muted); font-size: .8rem; }
.crm-card__body { padding: 1.1rem; }

.crm-table-wrap { overflow-x: auto; }
.crm-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: .85rem;
}
.crm-table th {
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: .7rem .9rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
}
.crm-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: .8rem .9rem;
  color: var(--ink-soft);
  vertical-align: middle;
}
.crm-table tbody tr { transition: background var(--speed) var(--ease); }
.crm-table tbody tr:hover { background: var(--surface-2); }
.crm-table tbody tr:last-child td { border-bottom: 0; }
.crm-table strong { color: var(--ink); font-weight: 600; }
.crm-table a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.crm-table a:hover { text-decoration: underline; }

.crm-toolbar { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }

.crm-filter,
.crm-input,
.crm-select,
.crm-textarea {
  border: 1px solid #cdd9e6;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: .65rem .8rem;
  color: var(--ink);
  font-family: inherit;
  font-size: .86rem;
  outline: 0;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
.crm-input:focus,
.crm-select:focus,
.crm-textarea:focus,
.crm-filter:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: var(--ring);
}
.crm-textarea { resize: vertical; min-height: 90px; }

.crm-search-field { position: relative; width: min(100%, 320px); }
.crm-search-field svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.crm-search-field input { width: 100%; padding-left: 2.3rem; }

.crm-field { display: block; }
.crm-field span {
  display: block;
  margin-bottom: .35rem;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 600;
}
.crm-field .crm-input,
.crm-field .crm-select,
.crm-field .crm-textarea { width: 100%; }
.crm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.crm-field--full { grid-column: 1 / -1; }

.crm-primary-btn,
.crm-secondary-btn,
.crm-danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  border-radius: var(--r-sm);
  padding: .6rem 1.1rem;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease),
              border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.crm-primary-btn {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #fff;
  border: 0;
  box-shadow: var(--shadow-blue);
}
.crm-primary-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -14px rgba(6, 102, 179, .55); }
.crm-secondary-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
}
.crm-secondary-btn:hover { border-color: #b9c7d6; background: var(--surface-2); }
.crm-danger-btn {
  border: 1px solid #fbcfcf;
  background: #fff;
  color: var(--red);
}
.crm-danger-btn:hover { background: #fef2f2; }
.crm-primary-btn:active,
.crm-secondary-btn:active,
.crm-danger-btn:active { transform: translateY(1px); }

.crm-record-list { display: grid; }
.crm-ticket-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); align-items: start; }
.crm-record-row {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 1.1rem;
  color: inherit;
  text-decoration: none;
  transition: background var(--speed) var(--ease);
}
.crm-record-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background var(--speed) var(--ease);
}
.crm-record-row:hover { background: var(--surface-2); }
.crm-record-row.is-selected { background: rgba(6, 102, 179, .05); }
.crm-record-row.is-selected::before { background: var(--blue); }
.crm-record-row__top { display: flex; justify-content: space-between; gap: 1rem; }
.crm-record-row h3 { color: var(--ink); font-size: .94rem; font-weight: 700; line-height: 1.3; }
.crm-record-row p { margin-top: .3rem; color: var(--muted); font-size: .8rem; line-height: 1.45; }

.crm-detail-panel {
  position: sticky;
  top: 76px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.crm-detail-panel__section { border-top: 1px solid var(--line-soft); padding: 1.1rem; }
.crm-detail-panel__section:first-child { border-top: 0; }
.crm-detail-panel h3 {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.crm-detail-panel p { margin-top: .45rem; color: var(--ink); font-size: .88rem; line-height: 1.6; }

.crm-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.crm-mini-stat {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  padding: 1rem;
}
.crm-mini-stat span { color: var(--muted); font-size: .72rem; font-weight: 600; }
.crm-mini-stat strong {
  display: block;
  margin-top: .25rem;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.crm-empty {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}
.crm-empty svg { margin-inline: auto; color: #aebccb; }
.crm-empty strong { display: block; margin-top: .7rem; color: var(--ink-soft); font-size: .98rem; font-weight: 700; }
.crm-empty p { margin-top: .3rem; font-size: .85rem; }

/* Quote builder + doc */
.quote-summary {
  display: grid;
  gap: .75rem;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  padding: 1.1rem;
}
.quote-summary div { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); font-size: .88rem; }
.quote-summary div:nth-child(3) {
  border-top: 1px solid var(--line);
  padding-top: .75rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
}
.quote-builder-table input { min-width: 100px; }
.quote-builder-table td:first-child input { min-width: 240px; }

.quote-doc {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  padding: clamp(1.4rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-md);
}
.quote-doc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
.quote-doc__brand { display: flex; align-items: center; gap: .8rem; }
.quote-doc__brand img { height: 48px; width: auto; }
.quote-doc__brand strong { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.quote-doc__head p { max-width: 360px; margin-top: .6rem; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.quote-doc__head > div:last-child { text-align: right; }
.quote-doc__head > div:last-child > span:first-child { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.quote-doc__head h1 { margin: .25rem 0 .6rem; color: var(--ink); font-family: "JetBrains Mono", monospace; font-size: 1.7rem; font-weight: 700; }
.quote-doc__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
}
.quote-doc__meta h2 { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.quote-doc__meta strong { display: block; margin-top: .5rem; color: var(--ink); font-size: 1.05rem; }
.quote-doc__meta p { margin-top: .5rem; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.quote-doc__table { margin-block: 1.5rem; }
.quote-doc__totals {
  display: grid;
  gap: .6rem;
  width: min(100%, 340px);
  margin-left: auto;
  padding-top: 1rem;
}
.quote-doc__totals div { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); font-size: .9rem; }
.quote-doc__totals div:last-child {
  border-top: 1px solid var(--line);
  padding-top: .75rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
}
.quote-doc__notes {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  padding: 1.1rem;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.6;
}

.report-chart { width: 100%; height: 280px; }

/* Agenda */
.agenda-board { display: grid; }
.agenda-event {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 1.1rem;
  transition: background var(--speed) var(--ease);
}
.agenda-event:last-child { border-bottom: 0; }
.agenda-event:hover { background: var(--surface-2); }
.agenda-event time {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 600;
}
.agenda-event time::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}
.agenda-event h3 { color: var(--ink); font-size: .94rem; font-weight: 700; }
.agenda-event p { margin-top: .25rem; color: var(--muted); font-size: .8rem; }
.agenda-event > span {
  border-radius: 999px;
  background: rgba(6, 102, 179, .08);
  padding: .35rem .7rem;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
}

/* =========================================================================
   Login / Install
   ========================================================================= */

/* Fixed, non-scrolling login page */
html:has(body.login-page), body.login-page { height: 100%; }
body.login-page { height: 100dvh; overflow: hidden; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  height: 100dvh;
}
.login-media { position: relative; overflow: hidden; }
.login-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(8, 18, 30, .97), rgba(8, 18, 30, .7) 55%, rgba(6, 102, 179, .35));
}
.login-media__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
}
.login-media__content h1 {
  margin-top: auto;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.025em;
  max-width: 16ch;
}
.login-media__content p { margin-top: 1.1rem; max-width: 46ch; color: #b8c6d4; line-height: 1.7; }
.login-media__points { display: grid; gap: .7rem; margin-top: 1.8rem; }
.login-media__points li { display: flex; align-items: center; gap: .65rem; color: #d3deea; font-size: .92rem; font-weight: 500; }
.login-media__points svg { color: #5fe39a; flex: 0 0 auto; }

.login-panel {
  display: grid;
  place-items: center;
  height: 100%;
  overflow: hidden;
  padding: clamp(1rem, 3.5vh, 2rem);
  background: var(--graphite);
  position: relative;
}
.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 1.6px);
  background-size: 14px 14px;
  pointer-events: none;
}
.login-card {
  position: relative;
  width: min(100%, 452px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: clamp(1.25rem, 3vh, 1.9rem) clamp(1.4rem, 4vw, 2rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.login-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--speed) var(--ease), gap var(--speed) var(--ease);
}
.login-back:hover { color: var(--blue); gap: .6rem; }

/* Brand lockup (logo ratio fixed via width:auto) */
.login-brand { display: flex; align-items: center; gap: .85rem; margin-top: clamp(1rem, 2.6vh, 1.6rem); }
.login-brand__logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #fff;
}
.login-brand__logo img { height: 38px; width: auto; object-fit: contain; }
.login-brand__text strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.login-brand__text small { display: block; margin-top: .2rem; color: var(--muted); font-size: .74rem; font-weight: 500; }

.login-head { margin-top: clamp(1rem, 2.6vh, 1.6rem); }
.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .55rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: rgba(6, 102, 179, .08);
  color: var(--blue);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.login-head h2 { color: var(--ink); font-size: 1.7rem; font-weight: 700; letter-spacing: -.025em; }
.login-head p { margin-top: .4rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }

.login-alert {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid;
  padding: .7rem .85rem;
  font-size: .85rem;
  font-weight: 600;
}
.login-alert.is-ok { border-color: #a7f3cf; background: #ecfdf5; color: #0f7d39; }
.login-alert.is-warn { border-color: #fde2a7; background: #fffbeb; color: #b45309; }

.login-form { margin-top: clamp(1rem, 2.6vh, 1.5rem); display: grid; gap: clamp(.7rem, 1.7vh, 1rem); }
.login-field > span {
  display: block;
  margin-bottom: .4rem;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 600;
}
.login-input { position: relative; display: flex; align-items: center; }
.login-input > svg,
.login-input > i { position: absolute; left: .9rem; color: var(--faint); pointer-events: none; }
.login-input input {
  width: 100%;
  height: clamp(44px, 6vh, 50px);
  border: 1px solid #cdd9e6;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: 0 2.8rem;
  color: var(--ink);
  font-family: inherit;
  font-size: .94rem;
  outline: 0;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
.login-input input:focus { border-color: var(--blue); background: #fff; box-shadow: var(--ring); }
.login-input input::placeholder { color: #9fb0c0; }
.login-toggle {
  position: absolute;
  right: .55rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.login-toggle:hover { color: var(--blue); background: rgba(6, 102, 179, .08); }

.login-submit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  height: clamp(46px, 6.4vh, 52px);
  margin-top: .35rem;
  border: 0;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #fff;
  font-family: inherit;
  font-size: .96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-blue);
  transition: transform .26s var(--ease-spring), box-shadow var(--speed) var(--ease);
}
.login-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 36%, rgba(255, 255, 255, .42) 50%, transparent 64%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease-out);
}
.login-submit svg { transition: transform .26s var(--ease-spring); }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 22px 42px -14px rgba(6, 102, 179, .62); }
.login-submit:hover::before { transform: translateX(130%); }
.login-submit:hover svg { transform: translateX(3px); }
.login-submit:active { transform: translateY(0) scale(.99); }

.login-demo {
  margin-top: clamp(.8rem, 2vh, 1.2rem);
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: .7rem .85rem;
  color: var(--ink-soft);
  font-size: .8rem;
}
.login-demo code { font-family: "JetBrains Mono", monospace; color: var(--blue-strong); font-weight: 700; }
.login-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: clamp(.7rem, 1.6vh, 1.1rem);
  color: var(--faint);
  font-size: .76rem;
  font-weight: 500;
}
.login-secure svg { color: var(--green); width: 14px; height: 14px; }

/* Progressive compaction so the login always fits without scroll */
@media (max-height: 780px) {
  .login-head p { display: none; }
  .login-secure { display: none; }
  .login-media__points { display: none; }
}
@media (max-height: 660px) {
  .login-eyebrow { display: none; }
  .login-demo { display: none; }
  .login-brand__text small { display: none; }
  .login-media__content p { display: none; }
}
@media (max-height: 560px) {
  .login-back { display: none; }
  .login-brand { margin-top: .6rem; }
  .login-brand__logo { width: 46px; height: 46px; }
  .login-brand__logo img { height: 30px; }
  .login-head h2 { font-size: 1.4rem; }
}

/* legacy brand lockup (install page) — keep logo ratio correct */
.login-card__brand { display: flex; align-items: center; gap: .7rem; margin-top: 1.4rem; }
.login-card__brand img { height: 44px; width: auto; }
.login-card__brand strong { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--ink); }

.install-shell {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 2rem;
  background: var(--page);
  background-image: radial-gradient(circle at 1px 1px, rgba(6, 102, 179, .07) 1px, transparent 1.6px);
  background-size: 14px 14px;
}
.install-card {
  width: min(100%, 760px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-lg);
}
.install-card h1 { margin-top: 1.4rem; color: var(--ink); font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; font-weight: 700; letter-spacing: -.025em; }
.install-card > p { margin-top: 1rem; max-width: 640px; color: var(--muted); line-height: 1.7; }

/* =========================================================================
   Status chips (shared)
   ========================================================================= */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .26rem .6rem;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.status-chip::before,
.ops-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}
.table-head {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.required::after { content: " *"; color: var(--red); }

/* 404 */
.error-shell {
  display: grid;
  place-items: center;
  min-height: 70vh;
  text-align: center;
  padding: 4rem 1.5rem;
}
.error-shell__code {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-shell h1 { margin-top: .5rem; color: var(--blue-deep); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
.error-shell p { margin-top: .8rem; max-width: 46ch; margin-inline: auto; color: var(--muted); line-height: 1.65; }
.error-shell__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }

/* =========================================================================
   Audit refinements — focus states, dark-surface focus, mobile backdrop
   ========================================================================= */

/* Prominent, premium focus rings on action buttons (beyond generic 2px) */
.sch-btn-primary:focus-visible,
.sch-btn-outline-green:focus-visible,
.sch-btn-ghost:focus-visible,
.sch-project-showcase__intro a:focus-visible,
.public-nav__crm:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.sch-btn-outline-green:focus-visible { outline-color: var(--green); }
.crm-primary-btn:focus-visible,
.crm-secondary-btn:focus-visible,
.crm-danger-btn:focus-visible,
.ops-action-blue:focus-visible,
.ops-action-green:focus-visible,
.ops-action-light:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* Focus on dark CRM / topbar surfaces uses brighter cyan for contrast */
.crm-icon-btn:focus-visible,
.crm-top-btn:focus-visible,
.crm-logout:focus-visible,
.crm-nav__links a:focus-visible,
.crm-search input:focus-visible,
.public-topbar__cta:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Secondary / danger button hover depth */
.crm-secondary-btn:hover { box-shadow: var(--shadow-xs); }
.crm-danger-btn:hover { box-shadow: 0 4px 12px -4px rgba(220, 38, 38, .16); }

/* Mobile sidebar backdrop (shown with the off-canvas CRM nav) */
.crm-nav-backdrop { display: none; }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 860px) {
  .ops-row--split { grid-template-columns: 1fr; }
}

@media (max-width: 1099px) {
  .sch-home-hero__grid,
  .sch-page-hero__inner,
  .sch-contact-layout,
  .sch-solutions,
  .sch-project-showcase,
  .sch-about-band {
    grid-template-columns: 1fr;
  }
  .sch-solutions__intro { position: static; top: auto; }
  .sch-proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sch-proof-strip article:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .sch-proof-strip article { border-bottom: 1px solid var(--line-soft); }
  .sch-proof-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sch-proof-band article:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .sch-brand-strip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ops-two { grid-template-columns: 1fr; }
  .crm-module-grid--with-panel,
  .crm-ticket-layout { grid-template-columns: 1fr; }
  .crm-detail-panel { position: static; }
  .crm-topbar { grid-template-columns: 220px minmax(180px, 1fr) auto; }
  .crm-user-chip__meta { display: none; }
  .crm-user-chip { max-width: none; padding-right: .35rem; }
}

@media (max-width: 1023px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-media { display: none; }
  .crm-topbar { grid-template-columns: 1fr auto; height: 64px; padding-inline: .7rem; gap: .5rem; }
  .crm-search { display: none; }
  .crm-topbar__actions .crm-top-btn { display: none; }
  .crm-body { grid-template-columns: 1fr; }
  .crm-nav {
    position: fixed;
    inset: 64px auto 0 0;
    z-index: 60;
    width: min(84vw, 290px);
    transform: translateX(-105%);
    transition: transform .25s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .crm-nav.is-open { transform: translateX(0); }
  .crm-nav-backdrop { display: block; position: fixed; inset: 64px 0 0 0; z-index: 58; background: rgba(8, 18, 30, .5); backdrop-filter: blur(1px); }
  .crm-page-title { display: block; padding: 1rem 1.1rem 0; }
  .crm-page-title p { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .crm-page-title h1 { margin-top: .2rem; color: var(--ink); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
}

@media (max-width: 768px) {
  .container-sch { width: min(100% - 2rem, 1280px); }
  .sch-home-hero__copy h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); }
  .sch-page-hero__inner { min-height: auto; }
  .sch-page-hero__media img { aspect-ratio: 1.4 / 1; }
  .sch-section-head { display: grid; gap: .8rem; }
  .sch-proof-strip { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .sch-proof-strip article { border-right: 0 !important; }
  .sch-proof-band { grid-template-columns: 1fr; }
  .sch-proof-band article { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .sch-solutions__grid { grid-template-columns: 1fr; }
  .sch-project-showcase__grid { grid-template-columns: 1fr; }
  .sch-about-gallery { grid-template-columns: 1fr 1fr; }
  .sch-about-gallery img:first-child { grid-row: auto; aspect-ratio: 1; }
  .sch-service-block { grid-template-columns: 1fr; }
  .sch-service-block.is-reversed .sch-service-block__media { order: 0; }
  .sch-check-grid,
  .sch-form-grid,
  .crm-form-grid,
  .crm-mini-grid { grid-template-columns: 1fr; }
  .sch-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sch-gallery-grid img,
  .sch-gallery-grid img:nth-child(4n+1),
  .sch-gallery-grid img:nth-child(4n+2),
  .sch-gallery-grid img:nth-child(4n+3),
  .sch-gallery-grid img:nth-child(4n+4) { grid-column: auto; min-height: 160px; }
  .sch-cta-band { grid-template-columns: 1fr; text-align: left; }
  .sch-home-actions { flex-direction: column; align-items: stretch; }
  .sch-home-actions .sch-btn-primary,
  .sch-home-actions .sch-btn-outline-green { width: 100%; }
  .sch-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .sch-footer__brand { grid-column: 1 / -1; }
  .sch-brand-strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ops-toolbar { flex-direction: column; align-items: stretch; }
  .ops-filters { margin-left: 0; }
  .ops-control { flex: 1; justify-content: center; }
  .ops-activity-row { grid-template-columns: 52px 28px 1fr; }
  .ops-activity-row > span:last-child { display: none; }
  .ops-detail__actions-row { grid-template-columns: 1fr; }
  .quote-doc__head,
  .quote-doc__meta { grid-template-columns: 1fr; }
  .quote-doc__head > div:last-child { text-align: left; }
  .quote-doc__head { flex-direction: column; }
  .agenda-event { grid-template-columns: 1fr; gap: .4rem; }
  .agenda-event > span { width: max-content; }
  .public-topbar { display: none; }
}

@media (max-width: 480px) {
  .sch-brand__since { display: none; }
  .sch-brand__text small { display: none; }
  .sch-footer__grid { grid-template-columns: 1fr; }
  .sch-brand-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-wordmark b { display: none; }
  .crm-table { min-width: 560px; }
  .quote-builder-table input { min-width: 72px; }
  .quote-builder-table td:first-child input { min-width: 150px; }
}

/* =========================================================================
   Print (quote document)
   ========================================================================= */

@media print {
  .public-nav, .sch-footer, .crm-topbar, .crm-nav, .crm-page-title,
  .print\:hidden, .ops-toolbar { display: none !important; }
  body, .crm-shell, .crm-main { background: #fff !important; }
  .quote-doc { border: 0; box-shadow: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   CRM — Analytics dashboard (v2)
   Premium operations panel. Logo-derived green + brass/gold on a cool base.
   ========================================================================= */

.dash { display: grid; gap: clamp(.85rem, 1.4vw, 1.1rem); }
.dash-card,
.dash-hero,
.dash-kpi { --r-card: 16px; }

/* Harmonize the existing operational cards with the new radius/shadow */
.dash .ops-card { border-radius: 16px; box-shadow: var(--shadow-card); }

/* ----- Avatars ------------------------------------------------------------- */
.av {
  --av-size: 32px;
  display: inline-grid;
  place-items: center;
  width: var(--av-size);
  height: var(--av-size);
  border-radius: 999px;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 700;
  font-size: calc(var(--av-size) * .38);
  letter-spacing: .01em;
  line-height: 1;
  user-select: none;
  background: var(--brand);
}
.av--green    { background: linear-gradient(150deg, #14a64c, #066128); }
.av--gold     { background: linear-gradient(150deg, #c2a04e, #7c6228); }
.av--graphite { background: linear-gradient(150deg, #25384c, #0b1521); }
.av--blue     { background: linear-gradient(150deg, #2a93e0, #04508f); }
.av--slate    { background: linear-gradient(150deg, #7e93a8, #46586c); }
.av--teal     { background: linear-gradient(150deg, #1bb6c2, #0d7682); }

/* ----- Toolbar ------------------------------------------------------------- */
.dash-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.dash-bar__title { display: grid; gap: .15rem; min-width: 0; }
.dash-bar__title h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.1;
}
.dash-bar__title h2 .dash-live {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: Inter, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.dash-bar__title p { color: var(--muted); font-size: .85rem; }
.dash-bar__tools {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.dash-avatars { display: flex; align-items: center; padding-right: .3rem; }
.dash-avatars .av {
  --av-size: 34px;
  box-shadow: 0 0 0 2.5px var(--page);
  transition: transform var(--speed) var(--ease);
}
.dash-avatars .av + .av { margin-left: -10px; }
.dash-avatars:hover .av { transform: none; }
.dash-avatars .av:hover { transform: translateY(-3px); z-index: 2; }
.dash-avatars__add {
  --av-size: 34px;
  display: inline-grid;
  place-items: center;
  width: var(--av-size);
  height: var(--av-size);
  margin-left: -10px;
  border-radius: 999px;
  border: 1.5px dashed #b6c4d3;
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 0 0 2.5px var(--page);
  transition: all var(--speed) var(--ease);
}
.dash-avatars__add:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-3px); }

.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 40px;
  padding: 0 .85rem;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), color var(--speed) var(--ease);
}
.dash-chip svg { color: var(--muted); width: 16px; height: 16px; }
.dash-chip:hover { border-color: #b9c7d6; box-shadow: var(--shadow-xs); }
.dash-chip--accent { border-color: transparent; background: var(--brand-soft); color: var(--brand-strong); }
.dash-chip--accent svg { color: var(--brand); }
.dash-chip--accent:hover { box-shadow: var(--brand-ring); }
.dash-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.dash-iconbtn svg { width: 17px; height: 17px; }
.dash-iconbtn:hover { border-color: #b9c7d6; color: var(--brand); box-shadow: var(--shadow-xs); }
.dash-iconbtn--solid { background: var(--brand-strong); border-color: transparent; color: #fff; box-shadow: var(--shadow-green); }
.dash-iconbtn--solid:hover { color: #fff; transform: translateY(-1px); }

/* ----- Card primitive ------------------------------------------------------ */
.dash-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.dash-card__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.15rem .65rem;
}
.dash-card__head h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.dash-card__head h3 svg { width: 17px; height: 17px; color: var(--brand); }
.dash-card__head .dash-card__meta { margin-left: auto; color: var(--muted); font-size: .78rem; font-weight: 600; }
.dash-card__head a.dash-card__meta { color: var(--brand-strong); display: inline-flex; align-items: center; gap: .25rem; text-decoration: none; }
.dash-card__head a.dash-card__meta:hover { text-decoration: underline; }
.dash-card__body { padding: .35rem 1.15rem 1.15rem; }

/* ----- Summary band (hero + KPI cluster) ----------------------------------- */
.dash-summary {
  display: grid;
  grid-template-columns: minmax(290px, 1.05fr) minmax(0, 1.95fr);
  gap: clamp(.85rem, 1.4vw, 1.1rem);
  align-items: stretch;
}

.dash-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.2rem 1.3rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(10, 125, 54, .06), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-card);
}
.dash-hero__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}
.dash-hero__label .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--brand);
  box-shadow: 0 0 0 4px rgba(10, 125, 54, .14);
  animation: dash-pulse 2.4s var(--ease) infinite;
}
@keyframes dash-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(10,125,54,.16);} 50% { box-shadow: 0 0 0 6px rgba(10,125,54,0);} }
.dash-hero__value {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3.3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dash-hero__value .cur { color: var(--muted); font-size: .55em; font-weight: 600; margin-right: .2rem; vertical-align: .12em; }
.dash-hero__value .dec { color: var(--faint); font-weight: 600; }
.dash-hero__meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.dash-hero__sub { color: var(--muted); font-size: .8rem; }
.dash-hero__sub b { color: var(--ink-soft); font-weight: 700; }
.dash-hero__spark { margin-top: auto; padding-top: .6rem; }
.dash-hero__spark svg { width: 100%; height: 46px; display: block; overflow: visible; }

.dash-delta {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .22rem .5rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dash-delta svg { width: 13px; height: 13px; }
.dash-delta--up { background: var(--brand-soft); color: var(--brand-strong); }
.dash-delta--down { background: rgba(220, 38, 38, .1); color: var(--red); }
.dash-delta--flat { background: var(--line-soft); color: var(--muted); }
.dash-delta--solid { background: var(--brand); color: #fff; }

/* KPI cluster — deliberate 2 (feature) + 3 (stats) rhythm on a 6-col track */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.7rem, 1.1vw, .9rem);
}
.dash-kpis > .dash-kpi { grid-column: span 2; }                 /* stat trio */
.dash-kpis > .dash-kpi--feature,
.dash-kpis > .dash-kpi--dark { grid-column: span 3; }           /* feature pair */
.dash-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .95rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.dash-kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: #cfdbe8; }
.dash-kpi__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dash-kpi__label { color: var(--muted); font-size: .76rem; font-weight: 600; line-height: 1.25; }
.dash-kpi__icon {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-strong); flex: 0 0 auto;
}
.dash-kpi__icon svg { width: 16px; height: 16px; }
.dash-kpi__icon--gold { background: var(--gold-soft); color: var(--gold-strong); }
.dash-kpi__icon--amber { background: rgba(217,119,6,.12); color: var(--amber); }
.dash-kpi__icon--red { background: rgba(220,38,38,.1); color: var(--red); }
.dash-kpi__value {
  display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.dash-kpi__value small { font-family: Inter, sans-serif; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.dash-kpi__foot { display: flex; align-items: center; gap: .45rem; margin-top: auto; }
.dash-kpi__foot .av { --av-size: 22px; }
.dash-kpi__foot span { color: var(--ink-soft); font-size: .8rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Feature KPI: top performer */
.dash-kpi--feature .dash-kpi__value { font-size: 1.35rem; }

/* Dark "best deal / mejor cotización" card */
.dash-kpi--dark {
  border-color: transparent;
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(194,160,78,.18), transparent 55%),
    linear-gradient(160deg, #16273a, var(--graphite));
  color: #fff;
}
.dash-kpi--dark .dash-kpi__label { color: #9fb2c4; }
.dash-kpi--dark .dash-kpi__value { color: #fff; }
.dash-kpi--dark .dash-kpi__value .amt { color: var(--gold-bright); }
.dash-kpi--dark .dash-kpi__foot span { color: #c4d2df; }
.dash-kpi--dark .dash-kpi__star {
  position: absolute; top: .8rem; right: .85rem;
  color: var(--gold-bright);
}
.dash-kpi--dark .dash-kpi__star svg { width: 17px; height: 17px; fill: rgba(194,160,78,.25); }
.dash-kpi--dark:hover { box-shadow: 0 22px 46px -20px rgba(8, 22, 38, .7); }

/* ----- Stage pills --------------------------------------------------------- */
.dash-pills { display: flex; gap: .55rem; flex-wrap: wrap; align-items: stretch; }
.dash-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.dash-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: #cfdbe8; }
.dash-pill__dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.dash-pill__txt { display: grid; line-height: 1.15; }
.dash-pill__txt b { color: var(--ink); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-pill__txt span { color: var(--muted); font-size: .72rem; font-weight: 600; }
.dash-pill--cta {
  margin-left: auto;
  border-color: transparent;
  background: var(--graphite);
  color: #fff;
}
.dash-pill--cta span { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; }
.dash-pill--cta svg { width: 15px; height: 15px; }
.dash-pill--cta:hover { background: #16273a; color: #fff; }

/* ----- Business lines list ------------------------------------------------- */
.dash-lines { display: grid; gap: .15rem; }
.dash-line {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .6rem .35rem;
  border-radius: 10px;
  transition: background var(--speed) var(--ease);
}
.dash-line:hover { background: var(--surface-2); }
.dash-line__icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-strong);
}
.dash-line__icon svg { width: 16px; height: 16px; }
.dash-line__main { min-width: 0; display: grid; gap: .35rem; }
.dash-line__main b { color: var(--ink); font-size: .85rem; font-weight: 600; }
.dash-line__track { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.dash-line__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-bright), var(--brand)); }
.dash-line__val { text-align: right; line-height: 1.2; }
.dash-line__val b { display: block; color: var(--ink); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-line__val span { color: var(--muted); font-size: .72rem; font-weight: 600; }

/* ----- Accent chart card (drenched green, monthly) ------------------------- */
.dash-accent {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(158deg, #0e8e3f 0%, var(--brand-strong) 60%, var(--brand-deep) 130%);
  box-shadow: var(--shadow-green);
}
.dash-accent::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.10) 1px, transparent 1.6px);
  background-size: 15px 15px;
  -webkit-mask-image: linear-gradient(150deg, #000, transparent 70%);
  mask-image: linear-gradient(150deg, #000, transparent 70%);
  pointer-events: none;
}
.dash-accent > * { position: relative; z-index: 1; }
.dash-accent__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.dash-accent__head h3 { color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.dash-accent__head p { color: rgba(255,255,255,.7); font-size: .76rem; margin-top: .1rem; }
.dash-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
}
.dash-seg button {
  appearance: none; border: 0; cursor: pointer;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.82);
  font: 600 .76rem Inter, sans-serif;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.dash-seg button:hover { color: #fff; }
.dash-seg button.is-active { background: #fff; color: var(--brand-strong); box-shadow: var(--shadow-xs); }
.dash-accent__value {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -.02em;
  font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.dash-accent__value .dash-delta--solid { background: rgba(255,255,255,.18); color: #fff; }
.dash-accent__chart { position: relative; height: 132px; }
.dash-accent__foot { display: flex; justify-content: space-between; color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 600; }

/* ----- Team performance table --------------------------------------------- */
.dash-team-wrap { overflow-x: auto; }
.dash-team-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.dash-team-table th {
  text-align: right;
  padding: .5rem .7rem;
  color: var(--muted);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.dash-team-table th:first-child { text-align: left; }
.dash-team-table td {
  padding: .7rem .7rem;
  text-align: right;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.dash-team-table td:first-child { text-align: left; }
.dash-team-table tbody tr { transition: background var(--speed) var(--ease); }
.dash-team-table tbody tr:hover { background: var(--surface-2); }
.dash-team-table tbody tr:last-child td { border-bottom: 0; }
.dash-person { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.dash-person .av { --av-size: 34px; }
.dash-person__id { display: grid; line-height: 1.2; min-width: 0; }
.dash-person__id b { color: var(--ink); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.dash-person__id span { color: var(--muted); font-size: .73rem; font-weight: 500; white-space: nowrap; }
.dash-money { color: var(--ink); font-weight: 700; font-size: .88rem; }
.dash-sub { color: var(--muted); font-size: .76rem; font-weight: 600; }
.dash-badge {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 24px; padding: 0 .45rem;
  border-radius: 8px;
  background: var(--graphite); color: #fff;
  font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.dash-badge--green { background: var(--brand-strong); }
.dash-badge--gold  { background: var(--gold-strong); }
.dash-badge--soft  { background: var(--line-soft); color: var(--ink-soft); }
.dash-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.dash-tag--green { background: var(--brand-soft); color: var(--brand-strong); }
.dash-tag--gold  { background: var(--gold-soft); color: var(--gold-strong); }
.dash-tag--blue  { background: rgba(6,102,179,.1); color: var(--blue-strong); }
.dash-tag--slate { background: var(--line-soft); color: var(--muted); }
.dash-team-table tr.is-top td { background: linear-gradient(90deg, var(--brand-tint), transparent 70%); }
.dash-team-table tr.is-top:hover td { background: var(--brand-soft); }

/* ----- Brand share --------------------------------------------------------- */
.dash-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; }
.dash-brand {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem .9rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.dash-brand:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: #cfdbe8; }
.dash-brand__mono {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 10px;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: .9rem;
  background: var(--brand-soft); color: var(--brand-strong);
}
.dash-brand__main { min-width: 0; flex: 1; display: grid; gap: .3rem; }
.dash-brand__row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.dash-brand__row b { color: var(--ink); font-size: .85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-brand__row span { color: var(--brand-strong); font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-brand__track { height: 5px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.dash-brand__fill { height: 100%; border-radius: 999px; }
.dash-brand__amt { color: var(--muted); font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ----- Service dynamic line chart ----------------------------------------- */
.dash-legend { display: flex; gap: .9rem; flex-wrap: wrap; margin-left: auto; }
.dash-legend span { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .76rem; font-weight: 600; }
.dash-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--brand)); }
.dash-dynamic__chart { position: relative; height: clamp(220px, 28vw, 300px); padding: .2rem .25rem .25rem; }

/* ----- Layout rows --------------------------------------------------------- */
.dash-mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(.85rem, 1.4vw, 1.1rem);
  align-items: start;
}
.dash-section-label {
  display: flex; align-items: center; gap: .6rem;
  margin: .4rem .2rem -.1rem;
  color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.dash-section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ----- Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .dash-summary { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .dash-mid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .dash-bar__tools { width: 100%; }
  .dash-chip span.dash-chip__hide { display: none; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-kpis > .dash-kpi,
  .dash-kpis > .dash-kpi--dark { grid-column: span 1; }
  .dash-kpis > .dash-kpi--feature { grid-column: span 2; }
  .dash-hero__value { font-size: 2rem; }
}

/* =========================================================================
   CRM — Brand unification (logo green + brass/gold across the whole panel)
   The CRM renders inside .crm-shell and its components reference var(--blue)
   / var(--shadow-blue) / var(--ring); remapping those here turns the entire
   CRM green without touching the blue-branded public site.
   ========================================================================= */
.crm-shell {
  --blue: var(--brand);
  --blue-bright: var(--brand-bright);
  --blue-strong: var(--brand-strong);
  --blue-deep: var(--brand-deep);
  --cyan: #1fab8e;                 /* green-teal for any blue→cyan gradient */
  --shadow-blue: var(--shadow-green);
  --ring: var(--brand-ring);
}

/* Hardcoded-blue fixes inside the shell */
.crm-shell .crm-wordmark b span { color: #6fe0a6; }
.crm-shell .crm-search input:focus { border-color: rgba(18, 160, 74, .55); }
.crm-shell .crm-local-card p { color: #7fe3ad; }
.crm-shell .crm-record-row.is-selected { background: var(--brand-tint); }
.crm-shell .agenda-event > span { background: var(--brand-soft); color: var(--brand-strong); }

/* Premium polish so module pages match the dashboard cards */
.crm-shell .crm-card,
.crm-shell .crm-detail-panel { border-radius: 16px; box-shadow: var(--shadow-card); }
.crm-shell .crm-card__head h2 { font-size: 1.02rem; letter-spacing: -.01em; }
.crm-shell .crm-mini-stat,
.crm-shell .quote-summary { border-radius: 14px; }
.crm-shell .crm-primary-btn,
.crm-shell .crm-secondary-btn,
.crm-shell .crm-danger-btn,
.crm-shell .crm-filter,
.crm-shell .crm-input,
.crm-shell .crm-select,
.crm-shell .crm-textarea { border-radius: 11px; }
.crm-shell .crm-mini-stat strong.text-emerald-700 { color: var(--brand-strong) !important; }

/* ----- Dropdown popover (toolbar menus, bell, user) ------------------------ */
.dash-dd { position: relative; display: inline-flex; }
.dash-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 220px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-pop);
}
.dash-pop--left { right: auto; left: 0; }
.dash-pop--wide { min-width: 300px; }
.dash-pop__label {
  padding: .45rem .6rem .25rem;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.dash-pop hr { border: 0; border-top: 1px solid var(--line-soft); margin: .35rem 0; }
.dash-pop__item {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .55rem .6rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font: 600 .84rem Inter, system-ui, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.dash-pop__item svg { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }
.dash-pop__item:hover { background: var(--surface-2); color: var(--brand-strong); }
.dash-pop__item:hover svg { color: var(--brand); }
.dash-pop__item.is-active { background: var(--brand-soft); color: var(--brand-strong); }
.dash-pop__item.is-active svg { color: var(--brand); }
.dash-pop__item--danger:hover { background: rgba(220, 38, 38, .08); color: var(--red); }
.dash-pop__item--danger:hover svg { color: var(--red); }

/* Notification rows */
.dash-noti {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: .6rem;
  padding: .55rem .6rem;
  border-radius: 9px;
  text-decoration: none;
  transition: background var(--speed) var(--ease);
}
.dash-noti:hover { background: var(--surface-2); }
.dash-noti__dot { width: 8px; height: 8px; border-radius: 999px; margin: 0 auto; }
.dash-noti__body { min-width: 0; }
.dash-noti__body b { display: block; color: var(--ink); font-size: .82rem; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-noti__body span { color: var(--muted); font-size: .72rem; }
.dash-noti time { color: var(--faint); font-size: .68rem; font-weight: 600; white-space: nowrap; }
.dash-pop__head { display: flex; align-items: center; justify-content: space-between; padding: .5rem .6rem; }
.dash-pop__head b { font-size: .9rem; color: var(--ink); font-weight: 700; }
.dash-pop__head span { font-size: .72rem; color: var(--brand-strong); font-weight: 700; }
.crm-shell button.crm-bell { border: 0; background: transparent; font: inherit; }
.crm-bell[aria-expanded="true"], .crm-user-chip[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }

/* ----- Toasts -------------------------------------------------------------- */
.crm-toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: grid;
  gap: .5rem;
  pointer-events: none;
}
.crm-toast {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .95rem;
  border-radius: 12px;
  background: var(--graphite);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: var(--shadow-pop);
  pointer-events: auto;
  animation: crm-toast-in .25s var(--ease-out);
}
.crm-toast svg { width: 17px; height: 17px; color: var(--brand-bright); }
.crm-toast.is-out { animation: crm-toast-out .25s var(--ease) forwards; }
@keyframes crm-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes crm-toast-out { to { opacity: 0; transform: translateY(10px); } }

/* =========================================================================
   CRM — Topbar + sidebar redesign (green accents, grouped nav, counts)
   ========================================================================= */
.crm-topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-bright) 38%, rgba(18, 160, 74, 0) 82%);
  opacity: .75;
}
.crm-shell .crm-wordmark__plaque {
  box-shadow: 0 0 0 1px rgba(10, 125, 54, .22), inset 0 0 0 1px #fff, var(--shadow-xs);
}
/* Pill search with a soft green focus */
.crm-shell .crm-search input { border-radius: 999px; padding-left: 2.6rem; }
.crm-shell .crm-search svg { left: 1rem; }
.crm-shell .crm-search input:focus { box-shadow: 0 0 0 3px rgba(18, 160, 74, .22); }

/* Grouped nav labels living inside the link list */
.crm-nav__links .crm-nav__label { padding: .85rem .9rem .3rem; margin: 0; }
.crm-nav__links .crm-nav__label:first-child { padding-top: .25rem; }
.crm-nav__links a > span:not(.crm-nav__count) { flex: 1; min-width: 0; }
.crm-nav__count--alert { background: rgba(217, 119, 6, .95); color: #fff; }
.crm-nav__links a.is-active .crm-nav__count--alert { background: rgba(255, 255, 255, .28); color: #fff; }
/* Active item: crisp green pill with a soft glow */
.crm-nav__links a.is-active,
.crm-nav__links a[aria-current="page"] {
  background: linear-gradient(180deg, var(--brand-bright), var(--brand-strong));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 22px -12px rgba(10, 125, 54, .8);
}
.crm-nav__links a.is-active::after,
.crm-nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: -.65rem; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--brand-bright);
}
/* Footer card: greener identity */
.crm-shell .crm-local-card { border-color: rgba(18, 160, 74, .14); background: linear-gradient(180deg, rgba(18, 160, 74, .08), rgba(255, 255, 255, .03)); }

/* Global search results page */
.search-results { display: grid; gap: 1rem; }
.search-group__title { display: flex; align-items: center; gap: .5rem; margin-bottom: .2rem; color: var(--ink); font-size: .95rem; font-weight: 700; }
.search-group__title svg { width: 17px; height: 17px; color: var(--brand); }
.search-group__title span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.search-hit {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .7rem .9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.search-hit:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: #cfdbe8; }
.search-hit__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); }
.search-hit__icon svg { width: 18px; height: 18px; }
.search-hit__body { min-width: 0; }
.search-hit__body b { display: block; color: var(--ink); font-size: .9rem; font-weight: 700; }
.search-hit__body span { color: var(--muted); font-size: .8rem; }
.search-hit__meta { text-align: right; white-space: nowrap; }

/* =========================================================================
   CRM — polish pass (sticky-safe scroll, menu refinement, focus actions)
   ========================================================================= */
html { scroll-padding-top: 74px; }

/* Sidebar: hover micro-interaction + softer active glow */
.crm-nav__links a { transition: background var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.crm-nav__links a:not(.is-active):hover { transform: translateX(2px); }
.crm-nav__links a svg { transition: color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.crm-nav__links a:not(.is-active):hover svg { transform: translateX(1px); }
.crm-nav__links a.is-active,
.crm-nav__links a[aria-current="page"] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 18px -10px rgba(10, 125, 54, .7);
}
.crm-nav { padding-bottom: .4rem; }
.crm-shell .crm-local-card { padding: .9rem 1rem; }
.crm-shell .crm-local-card strong { font-size: 1.35rem; }

/* Focus-ticket actions: neutral "take" + green "resolve" for clear hierarchy */
.dash .ops-action-blue { background: var(--graphite); box-shadow: none; }
.dash .ops-action-blue:hover { background: #16273a; transform: translateY(-1px); }

/* Neutral secondary buttons read intentional next to green primaries */
.crm-secondary-btn:hover { border-color: var(--ink-soft); color: var(--ink); }

/* ----- Collapsible sidebar (icon rail) ------------------------------------- */
.crm-topbar, .crm-body { transition: grid-template-columns .22s var(--ease); }
.crm-nav-collapse {
  display: none;
  align-items: center;
  gap: .7rem;
  width: 100%;
  height: 40px;
  padding-inline: .9rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04);
  color: #c0ccd9;
  font: 600 .82rem Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.crm-nav-collapse:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.crm-nav-collapse svg { width: 18px; height: 18px; color: #7d90a3; flex: 0 0 auto; }
.crm-nav-collapse__ic--open { display: none; }

/* Collapse toggle now sits at the TOP of the sidebar */
.crm-nav__top { display: none; padding: .55rem .65rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.crm-nav__top .crm-nav-collapse { margin: 0; }

@media (min-width: 1024px) {
  .crm-nav-collapse { display: flex; }
  .crm-nav__top { display: block; }

  .crm-collapsed .crm-topbar { grid-template-columns: 76px minmax(180px, 1fr) auto; }
  .crm-collapsed .crm-topbar__brand { justify-content: center; }
  .crm-collapsed .crm-wordmark b { display: none; }

  .crm-collapsed .crm-body { grid-template-columns: 76px minmax(0, 1fr); }
  .crm-collapsed .crm-nav__label { display: none; }
  .crm-collapsed .crm-nav__links { padding-inline: .55rem; }
  .crm-collapsed .crm-nav__links a { justify-content: center; gap: 0; padding-inline: 0; }
  .crm-collapsed .crm-nav__links a > span:not(.crm-nav__count) { display: none; }
  .crm-collapsed .crm-nav__links a .crm-nav__count {
    position: absolute; top: 6px; right: 11px;
    min-width: 9px; width: 9px; height: 9px; padding: 0;
    font-size: 0; line-height: 0; border-radius: 999px;
    box-shadow: 0 0 0 2px var(--graphite-2);
  }
  .crm-collapsed .crm-nav__links a.is-active::after,
  .crm-collapsed .crm-nav__links a[aria-current="page"]::after { display: none; }

  .crm-collapsed .crm-local-card { display: none; }
  .crm-collapsed .crm-nav-collapse { justify-content: center; gap: 0; padding-inline: 0; }
  .crm-collapsed .crm-nav-collapse span { display: none; }
  .crm-collapsed .crm-nav-collapse__ic--close { display: none; }
  .crm-collapsed .crm-nav-collapse__ic--open { display: block; }
  .crm-collapsed .crm-logout { justify-content: center; gap: 0; }
  .crm-collapsed .crm-logout span { display: none; }
}

/* =========================================================================
   CRM — Modal dialog (Add / Edit forms)
   ========================================================================= */
.crm-modal {
  width: min(580px, 94vw);
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: visible;
}
.crm-modal--wide { width: min(900px, 95vw); }
.crm-modal--pdf { width: min(1180px, 96vw); height: 92vh; max-height: 92vh; }
.crm-modal--pdf[open] { display: flex; flex-direction: column; }
.crm-pdf-frame-wrap { flex: 1 1 auto; min-height: 0; background: #51565a; }
.crm-pdf-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.crm-modal::backdrop { background: rgba(8, 18, 30, .55); backdrop-filter: blur(3px); }
.crm-modal[open] { animation: crm-modal-in .2s var(--ease-out); }
.crm-modal[open]::backdrop { animation: crm-modal-bd .2s var(--ease-out); }
@keyframes crm-modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes crm-modal-bd { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .crm-modal[open] { animation: none; } }

.crm-modal__form { display: flex; flex-direction: column; max-height: 90vh; }
.crm-modal__head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.05rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.crm-modal__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 11px;
  background: var(--brand-soft); color: var(--brand-strong);
}
.crm-modal__icon svg { width: 19px; height: 19px; }
.crm-modal__titles { min-width: 0; }
.crm-modal__titles h2 { font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
.crm-modal__titles p { margin-top: .12rem; color: var(--muted); font-size: .8rem; }
.crm-modal__close {
  margin-left: auto; flex: 0 0 auto;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--muted);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.crm-modal__close svg { width: 17px; height: 17px; }
.crm-modal__close:hover { border-color: #b9c7d6; color: var(--ink); background: var(--surface-2); }
.crm-modal__body { padding: 1.2rem; overflow-y: auto; display: grid; gap: .85rem; }
.crm-modal__foot {
  display: flex; align-items: center; justify-content: flex-end; gap: .6rem;
  padding: .95rem 1.2rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.crm-modal__foot .crm-primary-btn,
.crm-modal__foot .crm-secondary-btn { min-height: 44px; }
@media (max-width: 560px) {
  .crm-modal { width: 100vw; max-height: 92vh; border-radius: 18px 18px 0 0; margin: auto auto 0; }
  .crm-modal__foot { position: sticky; bottom: 0; }
  .crm-modal__foot .crm-primary-btn, .crm-modal__foot .crm-secondary-btn { flex: 1; }
}

/* ----- Quote builder line items (grid that fits the modal) ----------------- */
.qb { display: grid; gap: .4rem; }
.qb__head, .qb__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 118px 118px 36px;
  gap: .5rem;
  align-items: center;
}
.qb__head { padding: 0 .15rem .15rem; }
.qb__head span { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.qb__head span:nth-child(2), .qb__head span:nth-child(3), .qb__head span:nth-child(4) { text-align: right; }
.qb__row .crm-input { height: 40px; padding: .5rem .65rem; }
.qb__total { text-align: right; font-weight: 700; color: var(--ink); font-size: .86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 620px) {
  .qb__head { display: none; }
  .qb__row { grid-template-columns: 1fr 1fr auto 36px; gap: .45rem; padding: .5rem; border: 1px solid var(--line-soft); border-radius: 10px; }
  .qb__row .qb__desc { grid-column: 1 / -1; }
}

/* Quote summary equivalent + document currency/terms */
.quote-summary__equiv { display: flex; justify-content: space-between; gap: 1rem; padding-top: .6rem; margin-top: .1rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: .82rem; }
.quote-summary__equiv strong { color: var(--ink-soft); font-weight: 700; }
.quote-doc__currency { margin-top: .55rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.quote-doc__currency strong { color: var(--ink); }
.quote-doc__totals .quote-doc__equiv { color: var(--muted); font-size: .85rem; font-weight: 600; }
.quote-doc__totals .quote-doc__equiv strong { color: var(--ink-soft); font-weight: 700; }
.quote-doc__terms { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.quote-doc__terms h3 { color: var(--ink); font-size: .92rem; font-weight: 700; margin-bottom: .45rem; }
.quote-doc__terms p { color: var(--muted); font-size: .82rem; line-height: 1.6; }

/* =========================================================================
   Helpdesk center and client portal
   ========================================================================= */

.helpdesk-admin {
  display: grid;
  gap: 1rem;
}

.helpdesk-admin__hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(10, 125, 54, .16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(18, 160, 74, .18), transparent 34%),
    linear-gradient(135deg, #0b1521, #10243a 58%, #08351d);
  color: #fff;
  padding: clamp(1rem, 2vw, 1.45rem);
  box-shadow: 0 18px 44px -26px rgba(8, 18, 30, .65);
}
.helpdesk-admin__hero span {
  display: inline-flex;
  margin-bottom: .35rem;
  color: #96e7b8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.helpdesk-admin__hero h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.02;
}
.helpdesk-admin__hero p {
  max-width: 680px;
  margin-top: .45rem;
  color: #c8d7e8;
  font-size: .92rem;
  line-height: 1.55;
}
.helpdesk-admin__actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.helpdesk-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.helpdesk-kpis article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.helpdesk-kpis span,
.helpdesk-kpis small {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
}
.helpdesk-kpis strong {
  display: block;
  margin-block: .18rem;
  color: var(--ink);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -.03em;
}

.helpdesk-grid {
  display: grid;
  grid-template-columns: minmax(390px, .92fr) minmax(480px, 1.08fr) minmax(280px, .7fr);
  gap: 1rem;
  align-items: start;
}
.helpdesk-inbox,
.helpdesk-detail,
.helpdesk-portals {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.helpdesk-inbox__head,
.helpdesk-portals__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem;
}
.helpdesk-inbox__head h2,
.helpdesk-portals__head h2 {
  color: var(--ink);
  font-size: 1rem;
}
.helpdesk-inbox__head p,
.helpdesk-portals__head p {
  margin-top: .1rem;
  color: var(--muted);
  font-size: .8rem;
}

.helpdesk-filters {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, .65fr) minmax(120px, .65fr) auto;
  gap: .65rem;
  border-bottom: 1px solid var(--line-soft);
  padding: .85rem 1rem;
  background: var(--surface-2);
}
.helpdesk-filters label span {
  display: block;
  margin-bottom: .25rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}
.helpdesk-filters .crm-input,
.helpdesk-filters .crm-select {
  width: 100%;
  min-height: 40px;
  background: #fff;
}
.helpdesk-filters button {
  align-self: end;
  min-height: 40px;
}

.helpdesk-ticket-list {
  display: grid;
  max-height: calc(100dvh - 330px);
  overflow: auto;
}
.helpdesk-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  gap: .85rem;
  min-height: 112px;
  border-bottom: 1px solid var(--line-soft);
  padding: .9rem 1rem .9rem 0;
  color: inherit;
  text-decoration: none;
  transition: background .18s var(--ease-out), transform .18s var(--ease-out);
}
.helpdesk-ticket:hover {
  background: #f8fbfe;
}
.helpdesk-ticket:active {
  transform: scale(.995);
}
.helpdesk-ticket.is-selected {
  background: #eef8f2;
}
.helpdesk-ticket__stripe {
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #9ca3af;
}
.helpdesk-ticket__stripe.critica,
.helpdesk-ticket__stripe.alta {
  background: var(--red);
}
.helpdesk-ticket__stripe.media {
  background: var(--amber);
}
.helpdesk-ticket__main {
  min-width: 0;
  padding-left: .15rem;
}
.helpdesk-ticket__title {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .2rem;
}
.helpdesk-ticket__title strong {
  color: var(--brand-strong);
  font-size: .72rem;
  letter-spacing: .02em;
}
.helpdesk-ticket__title em {
  display: inline-flex;
  border-radius: 999px;
  background: #e8f4ec;
  padding: .1rem .42rem;
  color: var(--brand-strong);
  font-size: .66rem;
  font-style: normal;
  font-weight: 800;
}
.helpdesk-ticket h3 {
  overflow: hidden;
  color: var(--ink);
  font-size: .94rem;
  line-height: 1.28;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.helpdesk-ticket p,
.helpdesk-ticket small {
  display: block;
  overflow: hidden;
  margin-top: .3rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.helpdesk-ticket__badges {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: .45rem;
}

.helpdesk-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-top: 1px solid var(--line-soft);
  padding: .8rem 1rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
.helpdesk-pagination a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.helpdesk-pagination svg {
  width: 16px;
  height: 16px;
}
.helpdesk-pagination .is-disabled {
  color: #a7b4c2;
  pointer-events: none;
}

.helpdesk-detail {
  position: sticky;
  top: 76px;
}
.helpdesk-detail__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem;
}
.helpdesk-detail__head p {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}
.helpdesk-detail__head h2 {
  margin-top: .16rem;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.18;
}
.helpdesk-detail__head span:not(.status-chip) {
  display: block;
  margin-top: .4rem;
  color: var(--muted);
  font-size: .82rem;
}
.helpdesk-detail__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
}
.helpdesk-detail__summary article {
  border-right: 1px solid var(--line-soft);
  padding: .85rem 1rem;
}
.helpdesk-detail__summary article:last-child {
  border-right: 0;
}
.helpdesk-detail__summary span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}
.helpdesk-detail__summary strong {
  display: block;
  overflow: hidden;
  margin-top: .18rem;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.helpdesk-detail__section {
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem;
}
.helpdesk-detail__section:last-child {
  border-bottom: 0;
}
.helpdesk-detail__section h3,
.helpdesk-comments-head h3 {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.helpdesk-detail__section p {
  margin-top: .45rem;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.6;
}
.helpdesk-contact-line {
  color: var(--muted) !important;
  font-size: .8rem !important;
}
.helpdesk-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .75rem;
}
.helpdesk-comments-head span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}
.helpdesk-timeline {
  display: grid;
  gap: .7rem;
}
.helpdesk-timeline article {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: .6rem;
}
.helpdesk-timeline__dot {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: .45rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.helpdesk-timeline article > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: .75rem;
}
.helpdesk-timeline header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}
.helpdesk-timeline strong {
  color: var(--ink);
  font-size: .86rem;
}
.helpdesk-timeline small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}
.helpdesk-timeline p {
  margin-top: .35rem;
  white-space: pre-line;
}
.helpdesk-comment-form {
  display: grid;
  gap: .65rem;
  margin-top: .9rem;
}
.helpdesk-comment-form label {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 700;
}

.helpdesk-portals {
  position: sticky;
  top: 76px;
}
.helpdesk-client-list {
  display: grid;
  max-height: calc(100dvh - 200px);
  overflow: auto;
}
.helpdesk-client-link {
  display: grid;
  gap: .65rem;
  border-bottom: 1px solid var(--line-soft);
  padding: .9rem;
}
.helpdesk-client-link.is-paused {
  background: #f8fafc;
  opacity: .72;
}
.helpdesk-client-link strong {
  display: block;
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.25;
}
.helpdesk-client-link span {
  display: block;
  margin-top: .12rem;
  color: var(--muted);
  font-size: .74rem;
}
.helpdesk-client-link input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  padding: .6rem .7rem;
  color: var(--muted);
  font-size: .74rem;
}
.helpdesk-client-link__actions,
.helpdesk-client-link__forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
}
.helpdesk-client-link .crm-secondary-btn,
.helpdesk-client-link .crm-danger-btn {
  min-height: 36px;
  padding: .45rem .65rem;
  font-size: .76rem;
}

.helpdesk-portal {
  min-height: calc(100dvh - 82px);
  background:
    radial-gradient(circle at 85% 12%, rgba(31, 166, 216, .14), transparent 32%),
    linear-gradient(180deg, #f6f9fc 0%, #eef5f9 100%);
  padding: clamp(1.5rem, 4vw, 3.5rem) 0;
}
.helpdesk-shell {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
  width: min(100% - 2rem, 1160px);
  margin-inline: auto;
  align-items: stretch;
}
.helpdesk-rail,
.helpdesk-wizard,
.helpdesk-invalid {
  border: 1px solid rgba(205, 217, 230, .9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px -34px rgba(14, 26, 40, .34);
}
.helpdesk-rail {
  display: flex;
  flex-direction: column;
  min-height: 650px;
  background:
    linear-gradient(160deg, rgba(11, 21, 33, .96), rgba(8, 50, 29, .94)),
    #0b1521;
  color: #fff;
  padding: clamp(1.1rem, 2vw, 1.4rem);
}
.helpdesk-rail__logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.helpdesk-rail__logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.helpdesk-kicker {
  margin-top: 2rem;
  color: #8ee5b1;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.helpdesk-rail h1 {
  max-width: 12ch;
  margin-top: .45rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: .96;
  letter-spacing: -.035em;
}
.helpdesk-rail > span {
  display: block;
  max-width: 36ch;
  margin-top: 1rem;
  color: #c9d8e7;
  font-size: .95rem;
  line-height: 1.6;
}
.helpdesk-rail__meta {
  display: grid;
  gap: .65rem;
  margin-top: auto;
  padding-top: 2rem;
}
.helpdesk-rail__meta article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: .7rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  padding: .7rem;
}
.helpdesk-rail__meta svg {
  width: 18px;
  height: 18px;
  color: #8ee5b1;
}
.helpdesk-rail__meta b,
.helpdesk-rail__meta small {
  display: block;
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.helpdesk-rail__meta b {
  color: #fff;
  font-size: .86rem;
}
.helpdesk-rail__meta small {
  color: #a9bdd0;
  font-size: .72rem;
}
.helpdesk-rail__contact {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 1rem;
}
.helpdesk-rail__contact strong,
.helpdesk-rail__contact a {
  display: block;
}
.helpdesk-rail__contact strong {
  color: #fff;
  font-size: .8rem;
}
.helpdesk-rail__contact a {
  margin-top: .35rem;
  color: #96e7b8;
  font-weight: 800;
  text-decoration: none;
}

.helpdesk-wizard {
  display: flex;
  flex-direction: column;
  min-height: 650px;
  overflow: hidden;
}
.helpdesk-wizard__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(1rem, 2vw, 1.4rem);
}
.helpdesk-wizard__top p {
  color: var(--brand-strong);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.helpdesk-wizard__top h2 {
  margin-top: .18rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
}
.helpdesk-step-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--brand-soft);
  padding: .45rem .75rem;
  color: var(--brand-strong);
  font-size: .76rem;
  font-weight: 900;
}
.helpdesk-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
  padding: .85rem clamp(1rem, 2vw, 1.4rem) 0;
}
.helpdesk-progress span {
  height: 6px;
  border-radius: 999px;
  background: #e4edf4;
  transition: background .18s var(--ease-out), transform .18s var(--ease-out);
}
.helpdesk-progress span.is-active {
  background: var(--brand);
}
.helpdesk-step {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
}
.helpdesk-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.helpdesk-impact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}
.helpdesk-impact label {
  display: grid;
  gap: .12rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: .8rem;
  cursor: pointer;
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out);
}
.helpdesk-impact label:hover {
  transform: translateY(-1px);
  border-color: #b9c7d6;
}
.helpdesk-impact label.is-selected {
  border-color: rgba(10, 125, 54, .42);
  background: var(--brand-tint);
  box-shadow: inset 0 0 0 1px rgba(10, 125, 54, .12);
}
.helpdesk-impact input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.helpdesk-impact span {
  color: var(--ink);
  font-size: .88rem;
  font-weight: 900;
}
.helpdesk-impact small {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}
.helpdesk-error {
  margin: 0 clamp(1rem, 2vw, 1.4rem);
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  padding: .75rem .9rem;
  color: #b91c1c;
  font-size: .84rem;
  font-weight: 800;
}
.helpdesk-wizard__foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .7rem;
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
  padding: 1rem clamp(1rem, 2vw, 1.4rem);
}
.helpdesk-wizard__foot svg,
.helpdesk-admin svg,
.helpdesk-client-link svg {
  width: 17px;
  height: 17px;
}

.helpdesk-portal--invalid .helpdesk-shell {
  display: block;
}
.helpdesk-invalid {
  max-width: 680px;
  margin: 4rem auto;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  text-align: center;
}
.helpdesk-invalid__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-inline: auto;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.helpdesk-invalid__icon svg {
  width: 24px;
  height: 24px;
}
.helpdesk-invalid p {
  margin-top: 1rem;
  color: var(--brand-strong);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.helpdesk-invalid h1 {
  margin-top: .25rem;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.helpdesk-invalid > span {
  display: block;
  max-width: 48ch;
  margin: .8rem auto 0;
  color: var(--muted);
}
.helpdesk-invalid__actions {
  display: flex;
  justify-content: center;
  gap: .7rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

@media (max-width: 1320px) {
  .helpdesk-grid {
    grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
  }
  .helpdesk-portals {
    position: static;
    grid-column: 1 / -1;
  }
  .helpdesk-client-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
  .helpdesk-client-link {
    border-right: 1px solid var(--line-soft);
  }
}

@media (max-width: 1099px) {
  .helpdesk-grid,
  .helpdesk-shell {
    grid-template-columns: 1fr;
  }
  .helpdesk-detail {
    position: static;
  }
  .helpdesk-ticket-list {
    max-height: none;
  }
  .helpdesk-rail,
  .helpdesk-wizard {
    min-height: auto;
  }
  .helpdesk-rail h1 {
    max-width: 16ch;
  }
  .helpdesk-rail__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .helpdesk-admin__hero {
    align-items: stretch;
    flex-direction: column;
  }
  .helpdesk-admin__actions {
    align-items: stretch;
  }
  .helpdesk-admin__actions .crm-primary-btn,
  .helpdesk-admin__actions .crm-secondary-btn {
    flex: 1;
  }
  .helpdesk-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .helpdesk-filters {
    grid-template-columns: 1fr 1fr;
  }
  .helpdesk-filters label:first-child,
  .helpdesk-filters button {
    grid-column: 1 / -1;
  }
  .helpdesk-ticket {
    grid-template-columns: 4px minmax(0, 1fr);
  }
  .helpdesk-ticket__badges {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }
  .helpdesk-detail__summary,
  .helpdesk-form-grid,
  .helpdesk-impact,
  .helpdesk-client-list {
    grid-template-columns: 1fr;
  }
  .helpdesk-detail__summary article {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .helpdesk-detail__summary article:last-child {
    border-bottom: 0;
  }
  .helpdesk-rail__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .helpdesk-kpis {
    grid-template-columns: 1fr;
  }
  .helpdesk-filters {
    grid-template-columns: 1fr;
  }
  .helpdesk-ticket h3,
  .helpdesk-ticket p,
  .helpdesk-ticket small {
    white-space: normal;
  }
  .helpdesk-detail__head,
  .helpdesk-wizard__top {
    flex-direction: column;
  }
  .helpdesk-client-link__actions,
  .helpdesk-client-link__forms,
  .helpdesk-wizard__foot {
    grid-template-columns: 1fr;
  }
  .helpdesk-wizard__foot span {
    display: none;
  }
  .helpdesk-wizard__foot .crm-primary-btn,
  .helpdesk-wizard__foot .crm-secondary-btn {
    width: 100%;
  }
  .helpdesk-invalid__actions .sch-btn-primary,
  .helpdesk-invalid__actions .sch-btn-outline-green {
    width: 100%;
  }
}

/* Helpdesk v3: compact command board with modal-first workflow */
.crm-content:has(.helpdesk-v2) .crm-page-title {
  display: none;
}

.helpdesk-v2 {
  display: grid;
  gap: .9rem;
}

.helpdesk-v2__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: .9rem;
  align-items: stretch;
}

.helpdesk-v2__hero,
.helpdesk-v2__metrics,
.helpdesk-v2__surface {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.helpdesk-v2__hero {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  background:
    radial-gradient(circle at 96% -10%, rgba(18, 160, 74, .20), transparent 32%),
    linear-gradient(135deg, #0b1521 0%, #112236 60%, #07361f 100%);
  color: #fff;
}
.helpdesk-v2__hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -36% 48%;
  height: 220px;
  border-radius: 50%;
  background: rgba(31, 166, 216, .16);
  filter: blur(22px);
  pointer-events: none;
}
.helpdesk-v2__hero > * {
  position: relative;
  z-index: 1;
}
.helpdesk-v2__hero span {
  display: inline-flex;
  color: #94e7b8;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.helpdesk-v2__hero h2 {
  max-width: 780px;
  margin-top: .35rem;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1;
}
.helpdesk-v2__hero p {
  max-width: 760px;
  margin-top: .45rem;
  color: #c7d7e7;
  font-size: .9rem;
  line-height: 1.5;
}
.helpdesk-v2__actions {
  display: flex;
  gap: .55rem;
  margin-top: .95rem;
  flex-wrap: wrap;
}
.helpdesk-v2__actions .crm-secondary-btn {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.helpdesk-v2__actions .crm-secondary-btn:hover {
  background: rgba(255, 255, 255, .14);
}

.helpdesk-v2__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}
.helpdesk-v2__metrics article {
  min-height: 96px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: .9rem;
}
.helpdesk-v2__metrics article:nth-child(2n) {
  border-right: 0;
}
.helpdesk-v2__metrics article:nth-child(n+3) {
  border-bottom: 0;
}
.helpdesk-v2__metrics span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.helpdesk-v2__metrics strong {
  display: block;
  margin-top: .2rem;
  color: var(--ink);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 2.05rem;
  line-height: 1;
  letter-spacing: -.04em;
}

.helpdesk-v2__surface {
  overflow: hidden;
}

.helpdesk-viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  border-bottom: 1px solid var(--line-soft);
  padding: .8rem .85rem;
  background: #fff;
}
.helpdesk-viewbar h3 {
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.1;
}
.helpdesk-viewbar p {
  margin-top: .16rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}
.helpdesk-viewbar nav {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: .25rem;
}
.helpdesk-viewbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 34px;
  border-radius: 9px;
  padding: .42rem .72rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
  text-decoration: none;
  transition: background .16s var(--ease-out), color .16s var(--ease-out), box-shadow .16s var(--ease-out);
}
.helpdesk-viewbar a.is-active {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 1px 2px rgba(14, 26, 40, .08);
}
.helpdesk-viewbar svg {
  width: 16px;
  height: 16px;
}

.helpdesk-v2__filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(170px, .8fr) minmax(140px, .7fr) minmax(140px, .7fr) auto;
  gap: .65rem;
  align-items: end;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fff, #f8fbfe);
  padding: .85rem;
}
.helpdesk-v2__filters label span {
  display: block;
  margin-bottom: .24rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.helpdesk-v2__filters .crm-input,
.helpdesk-v2__filters .crm-select {
  width: 100%;
  min-height: 40px;
  background: #fff;
}
.helpdesk-v2__filters .crm-secondary-btn {
  min-height: 40px;
}

.helpdesk-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: .55rem;
  padding: .75rem;
  background:
    linear-gradient(90deg, rgba(227, 234, 241, .65) 1px, transparent 1px),
    linear-gradient(180deg, rgba(227, 234, 241, .65) 1px, transparent 1px),
    #f6f9fc;
  background-size: 28px 28px;
}
.helpdesk-lane {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid rgba(214, 225, 235, .92);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  overflow: hidden;
}
.helpdesk-lane header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 45px;
  border-bottom: 1px solid var(--line-soft);
  padding: .65rem .7rem;
}
.helpdesk-lane header > div {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}
.helpdesk-lane h3 {
  overflow: hidden;
  color: var(--ink);
  font-size: .82rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.helpdesk-lane b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .75rem;
}
.helpdesk-lane__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, .16);
}
.helpdesk-lane__dot.is-abierto { background: var(--amber); box-shadow: 0 0 0 3px rgba(217, 119, 6, .14); }
.helpdesk-lane__dot.is-en-proceso { background: var(--blue); box-shadow: 0 0 0 3px rgba(6, 102, 179, .14); }
.helpdesk-lane__dot.is-cotizado { background: #4f7ee8; box-shadow: 0 0 0 3px rgba(79, 126, 232, .14); }
.helpdesk-lane__dot.is-resuelto { background: var(--brand); box-shadow: 0 0 0 3px rgba(10, 125, 54, .14); }
.helpdesk-lane__dot.is-cerrado { background: #64748b; box-shadow: 0 0 0 3px rgba(100, 116, 139, .14); }

.helpdesk-lane__grid {
  display: grid;
  align-content: start;
  gap: .5rem;
  min-height: 255px;
  padding: .55rem;
}
.helpdesk-board-card {
  position: relative;
  display: grid;
  gap: .38rem;
  width: 100%;
  min-height: 132px;
  border: 1px solid #dce6ef;
  border-radius: 13px;
  background: #fff;
  padding: .7rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(14, 26, 40, .04);
  transition: transform .16s var(--ease-out), border-color .16s var(--ease-out), box-shadow .16s var(--ease-out), background .16s var(--ease-out);
}
.helpdesk-board-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 13px 0 0 13px;
  background: #94a3b8;
}
.helpdesk-board-card.is-critica::before,
.helpdesk-board-card.is-alta::before { background: var(--red); }
.helpdesk-board-card.is-media::before { background: var(--amber); }
.helpdesk-board-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 125, 54, .28);
  box-shadow: 0 12px 28px -22px rgba(14, 26, 40, .55);
}
.helpdesk-board-card:active {
  transform: translateY(0) scale(.99);
}
.helpdesk-board-card__meta,
.helpdesk-board-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
}
.helpdesk-board-card__meta strong {
  color: var(--brand-strong);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.helpdesk-board-card__meta em {
  border-radius: 999px;
  background: var(--brand-soft);
  padding: .08rem .36rem;
  color: var(--brand-strong);
  font-size: .62rem;
  font-style: normal;
  font-weight: 900;
}
.helpdesk-board-card__title {
  display: -webkit-box;
  min-height: 2.5em;
  overflow: hidden;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 900;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.helpdesk-board-card__client {
  overflow: hidden;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.helpdesk-board-card__foot {
  margin-top: auto;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
}
.helpdesk-lane__empty {
  display: grid;
  min-height: 82px;
  place-items: center;
  border: 1px dashed #ccd8e5;
  border-radius: 12px;
  background: rgba(248, 251, 254, .7);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
}

.helpdesk-list-view {
  background:
    linear-gradient(90deg, rgba(227, 234, 241, .55) 1px, transparent 1px),
    linear-gradient(180deg, rgba(227, 234, 241, .55) 1px, transparent 1px),
    #f6f9fc;
  background-size: 28px 28px;
  padding: .75rem;
}
.helpdesk-ticket-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 .55rem;
}
.helpdesk-ticket-table th {
  padding: 0 .75rem .25rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
}
.helpdesk-ticket-table td {
  border-block: 1px solid var(--line);
  background: #fff;
  padding: .75rem;
  color: var(--ink-soft);
  font-size: .82rem;
  vertical-align: middle;
}
.helpdesk-ticket-table td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 13px 0 0 13px;
}
.helpdesk-ticket-table td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 13px 13px 0;
}
.helpdesk-ticket-table tr {
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out);
}
.helpdesk-ticket-table tbody tr:hover {
  transform: translateY(-1px);
}
.helpdesk-ticket-table tbody tr:hover td {
  border-color: rgba(10, 125, 54, .26);
  box-shadow: 0 12px 26px -24px rgba(14, 26, 40, .45);
}
.helpdesk-ticket-table strong,
.helpdesk-ticket-table b {
  display: block;
  color: var(--ink);
  font-weight: 900;
}
.helpdesk-ticket-table strong {
  color: var(--brand-strong);
  font-size: .72rem;
  letter-spacing: .03em;
}
.helpdesk-ticket-table p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: .18rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.helpdesk-list-action {
  min-height: 36px;
  padding: .45rem .7rem;
  white-space: nowrap;
}
.helpdesk-list-action svg {
  width: 16px;
  height: 16px;
}

.helpdesk-v2__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-top: 1px solid var(--line-soft);
  padding: .72rem .85rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.helpdesk-v2__pager nav {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.helpdesk-v2__pager a {
  color: var(--ink-soft);
  text-decoration: none;
}
.helpdesk-v2__pager a.is-disabled {
  color: #a9b7c5;
  pointer-events: none;
}

.helpdesk-ticket-modal,
.helpdesk-portal-modal {
  width: min(1120px, 96vw);
  max-height: 90vh;
  margin: auto;
  border: 0;
  border-radius: 18px;
  background: transparent;
  padding: 0;
  overflow: visible;
}
.helpdesk-portal-modal {
  width: min(980px, 96vw);
}
.helpdesk-ticket-modal::backdrop,
.helpdesk-portal-modal::backdrop {
  background: rgba(8, 18, 30, .58);
  backdrop-filter: blur(3px);
}
.helpdesk-ticket-modal[open],
.helpdesk-portal-modal[open] {
  animation: crm-modal-in .18s var(--ease-out);
}
.helpdesk-ticket-modal__shell,
.helpdesk-portal-modal__shell {
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px -42px rgba(0, 0, 0, .58);
}
.helpdesk-ticket-modal__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #fff, #f8fbfe);
}
.helpdesk-ticket-modal__head p {
  color: var(--brand-strong);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.helpdesk-ticket-modal__head h2 {
  max-width: 820px;
  margin-top: .18rem;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.08;
}
.helpdesk-ticket-modal__head span {
  display: block;
  margin-top: .32rem;
  color: var(--muted);
  font-size: .84rem;
}
.helpdesk-ticket-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  max-height: calc(90vh - 86px);
  overflow: hidden;
}
.helpdesk-ticket-modal__main {
  display: grid;
  align-content: start;
  gap: .85rem;
  padding: 1rem;
  overflow: auto;
}
.helpdesk-ticket-modal__side {
  display: grid;
  align-content: start;
  gap: .75rem;
  border-left: 1px solid var(--line-soft);
  background: var(--surface-2);
  padding: 1rem;
  overflow: auto;
}
.helpdesk-ticket-modal__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.helpdesk-ticket-modal__summary article {
  border-right: 1px solid var(--line-soft);
  padding: .8rem;
}
.helpdesk-ticket-modal__summary article:last-child {
  border-right: 0;
}
.helpdesk-ticket-modal__summary span {
  display: block;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.helpdesk-ticket-modal__summary strong {
  display: block;
  overflow: hidden;
  margin-top: .18rem;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.helpdesk-ticket-modal__block {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: .9rem;
}
.helpdesk-ticket-modal__block h3 {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.helpdesk-ticket-modal__block p {
  margin-top: .45rem;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.6;
}
.helpdesk-ticket-modal__contact {
  color: var(--muted) !important;
  font-size: .8rem !important;
}
.helpdesk-ticket-modal__form {
  display: grid;
  gap: .72rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: .85rem;
}
.helpdesk-ticket-modal__form .crm-primary-btn,
.helpdesk-ticket-modal__form .crm-secondary-btn,
.helpdesk-ticket-modal__form .crm-danger-btn {
  width: 100%;
}
.helpdesk-note-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 800;
}
.helpdesk-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  max-height: calc(90vh - 92px);
  overflow: auto;
  padding: 1rem;
  background: var(--surface-2);
}
.helpdesk-portal-grid .helpdesk-client-link {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

@media (max-width: 1280px) {
  .helpdesk-board {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
  }
  .helpdesk-board-card {
    min-height: 126px;
    padding: .62rem;
  }
  .helpdesk-board-card__title {
    font-size: .8rem;
  }
}

@media (max-width: 1120px) {
  .helpdesk-v2__top,
  .helpdesk-ticket-modal__body {
    grid-template-columns: 1fr;
  }
  .helpdesk-ticket-modal__side {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
  .helpdesk-v2__filters {
    grid-template-columns: 1fr 1fr;
  }
  .helpdesk-v2__filters label:first-child,
  .helpdesk-v2__filters button {
    grid-column: 1 / -1;
  }
  .helpdesk-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .helpdesk-board,
  .helpdesk-ticket-modal__summary,
  .helpdesk-portal-grid {
    grid-template-columns: 1fr;
  }
  .helpdesk-v2__metrics,
  .helpdesk-v2__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .helpdesk-v2__metrics article {
    min-height: 74px;
    padding: .75rem;
  }
  .helpdesk-v2__metrics strong {
    font-size: 1.72rem;
  }
  .helpdesk-v2__filters label:first-child,
  .helpdesk-v2__filters button {
    grid-column: 1 / -1;
  }
  .helpdesk-v2__actions {
    align-items: stretch;
    flex-direction: column;
  }
  .helpdesk-v2__actions .crm-primary-btn,
  .helpdesk-v2__actions .crm-secondary-btn {
    width: 100%;
  }
  .helpdesk-viewbar {
    align-items: stretch;
    flex-direction: column;
  }
  .helpdesk-viewbar nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .helpdesk-viewbar a {
    width: 100%;
  }
  .helpdesk-list-view {
    padding: .65rem;
  }
  .helpdesk-ticket-table,
  .helpdesk-ticket-table thead,
  .helpdesk-ticket-table tbody,
  .helpdesk-ticket-table tr,
  .helpdesk-ticket-table td {
    display: block;
    width: 100%;
  }
  .helpdesk-ticket-table thead {
    display: none;
  }
  .helpdesk-ticket-table {
    border-spacing: 0;
  }
  .helpdesk-ticket-table tr {
    display: grid;
    gap: .48rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: .75rem;
    margin-bottom: .65rem;
  }
  .helpdesk-ticket-table td,
  .helpdesk-ticket-table td:first-child,
  .helpdesk-ticket-table td:last-child {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: .6rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none !important;
  }
  .helpdesk-ticket-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .helpdesk-ticket-table td:first-child {
    grid-template-columns: 1fr;
  }
  .helpdesk-ticket-table td p {
    grid-column: 2;
  }
  .helpdesk-ticket-table td:first-child p {
    grid-column: 1;
  }
  .helpdesk-ticket-table td:first-child::before {
    display: none;
  }
  .helpdesk-ticket-table td.text-right {
    text-align: left;
  }
  .helpdesk-list-action {
    width: 100%;
  }
  .helpdesk-ticket-modal,
  .helpdesk-portal-modal {
    width: 100vw;
    max-height: 94vh;
    margin: auto auto 0;
  }
  .helpdesk-ticket-modal__shell,
  .helpdesk-portal-modal__shell {
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }
}

@media (max-width: 430px) {
  .helpdesk-v2__hero {
    padding: .9rem;
  }
  .helpdesk-v2__hero h2 {
    font-size: 1.48rem;
  }
  .helpdesk-v2__hero p {
    font-size: .84rem;
  }
  .helpdesk-v2__filters {
    gap: .5rem;
    padding: .65rem;
  }
  .helpdesk-v2__filters label:first-child {
    grid-column: 1 / -1;
  }
  .helpdesk-v2__filters button {
    grid-column: auto;
  }
  .helpdesk-v2__filters .crm-input,
  .helpdesk-v2__filters .crm-select,
  .helpdesk-v2__filters .crm-secondary-btn {
    min-height: 38px;
    padding-block: .55rem;
  }
}

/* Card header action button (opens modal) */
.crm-card__head .crm-primary-btn,
.crm-card__head .crm-secondary-btn { min-height: 40px; }

/* Compact row actions (edit / pdf / delete) */
.crm-row-actions { display: inline-flex; align-items: center; gap: .4rem; justify-content: flex-end; }
.crm-icon-action {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.crm-icon-action svg { width: 15px; height: 15px; }
.crm-icon-action:hover { border-color: #b9c7d6; background: var(--surface-2); color: var(--brand-strong); }
.crm-icon-action--danger:hover { border-color: #fbcfcf; background: #fef2f2; color: var(--red); }

/* =========================================================================
   PUBLIC — Professional motion redesign layer
   Kept under .site-public so the CRM/admin panel is not affected.
   ========================================================================= */

.site-public {
  --public-bg: #f6f9fc;
  --public-ink: #071321;
  --public-copy: #26384c;
  --public-muted: #617184;
  --public-line: #d7e3ee;
  --public-line-strong: #b9cbdc;
  --public-blue: #075eb0;
  --public-blue-strong: #03437f;
  --public-blue-soft: #e7f1fb;
  --public-green: #07823b;
  --public-green-strong: #05652f;
  --public-cyan: #1c9dc8;
  --public-shadow: 0 24px 70px -46px rgba(7, 19, 33, .44), 0 2px 8px rgba(7, 19, 33, .05);
  --public-shadow-crisp: 0 14px 32px -24px rgba(7, 19, 33, .36), 0 1px 0 rgba(255, 255, 255, .72) inset;
  --public-ease: cubic-bezier(.22, 1, .36, 1);
  --public-ease-io: cubic-bezier(.76, 0, .24, 1);
  color: var(--public-ink);
  background:
    radial-gradient(900px 420px at 82% -8%, rgba(7, 94, 176, .12), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, var(--public-bg) 36%, #ffffff 100%);
  font-family: Aptos, "Segoe UI", system-ui, sans-serif;
}

.site-public::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: radial-gradient(circle at 50% 50%, rgba(7, 19, 33, .12) 0 1px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 76%, transparent);
}

.site-public h1,
.site-public h2,
.site-public h3,
.site-public h4,
.site-public h5,
.site-public .font-display,
.site-public .sch-brand__text strong,
.site-public .sch-brand__since,
.site-public .sch-home-trust strong,
.site-public .sch-proof-band strong,
.site-public .sch-hero-stat strong {
  font-family: Aptos, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.035em;
}

.site-public .container-sch,
.site-public .sch-home-hero__grid,
.site-public .sch-solutions,
.site-public .sch-project-showcase,
.site-public .sch-about-band,
.site-public .sch-brand-strip,
.site-public .public-nav__bar,
.site-public .public-topbar__inner,
.site-public .sch-footer__grid,
.site-public .sch-footer__bottom-inner {
  width: min(100% - clamp(2rem, 4vw, 5rem), 1320px);
}

.site-public .scroll-progress {
  height: 2px;
  background: linear-gradient(90deg, var(--public-blue), var(--public-green), var(--public-cyan));
  box-shadow: none;
}

.site-public .public-nav {
  background: rgba(250, 253, 255, .82);
  border-bottom: 1px solid rgba(185, 203, 220, .72);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
}

.site-public .public-nav.is-stuck {
  box-shadow: 0 16px 34px -28px rgba(7, 19, 33, .34);
}

.site-public .public-topbar {
  background: #071321;
}

.site-public .public-topbar__inner {
  height: 36px;
}

.site-public .public-topbar__meta {
  gap: .9rem;
  color: #d6e0ea;
  font-size: .76rem;
}

.site-public .public-topbar__cta {
  background: var(--public-green);
  padding-inline: 1.35rem;
  transition: background .18s var(--public-ease), transform .18s var(--public-ease);
}

.site-public .public-topbar__cta:hover {
  background: var(--public-green-strong);
}

.site-public .public-nav__bar {
  min-height: 72px;
}

.site-public .sch-brand {
  gap: .7rem;
}

.site-public .sch-brand__mark {
  height: 42px;
  filter: drop-shadow(0 10px 18px rgba(7, 94, 176, .10));
}

.site-public .sch-brand__text strong {
  font-size: 1.18rem;
  letter-spacing: -.04em;
}

.site-public .sch-brand__text small {
  margin-top: .18rem;
  max-width: 220px;
  overflow: hidden;
  color: var(--public-muted);
  font-size: .62rem;
  letter-spacing: .02em;
  text-overflow: ellipsis;
}

.site-public .sch-brand__since {
  padding-left: .85rem;
  border-left-color: var(--public-line);
  color: var(--public-blue);
  font-size: 1rem;
}

.site-public .public-nav__links {
  gap: .15rem;
  padding: .28rem;
  border: 1px solid rgba(215, 227, 238, .75);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.site-public .public-nav-link {
  min-height: 38px;
  border-radius: 999px;
  padding: .48rem .9rem;
  color: #203348;
  font-size: .8rem;
  letter-spacing: .01em;
  transition: color .18s var(--public-ease), background .18s var(--public-ease), transform .18s var(--public-ease);
}

.site-public .public-nav-link:hover {
  color: var(--public-blue-strong);
  background: var(--public-blue-soft);
  transform: translateY(-1px);
}

.site-public .public-nav-link.is-active {
  background: #071321;
  color: #fff;
}

.site-public .public-nav-link.is-active::after {
  display: none;
}

.site-public .public-nav__actions {
  gap: .55rem;
}

.site-public .public-nav__quote {
  min-height: 42px;
  padding: .62rem 1.05rem;
  font-size: .82rem;
}

.site-public .public-nav__crm {
  min-height: 42px;
  border-color: rgba(7, 94, 176, .36);
  border-radius: 999px;
  padding: .58rem 1rem;
  background: #fff;
  color: var(--public-blue-strong);
  font-size: .8rem;
  box-shadow: var(--public-shadow-crisp);
}

.site-public .public-nav__crm:hover {
  background: #071321;
  border-color: #071321;
  color: #fff;
  transform: translateY(-1px);
}

.site-public .nav-toggle {
  width: 44px;
  height: 44px;
  border-color: var(--public-line);
  border-radius: 999px;
  box-shadow: var(--public-shadow-crisp);
}

.site-public .mobile-menu {
  border-top: 1px solid var(--public-line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.site-public .mobile-menu a {
  border-radius: 12px;
  color: var(--public-ink);
}

.site-public .mobile-menu a.is-primary {
  background: var(--public-blue);
}

.site-public .sch-btn-primary,
.site-public .sch-btn-outline-green,
.site-public .sch-btn-ghost,
.site-public .public-nav__crm,
.site-public .sch-project-showcase__intro a,
.site-public .sch-support-cta__call,
.site-public .sch-support-cta__wa {
  border-radius: 999px;
  transition: transform .22s var(--public-ease), background .18s var(--public-ease), color .18s var(--public-ease), border-color .18s var(--public-ease), box-shadow .22s var(--public-ease);
}

.site-public .sch-btn-primary {
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, #0a76cf, var(--public-blue));
  box-shadow: 0 16px 32px -18px rgba(7, 94, 176, .72), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.site-public .sch-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -22px rgba(7, 94, 176, .82), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.site-public .sch-btn-primary:active,
.site-public .sch-btn-outline-green:active,
.site-public .sch-btn-ghost:active,
.site-public .public-nav__crm:active {
  transform: translateY(0) scale(.98);
}

.site-public .sch-btn-outline-green {
  border-color: rgba(7, 130, 59, .45);
  background: #fff;
  color: var(--public-green-strong);
  box-shadow: var(--public-shadow-crisp);
}

.site-public .sch-btn-outline-green:hover {
  background: var(--public-green);
  border-color: var(--public-green);
  color: #fff;
}

.site-public .sch-btn-ghost {
  border-color: var(--public-line);
  box-shadow: var(--public-shadow-crisp);
}

.site-public .sch-btn-ghost:hover {
  background: #071321;
  border-color: #071321;
  color: #fff;
}

.site-public .sch-eyebrow {
  gap: .6rem;
  color: var(--public-blue-strong);
  font-size: .72rem;
  letter-spacing: .08em;
}

.site-public .sch-eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(7, 94, 176, .10);
}

.site-public .sch-eyebrow--light {
  color: #b9e4ff;
}

.site-public .sch-eyebrow--light::before {
  background: #86d7ff;
  box-shadow: 0 0 0 6px rgba(134, 215, 255, .13);
}

.site-public .sch-home-hero,
.site-public .sch-page-hero {
  overflow: clip;
  border-bottom-color: rgba(185, 203, 220, .66);
  background:
    radial-gradient(720px 380px at 84% 18%, rgba(7, 94, 176, .13), transparent 66%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
}

.site-public .sch-home-hero::before,
.site-public .sch-page-hero::before {
  opacity: .58;
  background-image: linear-gradient(rgba(7, 94, 176, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(7, 94, 176, .045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000, transparent 64%);
}

.site-public .sch-home-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr);
  min-height: clamp(590px, 76dvh, 760px);
  padding-block: clamp(2.6rem, 5vw, 4.8rem);
}

.site-public .sch-home-hero__copy {
  max-width: 640px;
}

.site-public .sch-home-hero__copy h1,
.site-public .sch-page-hero h1 {
  color: var(--public-ink);
  font-weight: 800;
  letter-spacing: -.052em;
}

.site-public .sch-home-hero__copy h1 {
  max-width: 760px;
  margin-top: 1rem;
  font-size: clamp(2.85rem, 5vw, 4.15rem);
  line-height: .98;
}

.site-public .sch-home-hero__copy h1 em {
  color: var(--public-blue);
}

.site-public .sch-home-hero__copy p,
.site-public .sch-page-hero p {
  color: var(--public-copy);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.72;
}

.site-public .sch-home-actions {
  gap: .75rem;
  margin-top: 1.7rem;
}

.site-public .sch-home-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  max-width: 660px;
  margin-top: 2rem;
  padding-top: 0;
  border-top: 0;
}

.site-public .sch-home-trust div {
  padding: .85rem .95rem;
  border: 1px solid rgba(215, 227, 238, .82);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.site-public .sch-home-trust strong {
  color: var(--public-blue-strong);
  font-size: 1.38rem;
}

.site-public .sch-home-trust span {
  color: var(--public-muted);
  font-size: .68rem;
  line-height: 1.25;
}

.site-public .sch-home-hero__media {
  min-height: 500px;
  perspective: 1200px;
}

.site-public .sch-home-hero__media::before {
  content: "";
  position: absolute;
  inset: 28px -22px -22px 44px;
  border-radius: 28px;
  background: #dce8f1;
  transform: rotate(-2deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.site-public .sch-hero-main-img {
  position: relative;
  min-height: 500px;
  max-height: 620px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 26px;
  box-shadow: var(--public-shadow);
  transform: rotate(.75deg);
}

.site-public .sch-hero-floating {
  border-width: 6px;
  border-radius: 18px;
  box-shadow: 0 26px 64px -38px rgba(7, 19, 33, .64);
}

.site-public .sch-hero-floating--one {
  left: -42px;
  bottom: 48px;
  transform: rotate(-4deg);
}

.site-public .sch-hero-badge,
.site-public .sch-hero-stat {
  border-radius: 18px;
}

.site-public .sch-hero-badge {
  left: auto;
  right: 26px;
  top: 28px;
  background: rgba(7, 19, 33, .9);
  backdrop-filter: blur(18px) saturate(140%);
}

.site-public .sch-hero-stat {
  right: auto;
  left: 34px;
  bottom: 26px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px) saturate(160%);
}

.site-public .sch-hero-stat__icon {
  border-radius: 13px;
  background: var(--public-blue);
}

.site-public .sch-page-hero__inner {
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  min-height: 430px;
  padding-block: clamp(3.2rem, 6vw, 5.5rem);
}

.site-public .sch-page-hero h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 4.2vw, 4.05rem);
  line-height: .98;
}

.site-public .sch-page-hero__media::before,
.site-public .sch-service-block__media::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 24px;
  z-index: -1;
  border-radius: 24px;
  background: #dce8f1;
}

.site-public .sch-page-hero__media img,
.site-public .sch-service-block__media img {
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  box-shadow: var(--public-shadow);
}

.site-public .sch-proof-strip,
.site-public .sch-proof-band {
  border-color: rgba(215, 227, 238, .92);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--public-shadow-crisp);
}

.site-public .sch-proof-strip {
  margin-top: -2.7rem;
}

.site-public .sch-proof-strip article,
.site-public .sch-proof-band article {
  border-color: var(--public-line);
}

.site-public .sch-proof-strip h2,
.site-public .sch-proof-band strong {
  color: var(--public-ink);
}

.site-public .sch-proof-strip svg,
.site-public .sch-proof-band span,
.site-public .sch-meta-row svg {
  color: var(--public-blue);
}

.site-public .sch-section {
  padding-block: clamp(4.2rem, 7vw, 7rem);
}

.site-public .sch-section--white {
  background: #fff;
}

.site-public .sch-section--page {
  background: radial-gradient(700px 280px at 8% 4%, rgba(7, 94, 176, .06), transparent 60%), var(--public-bg);
}

.site-public .sch-section-head {
  align-items: start;
  margin-bottom: 2.4rem;
}

.site-public .sch-section-head h2,
.site-public .sch-solutions__intro h2,
.site-public .sch-project-showcase__intro h2,
.site-public .sch-about-band h2,
.site-public .sch-service-block h2,
.site-public .sch-cta-band h2 {
  color: var(--public-ink);
  font-weight: 800;
  letter-spacing: -.045em;
}

.site-public .sch-section-head h2 {
  font-size: clamp(2rem, 3.8vw, 3.55rem);
  line-height: .98;
}

.site-public .sch-section-head p,
.site-public .sch-solutions__intro p,
.site-public .sch-project-showcase__intro p,
.site-public .sch-brand-strip__hint,
.site-public .sch-service-block > div > p,
.site-public .sch-about-band p,
.site-public .sch-project-card p,
.site-public .sch-contact-card p {
  color: var(--public-copy);
}

.site-public .sch-solutions {
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(2.2rem, 5vw, 5rem);
}

.site-public .sch-solutions__grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .85rem;
}

.site-public .sch-solution-item {
  grid-column: span 3;
  min-height: 278px;
  border-color: transparent;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 254, .94));
  box-shadow: var(--public-shadow-crisp);
}

.site-public .sch-solution-item:nth-child(1),
.site-public .sch-solution-item:nth-child(4) {
  grid-column: span 4;
}

.site-public .sch-solution-item:nth-child(2),
.site-public .sch-solution-item:nth-child(3) {
  grid-column: span 2;
}

.site-public .sch-solution-item::before {
  height: 100%;
  background: radial-gradient(220px 120px at var(--mx, 50%) var(--my, 0%), rgba(7, 94, 176, .14), transparent 62%), linear-gradient(90deg, rgba(7, 94, 176, .10), transparent);
  opacity: 0;
  transform: none;
  transition: opacity .28s var(--public-ease);
}

.site-public .sch-solution-item:hover {
  border-color: rgba(7, 94, 176, .18);
  box-shadow: 0 30px 80px -48px rgba(7, 19, 33, .52);
}

.site-public .sch-solution-item:hover::before {
  opacity: 1;
}

.site-public .sch-solution-item__icon {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(7, 94, 176, .14);
  border-radius: 16px;
  background: #eef6fd;
}

.site-public .sch-solution-item h3,
.site-public .sch-project-card h2,
.site-public .sch-showcase-card h3,
.site-public .sch-contact-card h2,
.site-public .sch-contact-card h3 {
  color: var(--public-ink);
}

.site-public .sch-project-showcase {
  grid-template-columns: minmax(250px, 310px) 1fr;
}

.site-public .sch-project-showcase__intro a {
  border-color: rgba(7, 94, 176, .28);
  background: #fff;
  box-shadow: var(--public-shadow-crisp);
}

.site-public .sch-project-showcase__grid {
  grid-template-columns: repeat(12, 1fr);
}

.site-public .sch-showcase-card {
  grid-column: span 6;
  border-color: transparent;
  border-radius: 18px;
  box-shadow: var(--public-shadow-crisp);
}

.site-public .sch-showcase-card:first-child {
  grid-column: span 7;
}

.site-public .sch-showcase-card:nth-child(2) {
  grid-column: span 5;
}

.site-public .sch-showcase-card__media {
  aspect-ratio: 1.55 / 1;
}

.site-public .sch-showcase-card__body,
.site-public .sch-project-card__body {
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.site-public .sch-about-gallery {
  gap: .75rem;
  transform: rotate(.5deg);
}

.site-public .sch-about-gallery img {
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 18px;
  box-shadow: var(--public-shadow-crisp);
}

.site-public .sch-about-points li {
  border-bottom: 1px solid var(--public-line);
  padding-bottom: .75rem;
}

.site-public .sch-about-points li:last-child {
  border-bottom: 0;
}

.site-public .sch-marquee__item {
  border-color: transparent;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--public-shadow-crisp);
}

.site-public .sch-service-block {
  border-color: var(--public-line);
}

.site-public .sch-service-block__tag {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(7, 19, 33, .86);
}

.site-public .sch-check-grid span {
  border-color: rgba(215, 227, 238, .9);
  border-radius: 12px;
  background: #fbfdff;
  color: var(--public-copy);
  transition: transform .18s var(--public-ease), border-color .18s var(--public-ease), background .18s var(--public-ease);
}

.site-public .sch-check-grid span:hover {
  border-color: rgba(7, 94, 176, .22);
  background: #fff;
  transform: translateY(-1px);
}

.site-public .sch-gallery-grid {
  gap: .75rem;
}

.site-public .sch-gallery-grid img {
  border-color: rgba(255, 255, 255, .78);
  border-radius: 18px;
  box-shadow: var(--public-shadow-crisp);
}

.site-public .sch-project-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: .9rem;
}

.site-public .sch-project-card {
  grid-column: span 4;
  border-color: transparent;
  border-radius: 18px;
  box-shadow: var(--public-shadow-crisp);
}

.site-public .sch-project-card:nth-child(1),
.site-public .sch-project-card:nth-child(6) {
  grid-column: span 6;
}

.site-public .sch-project-card__media {
  aspect-ratio: 1.58 / 1;
}

.site-public .sch-meta-row span {
  border-color: var(--public-line);
  background: #f5f9fd;
}

.site-public .sch-contact-layout {
  grid-template-columns: minmax(280px, .78fr) minmax(440px, 1fr);
}

.site-public .sch-contact-card,
.site-public .sch-public-form {
  border-color: transparent;
  border-radius: 18px;
  box-shadow: var(--public-shadow-crisp);
}

.site-public .sch-contact-card {
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.site-public .sch-contact-card > i,
.site-public .sch-contact-card svg:first-child {
  border: 1px solid rgba(7, 94, 176, .13);
  border-radius: 15px;
  background: #eef6fd;
}

.site-public .sch-public-form {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.site-public .sch-public-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--public-blue), var(--public-cyan), var(--public-green));
}

.site-public .sch-field > span {
  color: var(--public-ink);
}

.site-public .sch-field input,
.site-public .sch-field select,
.site-public .sch-field textarea {
  border-color: var(--public-line-strong);
  border-radius: 12px;
  background: #f8fbfe;
  color: var(--public-ink);
}

.site-public .sch-field input::placeholder,
.site-public .sch-field textarea::placeholder {
  color: #67798c;
}

.site-public .sch-field input:focus,
.site-public .sch-field select:focus,
.site-public .sch-field textarea:focus {
  border-color: var(--public-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7, 94, 176, .13);
}

.site-public .sch-support-cta,
.site-public .sch-cta-band {
  border-radius: 22px;
  background:
    radial-gradient(420px 180px at 88% 10%, rgba(28, 157, 200, .32), transparent 68%),
    linear-gradient(135deg, #071321 0%, #0b2e52 58%, var(--public-blue-strong) 100%);
  box-shadow: 0 28px 80px -42px rgba(7, 19, 33, .72);
}

.site-public .sch-cta-band::before,
.site-public .sch-support-cta::before {
  opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 30px 30px;
}

.site-public .sch-cta-band .sch-btn-primary {
  border-color: rgba(255, 255, 255, .42);
  background: #fff;
  color: #071321;
}

.site-public .sch-cta-band {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: center;
  min-height: 230px;
  padding: clamp(2rem, 4.8vw, 3.6rem);
  border: 1px solid rgba(185, 228, 255, .18);
  background:
    radial-gradient(520px 240px at 86% 18%, rgba(28, 157, 200, .38), transparent 68%),
    radial-gradient(360px 190px at 10% 8%, rgba(134, 215, 255, .12), transparent 64%),
    linear-gradient(135deg, #06111f 0%, #08233e 48%, #07508c 100%);
}

.site-public .sch-cta-band::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  pointer-events: none;
}

.site-public .sch-cta-band .sch-eyebrow {
  color: #b9e4ff;
}

.site-public .sch-cta-band h2 {
  max-width: 860px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}

.site-public .sch-cta-band p {
  max-width: 640px;
  color: #c9d9e8;
  font-size: 1.04rem;
}

.site-public .sch-cta-band .sch-btn-primary {
  min-width: 210px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: #fff;
  color: #071321;
  box-shadow: 0 22px 46px -26px rgba(0, 0, 0, .68), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.site-public .sch-cta-band .sch-btn-primary:hover {
  background: #eaf5ff;
  transform: translateY(-2px);
}

.site-public footer.sch-footer {
  overflow: hidden;
  background: radial-gradient(720px 280px at 88% 0%, rgba(28, 157, 200, .14), transparent 64%), #071321;
}

.site-public footer.sch-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.site-public .sch-footer__grid,
.site-public .sch-footer__bottom {
  position: relative;
  z-index: 1;
}

.site-public .sch-footer h2 {
  color: #8fb9dc;
  letter-spacing: .08em;
}

.site-public .sch-footer ul a,
.site-public .sch-footer address,
.site-public .sch-footer address a,
.site-public .sch-footer__brand p {
  color: #c8d6e3;
}

.site-public .sch-footer__social a {
  border-radius: 999px;
}

.site-public footer.sch-footer {
  margin-top: 0;
  border-top: 1px solid rgba(185, 228, 255, .14);
}

.site-public .sch-footer__grid {
  grid-template-columns: minmax(320px, 1.25fr) minmax(160px, .65fr) minmax(160px, .65fr) minmax(260px, .95fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  padding-block: clamp(3.4rem, 6vw, 5rem);
}

.site-public .sch-footer__brand {
  position: relative;
  align-self: stretch;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 22px;
  background:
    radial-gradient(240px 150px at 14% 10%, rgba(134, 215, 255, .13), transparent 64%),
    rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.site-public .sch-footer .sch-brand {
  gap: .75rem;
}

.site-public .sch-footer .sch-brand__plaque {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px -28px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(7, 19, 33, .06);
}

.site-public .sch-footer .sch-brand__plaque img {
  height: 43px;
}

.site-public .sch-footer .sch-brand__text strong {
  color: #fff;
  font-size: 1.22rem;
}

.site-public .sch-footer .sch-brand__text small {
  color: #9fbdd5;
  max-width: 230px;
  white-space: normal;
}

.site-public .sch-footer__brand p {
  max-width: 44ch;
  color: #c6d7e6;
  font-size: .96rem;
}

.site-public .sch-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.55rem;
}

.site-public .sch-footer__social a {
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-weight: 700;
  transition: transform .2s var(--public-ease), background .2s var(--public-ease), border-color .2s var(--public-ease), color .2s var(--public-ease);
}

.site-public .sch-footer__social a:hover {
  transform: translateY(-2px);
}

.site-public .sch-footer__social a.is-mail:hover {
  border-color: rgba(185, 228, 255, .34);
  background: rgba(134, 215, 255, .12);
}

.site-public .sch-footer__social a.is-wa {
  border-color: rgba(14, 178, 81, .42);
  background: var(--public-green);
}

.site-public .sch-footer__social a.is-wa:hover {
  background: #0b9146;
}

.site-public .sch-footer h2 {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #91c9ef;
  font-size: .72rem;
}

.site-public .sch-footer h2::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #62c9ff;
  box-shadow: 0 0 0 5px rgba(98, 201, 255, .10);
}

.site-public .sch-footer ul {
  gap: .35rem;
  margin-top: 1rem;
}

.site-public .sch-footer ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: .34rem .45rem .34rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #c8d6e3;
  font-weight: 600;
}

.site-public .sch-footer ul a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  opacity: .42;
  transform: rotate(45deg) translateX(-2px);
  transition: opacity .18s var(--public-ease), transform .18s var(--public-ease);
}

.site-public .sch-footer ul a:hover {
  color: #fff;
}

.site-public .sch-footer ul a:hover::after {
  opacity: 1;
  transform: rotate(45deg) translateX(1px);
}

.site-public .sch-footer address {
  margin-top: 1rem;
  gap: .65rem;
}

.site-public .sch-footer address p {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0;
  padding: .72rem .78rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
  color: #d2dfeb;
}

.site-public .sch-footer address svg,
.site-public .sch-footer address i {
  flex: 0 0 auto;
  margin-top: .12rem;
  color: #71d4ff !important;
}

.site-public .sch-footer address a {
  color: #e6f3ff;
  font-weight: 700;
}

.site-public .sch-footer address a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-public .sch-footer__bottom {
  border-top-color: rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .16);
}

.site-public .sch-footer__bottom-inner {
  align-items: center;
  padding-block: 1.15rem;
  color: #9fb6c9;
}

.site-public .sch-footer__bottom-inner p:first-child {
  color: #d7e4ef;
  font-weight: 700;
}

.site-public .sch-footer__bottom-inner p:last-child {
  color: #91a9bc;
}

.site-public [data-reveal] {
  transition: opacity .9s var(--public-ease), transform .9s var(--public-ease), filter .9s var(--public-ease), clip-path 1s var(--public-ease-io);
}

@media (scripting: enabled) {
  .site-public [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(42px);
    filter: blur(10px);
  }

  .site-public [data-reveal="left"]:not(.is-visible) {
    transform: translateX(-44px);
  }

  .site-public [data-reveal="right"]:not(.is-visible) {
    transform: translateX(44px);
  }

  .site-public [data-reveal="scale"]:not(.is-visible) {
    transform: translateY(32px) scale(.965);
  }
}

.site-public .sch-solution-item,
.site-public .sch-showcase-card,
.site-public .sch-project-card,
.site-public .sch-contact-card,
.site-public .sch-marquee__item {
  transform: translate3d(0, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
  .site-public .sch-solution-item:hover,
  .site-public .sch-showcase-card:hover,
  .site-public .sch-project-card:hover,
  .site-public .sch-contact-card:hover,
  .site-public .sch-marquee__item:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 1180px) {
  .site-public .public-nav__links {
    display: none;
  }

  .site-public .nav-toggle {
    display: inline-grid;
  }

  .site-public .sch-home-hero__grid,
  .site-public .sch-page-hero__inner,
  .site-public .sch-solutions,
  .site-public .sch-project-showcase,
  .site-public .sch-about-band,
  .site-public .sch-contact-layout {
    grid-template-columns: 1fr;
  }

  .site-public .sch-solutions__intro,
  .site-public .sch-contact-stack {
    position: static;
  }

  .site-public .sch-home-hero__copy h1 {
    max-width: 14ch;
  }

  .site-public .sch-home-hero__media,
  .site-public .sch-hero-main-img {
    min-height: 420px;
  }
}

@media (max-width: 900px) {
  .site-public .sch-solutions__grid,
  .site-public .sch-project-showcase__grid,
  .site-public .sch-project-grid {
    grid-template-columns: 1fr;
  }

  .site-public .sch-solution-item,
  .site-public .sch-solution-item:nth-child(1),
  .site-public .sch-solution-item:nth-child(2),
  .site-public .sch-solution-item:nth-child(3),
  .site-public .sch-solution-item:nth-child(4),
  .site-public .sch-showcase-card,
  .site-public .sch-showcase-card:first-child,
  .site-public .sch-showcase-card:nth-child(2),
  .site-public .sch-project-card,
  .site-public .sch-project-card:nth-child(1),
  .site-public .sch-project-card:nth-child(6) {
    grid-column: auto;
  }

  .site-public .sch-home-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-public .sch-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-public .sch-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-public {
    background: #fff;
  }

  .site-public::before {
    opacity: .1;
  }

  .site-public .container-sch,
  .site-public .sch-home-hero__grid,
  .site-public .sch-solutions,
  .site-public .sch-project-showcase,
  .site-public .sch-about-band,
  .site-public .sch-brand-strip,
  .site-public .public-nav__bar,
  .site-public .sch-footer__grid,
  .site-public .sch-footer__bottom-inner {
    width: min(100% - 1.5rem, 1320px);
  }

  .site-public .public-nav__bar {
    min-height: 66px;
  }

  .site-public .sch-brand__mark {
    height: 38px;
  }

  .site-public .sch-brand__text strong {
    font-size: 1.02rem;
  }

  .site-public .public-nav__actions {
    display: none;
  }

  .site-public .sch-home-hero__grid {
    min-height: auto;
    padding-block: 2.5rem 3.2rem;
  }

  .site-public .sch-home-hero__copy h1 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 11vw, 3.35rem);
    line-height: .96;
  }

  .site-public .sch-page-hero h1 {
    font-size: clamp(2.25rem, 9.6vw, 3rem);
    line-height: .98;
  }

  .site-public .sch-home-hero__media,
  .site-public .sch-hero-main-img {
    min-height: 330px;
  }

  .site-public .sch-home-hero__media::before {
    inset: 18px -8px -12px 20px;
    border-radius: 22px;
  }

  .site-public .sch-hero-main-img {
    border-radius: 20px;
    transform: none;
  }

  .site-public .sch-hero-badge {
    left: 12px;
    right: auto;
    top: 12px;
    max-width: calc(100% - 24px);
  }

  .site-public .sch-hero-stat {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .site-public .sch-home-actions,
  .site-public .sch-page-hero__actions,
  .site-public .sch-support-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-public .sch-cta-band {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    min-height: auto;
    padding: 1.65rem;
  }

  .site-public .sch-cta-band h2 {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
    line-height: 1;
  }

  .site-public .sch-cta-band p {
    font-size: .98rem;
  }

  .site-public .sch-cta-band .sch-btn-primary {
    width: 100%;
    min-width: 0;
    min-height: 54px;
  }

  .site-public .sch-home-trust {
    grid-template-columns: 1fr 1fr;
  }

  .site-public .sch-section {
    padding-block: 3.5rem;
  }

  .site-public .sch-service-block {
    padding-block: 2.5rem;
  }

  .site-public .sch-page-hero__media::before,
  .site-public .sch-service-block__media::before {
    inset: 12px -8px -10px 16px;
  }

  .site-public .sch-page-hero__media img,
  .site-public .sch-service-block__media img {
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  .site-public .sch-brand__since,
  .site-public .sch-brand__text small {
    display: none;
  }

  .site-public .sch-home-hero__copy h1,
  .site-public .sch-page-hero h1 {
    max-width: none;
    font-size: clamp(2.25rem, 10.5vw, 2.9rem);
  }

  .site-public .sch-home-trust {
    grid-template-columns: 1fr;
  }

  .site-public .sch-home-hero__media,
  .site-public .sch-hero-main-img {
    min-height: 270px;
  }

  .site-public .sch-hero-badge span,
  .site-public .sch-hero-stat span {
    display: none;
  }

  .site-public .sch-footer__social {
    display: grid;
  }

  .site-public .sch-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.45rem;
  }

  .site-public .sch-footer__brand {
    grid-column: auto;
    padding: 1.05rem;
  }

  .site-public .sch-footer__brand p {
    max-width: none;
  }

  .site-public .sch-footer__social a {
    width: 100%;
    justify-content: center;
  }

  .site-public .sch-footer .sch-brand {
    align-items: center;
  }

  .site-public .sch-footer .sch-brand__text small {
    display: none;
  }

  .site-public .sch-footer__bottom-inner {
    display: grid;
    gap: .35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-public [data-reveal],
  .site-public .sch-solution-item,
  .site-public .sch-showcase-card,
  .site-public .sch-project-card,
  .site-public .sch-contact-card,
  .site-public .sch-marquee__item,
  .site-public .sch-hero-main-img {
    transform: none !important;
    filter: none !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    clip-path: none !important;
  }
}

/* =========================================================================
   CRM — Agenda interactive calendar
   ========================================================================= */
.agenda-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.cal-nav { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface); }
.cal-nav a { display: inline-grid; place-items: center; height: 40px; color: var(--ink-soft); text-decoration: none; transition: background var(--speed) var(--ease), color var(--speed) var(--ease); }
.cal-nav__btn { width: 40px; }
.cal-nav__btn svg { width: 18px; height: 18px; }
.cal-nav__today { padding: 0 .95rem; font-size: .82rem; font-weight: 700; border-inline: 1px solid var(--line); }
.cal-nav a:hover { background: var(--surface-2); color: var(--brand-strong); }

.cal-legend { display: flex; gap: .9rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .74rem; font-weight: 600; }
.cal-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

.cal { user-select: none; }
.cal__head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal__head span { text-align: center; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 0; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__day {
  position: relative;
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 7px 8px;
  overflow: hidden;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.cal__day.is-weekend { background: var(--surface-2); }
.cal__day.is-out { background: transparent; border-color: transparent; }
.cal__day.is-out .cal__num { color: #c2cedb; }
.cal__day.has-events { cursor: pointer; }
.cal__day.has-events:hover { border-color: rgba(10, 125, 54, .45); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.cal__day.is-today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cal__num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; color: var(--ink-soft); font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cal__day.is-today .cal__num { background: var(--brand); color: #fff; border-radius: 999px; }
.cal__events { display: grid; gap: 3px; margin-top: 5px; }
.cal__chip {
  display: flex; align-items: center; gap: 5px; min-width: 0;
  padding: 2px 6px; border-radius: 6px; background: var(--surface-2);
}
@supports (background: color-mix(in srgb, red 10%, white)) {
  .cal__chip { background: color-mix(in srgb, var(--c) 12%, #fff); }
}
.cal__chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.cal__chip b { font-size: .72rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__more { font-size: .68rem; font-weight: 700; color: var(--brand-strong); padding-left: 6px; }

/* Upcoming list */
.agenda-up { display: grid; grid-template-columns: 48px 1fr; gap: .7rem; align-items: center; padding: .5rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.agenda-up:hover { border-color: #cfdbe8; box-shadow: var(--shadow-xs); }
.agenda-up__date { text-align: center; background: var(--brand-soft); border-radius: 9px; padding: .35rem 0; }
.agenda-up__date b { display: block; color: var(--brand-strong); font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; font-weight: 700; line-height: 1; }
.agenda-up__date span { color: var(--brand-strong); font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.agenda-up__body { min-width: 0; }
.agenda-up__body b { display: block; color: var(--ink); font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-up__body span { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Day-modal event rows */
.agenda-ev { display: grid; grid-template-columns: 10px 1fr auto; gap: .7rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.agenda-ev:hover { background: var(--surface-2); border-color: #cfdbe8; }
.agenda-ev__dot { width: 10px; height: 10px; border-radius: 50%; }
.agenda-ev__body { min-width: 0; }
.agenda-ev__body b { display: block; color: var(--ink); font-size: .9rem; font-weight: 700; }
.agenda-ev__body span { color: var(--muted); font-size: .8rem; }
.agenda-ev__tag { padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }

@media (max-width: 1024px) { .agenda-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cal__grid { gap: 4px; }
  .cal__day { min-height: 62px; padding: 5px; border-radius: 9px; }
  .cal__chip { padding: 2px; justify-content: center; }
  .cal__chip b, .cal__more { display: none; }
  .cal__head span { font-size: .6rem; }
}

/* =========================================================================
   Button polish (CRM family + chips/icons) — depth, press, icon nudge, focus
   ========================================================================= */
.crm-primary-btn { background: linear-gradient(180deg, var(--blue-bright), var(--blue-strong)); }
.crm-primary-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.crm-primary-btn svg, .crm-secondary-btn svg, .crm-danger-btn svg { transition: transform var(--speed) var(--ease); }
.crm-primary-btn:hover svg { transform: translateX(2px); }
.crm-secondary-btn:hover { background: var(--surface-2); border-color: #b9c7d6; }
.crm-primary-btn:active, .crm-secondary-btn:active, .crm-danger-btn:active { transform: translateY(0) scale(.985); }
.crm-icon-action:active, .dash-chip:active, .dash-iconbtn:active, .cal-nav a:active, .dash-pill:active { transform: scale(.95); }
.crm-primary-btn[disabled], .crm-secondary-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Soft brand focus ring on the key interactive controls (replaces the flat outline) */
.crm-primary-btn:focus-visible,
.crm-secondary-btn:focus-visible,
.crm-danger-btn:focus-visible,
.crm-top-btn:focus-visible,
.crm-icon-action:focus-visible,
.dash-chip:focus-visible,
.dash-iconbtn:focus-visible,
.dash-pill:focus-visible,
.cal-nav a:focus-visible,
.crm-modal__close:focus-visible,
.crm-nav-collapse:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 125, 54, .32);
}

/* Public buttons: keep blue brand focus ring (public site is blue) */
.sch-btn-primary:focus-visible, .sch-btn-outline-green:focus-visible, .sch-btn-ghost:focus-visible,
.public-nav__crm:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 102, 179, .3);
}

/* =========================================================================
   CRM module cockpit: clients, equipment, quotes
   ========================================================================= */
.crm-content:has(.crm-cockpit) .crm-page-title {
  display: none;
}

.crm-cockpit {
  display: grid;
  gap: .9rem;
}

.crm-cockpit__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: .9rem;
  align-items: stretch;
}

.crm-cockpit__hero,
.crm-cockpit__metrics,
.crm-data-surface {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.crm-cockpit__hero {
  position: relative;
  overflow: hidden;
  min-height: 208px;
  padding: 1.1rem;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(31, 166, 216, .24), transparent 34%),
    linear-gradient(135deg, #081827 0%, #0f2a42 58%, #064a20 100%);
}

.crm-cockpit__hero--service {
  background:
    radial-gradient(circle at 82% 18%, rgba(18, 160, 74, .24), transparent 34%),
    linear-gradient(135deg, #081827 0%, #12314b 54%, #0b3b25 100%);
}

.crm-cockpit__hero--sales {
  background:
    radial-gradient(circle at 84% 18%, rgba(194, 160, 78, .2), transparent 34%),
    linear-gradient(135deg, #081827 0%, #102941 58%, #1d3550 100%);
}

.crm-cockpit__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .95));
  pointer-events: none;
}

.crm-cockpit__hero > * {
  position: relative;
  z-index: 1;
}

.crm-kicker {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: #9fe8bd;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.crm-kicker svg {
  width: 15px;
  height: 15px;
}

.crm-cockpit__hero h2 {
  max-width: 760px;
  margin-top: .42rem;
  color: #fff;
  font-family: Inter, "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 1.72rem;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.crm-cockpit__hero p {
  max-width: 760px;
  margin-top: .55rem;
  color: #c9d7e5;
  font-size: .88rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.crm-cockpit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

.crm-cockpit__actions .crm-secondary-btn {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .09);
  color: #fff;
}

.crm-cockpit__actions .crm-secondary-btn:hover {
  background: rgba(255, 255, 255, .15);
}

.crm-cockpit__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.crm-cockpit__metrics article {
  min-height: 104px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: .92rem;
  background: linear-gradient(180deg, #fff, var(--surface-2));
}

.crm-cockpit__metrics article:nth-child(2n) {
  border-right: 0;
}

.crm-cockpit__metrics article:nth-child(n+3) {
  border-bottom: 0;
}

.crm-cockpit__metrics span,
.crm-cockpit__metrics small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.crm-cockpit__metrics span {
  letter-spacing: .03em;
  text-transform: uppercase;
}

.crm-cockpit__metrics strong {
  display: block;
  margin-top: .28rem;
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.crm-cockpit__metrics small {
  margin-top: .42rem;
  font-weight: 600;
  line-height: 1.35;
}

.crm-data-surface {
  overflow: hidden;
}

.crm-data-surface__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  border-bottom: 1px solid var(--line);
  padding: .9rem 1rem;
  background: linear-gradient(180deg, #fff, #f9fbfd);
}

.crm-data-surface__head h3 {
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, Arial, sans-serif;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.crm-data-surface__head p {
  margin-top: .12rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
}

.crm-data-table {
  min-width: 760px;
}

.crm-data-table th {
  background: #f6f9fc;
  color: #506273;
}

.crm-data-table td {
  padding-block: .78rem;
}

.crm-data-table tbody tr:hover {
  background: #f7fbf9;
}

.crm-data-table strong {
  font-weight: 750;
}

.crm-data-surface .crm-empty {
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

.crm-modal .crm-form-grid[style*="repeat(4"] {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

@media (max-width: 1180px) {
  .crm-cockpit__top {
    grid-template-columns: 1fr;
  }

  .crm-cockpit__hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .crm-cockpit {
    gap: .75rem;
  }

  .crm-cockpit__hero {
    padding: 1rem;
  }

  .crm-cockpit__hero h2 {
    font-size: 1.35rem;
    line-height: 1.12;
  }

  .crm-cockpit__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .crm-cockpit__metrics article {
    min-height: 92px;
    padding: .78rem;
  }

  .crm-data-surface__head {
    display: grid;
    align-items: stretch;
  }

  .crm-data-surface__head .crm-toolbar,
  .crm-data-surface__head .crm-search-field,
  .crm-data-surface__head .crm-primary-btn,
  .crm-data-surface__head .crm-secondary-btn {
    width: 100%;
  }

  .crm-data-surface__head .crm-toolbar {
    display: grid;
  }

  .crm-data-surface__head .crm-search-field input {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .crm-cockpit__actions {
    display: grid;
  }

  .crm-cockpit__actions .crm-primary-btn,
  .crm-cockpit__actions .crm-secondary-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 340px) {
  .crm-cockpit__metrics {
    grid-template-columns: 1fr;
  }

  .crm-cockpit__metrics article {
    min-height: 82px;
    border-right: 0;
  }

  .crm-cockpit__metrics article:nth-child(n+3) {
    border-bottom: 1px solid var(--line-soft);
  }

  .crm-cockpit__metrics article:last-child {
    border-bottom: 0;
  }
}

/* Helpdesk ticket modal scroll fix: one predictable scroll container */
.helpdesk-ticket-modal {
  max-height: 94dvh;
  overflow: hidden;
}

.helpdesk-ticket-modal[open] {
  display: flex;
  flex-direction: column;
}

.helpdesk-ticket-modal__shell {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(94dvh - 2px);
  flex-direction: column;
  overflow: hidden;
}

.helpdesk-ticket-modal__head {
  flex: 0 0 auto;
}

.helpdesk-ticket-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.helpdesk-ticket-modal__main,
.helpdesk-ticket-modal__side {
  min-height: 0;
  overflow: visible;
}

@media (max-width: 1120px) {
  .helpdesk-ticket-modal__body {
    display: block;
  }

  .helpdesk-ticket-modal__main,
  .helpdesk-ticket-modal__side {
    display: grid;
  }
}

/* =========================================================================
   Public UI v2: sharper CTAs, safer forms, responsive polish
   ========================================================================= */
.site-public .sch-btn-primary,
.site-public .sch-btn-outline-green,
.site-public .sch-btn-ghost,
.site-public .public-nav__quote,
.site-public .public-nav__crm,
.site-public .public-topbar__cta,
.site-public .sch-support-cta__call,
.site-public .sch-support-cta__wa,
.helpdesk-public .crm-primary-btn,
.helpdesk-public .crm-secondary-btn {
  min-height: 48px;
  gap: .58rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  will-change: transform;
  transform: translateZ(0);
}

.site-public .sch-btn-primary,
.site-public .public-nav__quote,
.helpdesk-public .crm-primary-btn {
  border: 1px solid rgba(255, 255, 255, .22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 42%),
    linear-gradient(135deg, #0b7bd8 0%, #075eb0 48%, #034f8f 100%);
  color: #fff;
  box-shadow:
    0 18px 36px -20px rgba(7, 94, 176, .82),
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 -1px 0 rgba(3, 79, 143, .55);
}

.site-public .sch-btn-primary::before,
.site-public .public-nav__quote::before,
.helpdesk-public .crm-primary-btn::before {
  z-index: 0;
  opacity: .65;
}

.site-public .sch-btn-primary > *,
.site-public .public-nav__quote > *,
.helpdesk-public .crm-primary-btn > * {
  position: relative;
  z-index: 1;
}

.site-public .sch-btn-primary:hover,
.site-public .public-nav__quote:hover,
.helpdesk-public .crm-primary-btn:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .24), transparent 44%),
    linear-gradient(135deg, #0d82df 0%, #0666b3 48%, #034a86 100%);
  transform: translateY(-2px);
  box-shadow:
    0 24px 46px -22px rgba(7, 94, 176, .92),
    inset 0 1px 0 rgba(255, 255, 255, .4),
    inset 0 -1px 0 rgba(3, 79, 143, .62);
}

.site-public .sch-btn-outline-green,
.site-public .sch-support-cta__wa {
  border: 1px solid rgba(10, 125, 54, .34);
  background:
    linear-gradient(180deg, #fff, #f7fbf9);
  color: #066128;
  box-shadow: 0 12px 28px -22px rgba(6, 74, 32, .48), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.site-public .sch-btn-outline-green:hover,
.site-public .sch-support-cta__wa:hover {
  border-color: rgba(10, 125, 54, .74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 42%),
    linear-gradient(135deg, #12a04a, #066128);
  color: #fff;
  box-shadow: 0 22px 42px -24px rgba(10, 125, 54, .85);
  transform: translateY(-2px);
}

.site-public .sch-btn-ghost,
.site-public .public-nav__crm,
.helpdesk-public .crm-secondary-btn {
  border: 1px solid rgba(185, 203, 220, .96);
  background:
    linear-gradient(180deg, #fff, #f8fbfe);
  color: #102338;
  box-shadow: 0 12px 28px -24px rgba(7, 19, 33, .48), inset 0 1px 0 rgba(255, 255, 255, .92);
}

.site-public .sch-btn-ghost:hover,
.site-public .public-nav__crm:hover,
.helpdesk-public .crm-secondary-btn:hover {
  border-color: rgba(7, 94, 176, .36);
  background:
    linear-gradient(180deg, #fff, #eef6fd);
  color: #075eb0;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -26px rgba(7, 94, 176, .58);
}

.site-public .sch-btn-primary:active,
.site-public .sch-btn-outline-green:active,
.site-public .sch-btn-ghost:active,
.site-public .public-nav__quote:active,
.site-public .public-nav__crm:active,
.helpdesk-public .crm-primary-btn:active,
.helpdesk-public .crm-secondary-btn:active {
  transform: translateY(0) scale(.985);
}

.site-public .sch-btn-primary[disabled],
.site-public .sch-btn-outline-green[disabled],
.site-public .sch-btn-ghost[disabled],
.helpdesk-public .crm-primary-btn[disabled],
.helpdesk-public .crm-secondary-btn[disabled] {
  cursor: wait;
  opacity: .78;
  transform: none;
  box-shadow: none;
}

.sch-submit-spinner {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: sch-spin .7s linear infinite;
}

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

.site-public .sch-public-form {
  isolation: isolate;
  border: 1px solid rgba(215, 227, 238, .98);
  border-radius: 20px;
  background:
    radial-gradient(460px 160px at 100% 0%, rgba(7, 94, 176, .055), transparent 62%),
    #fff;
  box-shadow: 0 26px 70px -50px rgba(7, 19, 33, .42), inset 0 1px 0 rgba(255, 255, 255, .92);
}

.site-public .sch-public-form::before {
  height: 4px;
  background: linear-gradient(90deg, #075eb0, #1c9dc8 52%, #0a7d36);
}

.site-public .sch-form-grid,
.helpdesk-public .helpdesk-form-grid {
  gap: .95rem;
}

.site-public .sch-field {
  min-width: 0;
}

.site-public .sch-field > span,
.helpdesk-public .sch-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  color: #26394d;
  font-size: .8rem;
  font-weight: 800;
}

.site-public .sch-field input,
.site-public .sch-field select,
.site-public .sch-field textarea,
.helpdesk-public .sch-field input,
.helpdesk-public .sch-field select,
.helpdesk-public .sch-field textarea {
  min-height: 50px;
  border: 1px solid #c7d6e5;
  border-radius: 13px;
  background:
    linear-gradient(180deg, #fbfdff, #f4f8fc);
  color: #0e1a28;
  font-size: .95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.site-public .sch-field textarea,
.helpdesk-public .sch-field textarea {
  min-height: 138px;
  line-height: 1.55;
}

.site-public .sch-field input:hover,
.site-public .sch-field select:hover,
.site-public .sch-field textarea:hover,
.helpdesk-public .sch-field input:hover,
.helpdesk-public .sch-field select:hover,
.helpdesk-public .sch-field textarea:hover {
  border-color: #9eb6ce;
  background: #fff;
}

.site-public .sch-field input:focus,
.site-public .sch-field select:focus,
.site-public .sch-field textarea:focus,
.helpdesk-public .sch-field input:focus,
.helpdesk-public .sch-field select:focus,
.helpdesk-public .sch-field textarea:focus {
  border-color: #075eb0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7, 94, 176, .15), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.site-public .sch-field input:user-invalid,
.site-public .sch-field textarea:user-invalid,
.site-public .sch-field select:user-invalid {
  border-color: rgba(220, 38, 38, .62);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .10);
}

.site-public .sch-form-actions {
  border-top: 1px solid rgba(215, 227, 238, .8);
  padding-top: 1rem;
}

.site-public .sch-form-actions p {
  max-width: 38ch;
  color: #56697b !important;
  font-weight: 600;
}

.site-public .sch-form-actions .sch-btn-primary {
  min-width: 190px;
}

.site-public .sch-page-hero__actions,
.site-public .sch-home-actions,
.site-public .error-shell__actions,
.site-public .helpdesk-invalid__actions {
  align-items: center;
}

.site-public .sch-cta-band {
  border-radius: 24px;
}

.site-public .sch-cta-band .sch-btn-primary {
  background:
    linear-gradient(180deg, #fff, #edf6ff);
  color: #071321;
}

.site-public .sch-cta-band .sch-btn-primary:hover {
  background:
    linear-gradient(180deg, #fff, #dff0ff);
  color: #071321;
}

.site-public .sch-solution-item,
.site-public .sch-showcase-card,
.site-public .sch-project-card,
.site-public .sch-contact-card {
  transition: transform .24s var(--public-ease), border-color .2s var(--public-ease), box-shadow .24s var(--public-ease), background .2s var(--public-ease);
}

.site-public .sch-solution-item:hover,
.site-public .sch-showcase-card:hover,
.site-public .sch-project-card:hover,
.site-public .sch-contact-card:hover {
  transform: translateY(-3px);
}

.helpdesk-public .helpdesk-wizard {
  min-height: min(650px, calc(100dvh - 3rem));
}

.helpdesk-public .helpdesk-wizard__foot {
  background: linear-gradient(180deg, #fff, #f7fbfe);
}

.helpdesk-public .helpdesk-impact label {
  min-height: 104px;
  border-color: #d3dfeb;
  background: linear-gradient(180deg, #fff, #f8fbfe);
}

.helpdesk-public .helpdesk-impact label.is-selected {
  border-color: rgba(10, 125, 54, .58);
  background: linear-gradient(180deg, #f5fbf7, #e8f4ec);
  box-shadow: 0 0 0 4px rgba(10, 125, 54, .09), inset 0 0 0 1px rgba(10, 125, 54, .14);
}

@media (max-width: 900px) {
  .site-public .sch-page-hero__actions,
  .site-public .sch-home-actions,
  .site-public .error-shell__actions,
  .site-public .helpdesk-invalid__actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .site-public .sch-page-hero__actions > *,
  .site-public .sch-home-actions > *,
  .site-public .error-shell__actions > *,
  .site-public .helpdesk-invalid__actions > *,
  .site-public .sch-form-actions .sch-btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-public .scroll-progress {
    display: none;
  }

  .site-public .sch-btn-primary,
  .site-public .sch-btn-outline-green,
  .site-public .sch-btn-ghost,
  .helpdesk-public .crm-primary-btn,
  .helpdesk-public .crm-secondary-btn {
    min-height: 52px;
    padding-inline: 1rem;
  }

  .site-public .sch-form-grid,
  .helpdesk-public .helpdesk-form-grid {
    grid-template-columns: 1fr;
  }

  .site-public .sch-field--full {
    grid-column: auto;
  }

  .site-public .sch-public-form {
    border-radius: 18px;
    padding: 1.05rem;
  }

  .site-public .sch-form-actions {
    display: grid !important;
  }

  .helpdesk-public .helpdesk-impact {
    grid-template-columns: 1fr 1fr;
  }

  .helpdesk-public .helpdesk-wizard__foot {
    grid-template-columns: 1fr;
  }

  .helpdesk-public .helpdesk-wizard__foot span {
    display: none;
  }

  .helpdesk-public .helpdesk-wizard__foot button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .helpdesk-public .helpdesk-impact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .helpdesk-public .helpdesk-shell {
    width: min(100% - 1.4rem, 680px);
    grid-template-columns: minmax(0, 1fr);
  }

  .helpdesk-public .helpdesk-rail,
  .helpdesk-public .helpdesk-wizard,
  .helpdesk-public .helpdesk-invalid {
    min-width: 0;
  }

  .helpdesk-public .helpdesk-rail {
    min-height: auto;
  }

  .helpdesk-public .helpdesk-rail h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .helpdesk-public .helpdesk-portal {
    padding-block: .9rem 1.5rem;
  }

  .helpdesk-public .helpdesk-shell {
    width: min(100% - 1rem, 680px);
  }

  .helpdesk-public .helpdesk-rail {
    border-radius: 16px;
    padding: 1rem;
  }

  .helpdesk-public .helpdesk-rail__meta article {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .helpdesk-public .helpdesk-rail__meta b,
  .helpdesk-public .helpdesk-rail__meta small {
    min-width: 0;
    white-space: normal;
  }

  .helpdesk-public .helpdesk-rail__meta {
    margin-top: 1.4rem;
    padding-top: 0;
  }

  .helpdesk-public .helpdesk-rail h1 {
    font-size: 1.9rem;
    line-height: 1;
  }

  .helpdesk-public .helpdesk-wizard {
    min-height: auto;
  }

  .helpdesk-public .helpdesk-wizard__top {
    display: grid;
  }

  .helpdesk-public .helpdesk-step-count {
    width: max-content;
  }
}

.site-public {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  .site-public {
    overflow-x: clip;
  }
}

.helpdesk-public .helpdesk-portal,
.helpdesk-public .helpdesk-shell {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  .helpdesk-public .helpdesk-portal,
  .helpdesk-public .helpdesk-shell {
    overflow-x: clip;
  }
}

@media (max-width: 900px) and (scripting: enabled) {
  .helpdesk-public [data-reveal="left"]:not(.is-visible),
  .helpdesk-public [data-reveal="right"]:not(.is-visible) {
    transform: translateY(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sch-submit-spinner {
    animation: none;
  }

  .site-public .sch-solution-item:hover,
  .site-public .sch-showcase-card:hover,
  .site-public .sch-project-card:hover,
  .site-public .sch-contact-card:hover,
  .site-public .sch-btn-primary:hover,
  .site-public .sch-btn-outline-green:hover,
  .site-public .sch-btn-ghost:hover,
  .helpdesk-public .crm-primary-btn:hover,
  .helpdesk-public .crm-secondary-btn:hover {
    transform: none;
  }
}

/* =========================================================================
   Public UI v3: refined CTA system + topbar fix (Jun 2026)
   Fixes the green "Reportar soporte 24/7" pill overflowing the 36px topbar
   and gives the whole button family a cleaner, less glossy, more premium look.
   ========================================================================= */

/* --- Topbar support CTA: fit the bar, add live "24/7" pulse --- */
.site-public .public-topbar__cta {
  align-self: center;
  min-height: 0;
  height: 28px;
  gap: .5rem;
  padding: 0 .95rem 0 .85rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: linear-gradient(180deg, #0aa64c 0%, #06732f 100%);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .005em;
  white-space: nowrap;
  box-shadow:
    0 6px 14px -8px rgba(7, 130, 59, .72),
    inset 0 1px 0 rgba(255, 255, 255, .24);
  transition:
    transform .18s var(--public-ease),
    box-shadow .18s var(--public-ease),
    background .18s var(--public-ease);
}

.site-public .public-topbar__cta::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e6fff0;
  box-shadow: 0 0 0 0 rgba(230, 255, 240, .65);
  animation: sch-live-pulse 2s var(--public-ease) infinite;
}

.site-public .public-topbar__cta svg {
  width: 15px;
  height: 15px;
}

.site-public .public-topbar__cta:hover {
  background: linear-gradient(180deg, #0cb957 0%, #088038 100%);
  transform: translateY(-1px);
  box-shadow:
    0 10px 20px -8px rgba(7, 130, 59, .82),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}

@keyframes sch-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(230, 255, 240, .6); }
  70%  { box-shadow: 0 0 0 6px rgba(230, 255, 240, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 255, 240, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .site-public .public-topbar__cta::before { animation: none; }
}

/* --- Primary (blue): Cotizar / Solicitar cotizacion / Enviar solicitud --- */
.site-public .sch-btn-primary,
.site-public .public-nav__quote,
.helpdesk-public .crm-primary-btn {
  border: 1px solid var(--public-blue-strong);
  background: linear-gradient(180deg, #0d6fb4 0%, #075eb0 72%);
  color: #fff;
  box-shadow:
    0 10px 22px -12px rgba(7, 94, 176, .62),
    inset 0 1px 0 rgba(255, 255, 255, .26);
}

.site-public .sch-btn-primary:hover,
.site-public .public-nav__quote:hover,
.helpdesk-public .crm-primary-btn:hover {
  background: linear-gradient(180deg, #0f78c2 0%, #0666b3 72%);
  transform: translateY(-2px);
  box-shadow:
    0 16px 30px -14px rgba(7, 94, 176, .78),
    inset 0 1px 0 rgba(255, 255, 255, .32);
}

/* --- Outline green: Reportar soporte (hero) --- */
.site-public .sch-btn-outline-green {
  border: 1.5px solid rgba(7, 130, 59, .5);
  background: #fff;
  color: var(--public-green-strong);
  box-shadow: 0 8px 20px -16px rgba(6, 74, 32, .5);
}

.site-public .sch-btn-outline-green:hover {
  border-color: transparent;
  background: linear-gradient(180deg, #0aa64c 0%, #06732f 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -16px rgba(10, 125, 54, .68);
}

/* --- Neutral: Acceso CRM / ghost --- */
.site-public .public-nav__crm,
.site-public .sch-btn-ghost {
  border: 1px solid #d3e0ee;
  background: #fff;
  color: var(--public-blue-strong);
  box-shadow: 0 8px 18px -16px rgba(7, 19, 33, .4);
}

.site-public .public-nav__crm:hover,
.site-public .sch-btn-ghost:hover {
  border-color: #0b1521;
  background: #0b1521;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -18px rgba(7, 19, 33, .55);
}
