:root {
  --asser-primary: #7d445e;
  --asser-secondary: #4b2338;
  --asser-deep: #2c1f29;
  --asser-accent: #b45f86;
  --asser-blush: #c98faa;
  --asser-forest: #284d47;
  --asser-muted: #726b67;
  --asser-border: #ded2d7;
  --asser-alt-bg: #f4e9ed;
  --asser-sand: #f6f1ec;
  --asser-ice: #edf4f2;
  --asser-text: #252129;
  --background: #fbf8f5;
  --shadow-soft: 0 20px 55px rgba(75, 35, 56, 0.09);
  --shadow-deep: 0 30px 90px rgba(44, 31, 41, 0.18);
}

/* Home 2026 v3: a simpler path from need to action. */
.portal-home-v3 {
  color: var(--asser-text);
  background: #fbf9f7;
}

.portal-home-v3 a:focus-visible {
  outline: 3px solid rgba(125, 68, 94, 0.45);
  outline-offset: 4px;
}

.portal-home-v3__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 4.5rem;
  width: min(1240px, calc(100% - 3rem));
  min-height: 690px;
  margin: 0 auto;
  padding: 5.5rem 0 6.5rem;
}

.portal-home-v3__hero > * {
  min-width: 0;
}

.portal-home-v3__hero-copy h1 {
  max-width: 760px;
  margin: 1rem 0 0;
  color: #332a35;
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

.portal-home-v3__hero-copy h1 em {
  color: var(--asser-primary);
  font-style: normal;
}

.portal-home-v3__hero-copy > p {
  max-width: 650px;
  margin: 1.6rem 0 0;
  color: var(--asser-muted);
  font-size: 18px;
  line-height: 1.72;
}

.portal-home-v3__hero .portal-hero__actions {
  align-items: center;
  margin-top: 2rem;
}

.portal-home-v3__hero .portal-button,
.portal-home-v3__ready .portal-button {
  border-radius: 999px;
  background: var(--asser-secondary);
  box-shadow: 0 12px 28px rgba(75, 35, 56, 0.2);
}

.portal-home-v3__text-link,
.portal-home-v3__ready-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.2rem;
  color: var(--asser-secondary) !important;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.portal-home-v3__text-link span,
.portal-home-v3__ready-link span {
  transition: transform 180ms ease;
}

.portal-home-v3__text-link:hover span,
.portal-home-v3__ready-link:hover span {
  transform: translateX(4px);
}

.portal-home-v3__hero .portal-hero__reassurance {
  margin-top: 1.3rem;
}

.home-ai-stage {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #2d222c;
  box-shadow: 0 30px 80px rgba(44, 31, 41, 0.2);
  color: #fff;
  isolation: isolate;
}

.home-ai-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 42px 42px;
}

.home-ai-stage__top,
.home-ai-stage__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(18, 14, 18, 0.3);
}

.home-ai-stage__top span,
.home-ai-stage__caption span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  font-weight: 850;
}

.home-ai-stage__top span {
  color: #c3e5d8;
}

.home-ai-stage__top i,
.portal-home-v3__ready-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ed3bd;
  box-shadow: 0 0 0 6px rgba(158, 211, 189, 0.1);
  animation: home-v3-pulse 2.4s ease-in-out infinite;
}

.home-ai-stage__top small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-ai-stage__workspace {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 156px minmax(120px, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 335px;
  padding: 2rem 1.25rem;
}

.home-ai-stage__documents {
  display: grid;
  gap: 0.55rem;
}

.home-ai-stage__documents span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 760;
}

.home-ai-stage__documents span:first-child {
  border: 1px solid rgba(201, 143, 170, 0.3);
  border-radius: 6px;
  background: rgba(180, 95, 134, 0.15);
  color: #fff;
}

.home-ai-stage__documents b {
  display: grid;
  width: 32px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #efc6da;
  font-size: 8px;
}

.home-ai-stage__core {
  position: relative;
  display: grid;
  min-height: 210px;
  place-items: center;
}

.home-ai-stage__orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.home-ai-stage__orbit::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0a9cc;
  box-shadow: 0 0 12px rgba(240, 169, 204, 0.8);
}

.home-ai-stage__orbit--outer {
  width: 146px;
  height: 146px;
  animation: home-v3-orbit 8s linear infinite;
}

.home-ai-stage__orbit--inner {
  width: 104px;
  height: 104px;
  border-color: rgba(158, 211, 189, 0.4);
  animation: home-v3-orbit-reverse 6s linear infinite;
}

.home-ai-stage__orbit--inner::before {
  top: auto;
  bottom: -4px;
  background: #9ed3bd;
  box-shadow: 0 0 12px rgba(158, 211, 189, 0.8);
}

.home-ai-stage__core .home-ai-stage__gem {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
}

.home-ai-stage__result {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 0 1rem 1rem;
  border-left: 2px solid #9ed3bd;
}

.home-ai-stage__result small {
  color: #9ed3bd;
  font-size: 9px;
  font-weight: 900;
}

.home-ai-stage__result strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.home-ai-stage__result span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.home-ai-stage__caption {
  justify-content: flex-start;
  gap: 1.5rem;
  min-height: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
}

.home-ai-stage__caption span {
  color: rgba(255, 255, 255, 0.64);
}

.home-ai-stage__caption i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ed3bd;
}

.portal-home-v3__start,
.portal-home-v3__resources {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 6.5rem 0;
}

.portal-home-v3__section-heading {
  max-width: 790px;
}

.portal-home-v3__section-heading h2,
.portal-home-v3__flow-heading h2,
.portal-home-v3__resources-heading h2,
.portal-home-v3__questions-intro h2,
.portal-home-v3__ready h2 {
  margin: 0.6rem 0 0;
  color: var(--asser-secondary);
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.portal-home-v3__start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin-top: 3.5rem;
  border-block: 1px solid rgba(75, 35, 56, 0.15);
}

.portal-home-v3__start-primary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1rem;
  padding: 2.5rem 3rem 2.5rem 0;
  border-right: 1px solid rgba(75, 35, 56, 0.15);
}

.portal-home-v3__start-primary > span,
.portal-home-v3__start-links > a > span {
  color: var(--asser-primary);
  font-size: 11px;
  font-weight: 900;
}

.portal-home-v3__start-primary small,
.portal-home-v3__start-links small,
.portal-home-v3__steps small {
  color: var(--asser-primary);
  font-size: 9px;
  font-weight: 900;
}

.portal-home-v3__start-primary h3 {
  max-width: 470px;
  margin: 0.55rem 0 0;
  color: var(--asser-secondary);
  font-size: 30px;
  line-height: 1.14;
}

.portal-home-v3__start-primary p {
  max-width: 500px;
  margin: 1rem 0 0;
  color: var(--asser-muted);
  font-size: 14px;
  line-height: 1.7;
}

.portal-home-v3__start-primary a,
.portal-home-v3__flow-heading > a,
.portal-home-v3__questions-intro > a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  color: var(--asser-secondary) !important;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.portal-home-v3__start-links {
  display: grid;
}

.portal-home-v3__start-links > a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 0.75rem;
  min-height: 112px;
  padding: 1.25rem 0 1.25rem 2.5rem;
  border-bottom: 1px solid rgba(75, 35, 56, 0.12);
  color: var(--asser-secondary) !important;
  text-decoration: none;
  transition: padding-left 180ms ease, background-color 180ms ease;
}

.portal-home-v3__start-links > a:last-child {
  border-bottom: 0;
}

.portal-home-v3__start-links > a:hover {
  padding-left: 2.8rem;
  background: rgba(244, 233, 237, 0.48);
}

.portal-home-v3__start-links div {
  display: grid;
  gap: 0.4rem;
}

.portal-home-v3__start-links strong {
  font-size: 16px;
  line-height: 1.3;
}

.portal-home-v3__start-links b {
  font-size: 18px;
}

.portal-home-v3__flow {
  padding: 6.5rem max(1.5rem, calc((100% - 1120px) / 2));
  background: var(--asser-ice);
}

.portal-home-v3__flow-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 6rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.portal-home-v3__flow-heading {
  position: sticky;
  top: 2rem;
}

.portal-home-v3__flow-heading h2 {
  color: #244a44;
  font-size: 42px;
}

.portal-home-v3__flow-heading > a {
  color: #244a44 !important;
}

.portal-home-v3__steps {
  border-top: 1px solid rgba(40, 77, 71, 0.2);
}

.portal-home-v3__steps article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid rgba(40, 77, 71, 0.2);
}

.portal-home-v3__steps article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(40, 77, 71, 0.2);
  border-radius: 50%;
  color: var(--asser-forest);
  font-size: 11px;
  font-weight: 900;
}

.portal-home-v3__steps h3 {
  margin: 0.35rem 0 0.55rem;
  color: #244a44;
  font-size: 22px;
  line-height: 1.2;
}

.portal-home-v3__steps p {
  margin: 0;
  color: #58706c;
  font-size: 14px;
  line-height: 1.65;
}

.portal-home-v3__resources {
  padding-block: 7rem;
}

.portal-home-v3__resources-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: end;
  gap: 4rem;
}

.portal-home-v3__resources-heading > p {
  margin: 0;
  color: var(--asser-muted);
  font-size: 15px;
  line-height: 1.75;
}

.portal-home-v3__resource-list {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(75, 35, 56, 0.14);
}

.portal-home-v3__resource-list > a {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.6fr) 100px 24px;
  align-items: center;
  gap: 1.25rem;
  min-height: 118px;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(75, 35, 56, 0.14);
  color: var(--asser-secondary) !important;
  text-decoration: none;
}

.portal-home-v3__resource-list > a > span {
  font-size: 22px;
  font-weight: 800;
}

.portal-home-v3__resource-list strong {
  color: #61575c;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.65;
}

.portal-home-v3__resource-list small {
  color: var(--asser-primary);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-home-v3__resource-list b {
  font-size: 19px;
  transition: transform 180ms ease;
}

.portal-home-v3__resource-list > a:hover b {
  transform: translateX(5px);
}

.portal-home-v3__questions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 6rem;
  padding: 6.5rem max(1.5rem, calc((100% - 1120px) / 2));
  background: var(--asser-alt-bg);
}

.portal-home-v3__questions-intro h2 {
  font-size: 42px;
}

.portal-home-v3__questions-intro > p:not(.portal-kicker) {
  max-width: 480px;
  margin: 1.25rem 0 0;
  color: var(--asser-muted);
  font-size: 14px;
  line-height: 1.7;
}

.portal-home-v3__question-list {
  border-top: 1px solid rgba(75, 35, 56, 0.16);
}

.portal-home-v3__question-list > a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 1rem;
  min-height: 112px;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(75, 35, 56, 0.16);
  color: var(--asser-secondary) !important;
  text-decoration: none;
}

.portal-home-v3__question-list > a > span {
  color: var(--asser-primary);
  font-size: 11px;
  font-weight: 900;
}

.portal-home-v3__question-list div {
  display: grid;
  gap: 0.45rem;
}

.portal-home-v3__question-list small {
  color: var(--asser-muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.portal-home-v3__question-list strong {
  font-size: 15px;
  line-height: 1.4;
}

.portal-home-v3__question-list b {
  font-size: 18px;
}

.portal-home-v3__ready {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 5rem;
  padding: 6rem max(1.5rem, calc((100% - 1120px) / 2));
  background: #2d222c;
  color: #fff;
}

.portal-home-v3__ready .portal-kicker,
.portal-home-v3__ready h2 {
  color: #fff;
}

.portal-home-v3__ready h2 {
  max-width: 720px;
  font-size: 46px;
}

.portal-home-v3__ready > div:first-child > p:not(.portal-kicker) {
  max-width: 650px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.7;
}

.portal-home-v3__ready .portal-hero__actions {
  align-items: center;
  margin-top: 2rem;
}

.portal-home-v3__ready-link {
  color: #fff !important;
}

.portal-home-v3__ready-status {
  display: grid;
  gap: 1.25rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.portal-home-v3__ready-status > span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #bfe4d5;
  font-size: 10px;
  font-weight: 850;
}

.portal-home-v3__ready-status > strong {
  max-width: 330px;
  color: #fff;
  font-size: 25px;
  line-height: 1.3;
}

.portal-home-v3__ready-status > a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@keyframes home-v3-pulse {
  0%, 100% { opacity: 0.65; box-shadow: 0 0 0 4px rgba(158, 211, 189, 0.08); }
  50% { opacity: 1; box-shadow: 0 0 0 9px rgba(158, 211, 189, 0.02); }
}

@keyframes home-v3-orbit {
  to { transform: rotate(360deg); }
}

@keyframes home-v3-orbit-reverse {
  to { transform: rotate(-360deg); }
}

@media (max-width: 1180px) {
  .portal-home-v3__hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
    gap: 3rem;
  }

  .portal-home-v3__hero-copy h1 {
    font-size: 56px;
  }
}

@media (max-width: 960px) {
  .portal-home-v3__hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .portal-home-v3__hero-copy h1 {
    max-width: 760px;
    font-size: 52px;
  }

  .home-ai-stage {
    width: min(760px, 100%);
  }

  .portal-home-v3__flow-inner,
  .portal-home-v3__questions,
  .portal-home-v3__ready {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .portal-home-v3__flow-heading {
    position: static;
  }

  .portal-home-v3__resources-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portal-home-v3__ready-status {
    padding-top: 2rem;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .portal-home-v3__hero,
  .portal-home-v3__start,
  .portal-home-v3__resources {
    width: min(100% - 2rem, 1120px);
  }

  .portal-home-v3__hero {
    gap: 3rem;
    padding: 4.5rem 0 5rem;
  }

  .portal-home-v3__hero-copy h1 {
    font-size: 46px;
  }

  .portal-home-v3__section-heading h2,
  .portal-home-v3__resources-heading h2 {
    font-size: 40px;
  }

  .portal-home-v3__start-grid {
    grid-template-columns: 1fr;
  }

  .portal-home-v3__start-primary {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(75, 35, 56, 0.15);
  }

  .portal-home-v3__start-links > a {
    padding-left: 0;
  }

  .portal-home-v3__start-links > a:hover {
    padding-left: 0.25rem;
  }

  .portal-home-v3__resource-list > a {
    grid-template-columns: minmax(0, 1fr) auto 24px;
    gap: 0.75rem;
    padding: 1.5rem 0;
  }

  .portal-home-v3__resource-list > a > span {
    grid-column: 1;
    font-size: 20px;
  }

  .portal-home-v3__resource-list strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .portal-home-v3__resource-list small {
    grid-column: 2;
    grid-row: 1;
  }

  .portal-home-v3__resource-list b {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  .portal-home-v3__hero,
  .portal-home-v3__start,
  .portal-home-v3__resources {
    width: min(100% - 1.25rem, 1120px);
  }

  .portal-home-v3__hero {
    padding: 3.5rem 0 4rem;
  }

  .portal-home-v3__hero-copy h1 {
    font-size: 38px;
    line-height: 1.06;
  }

  .portal-home-v3__hero-copy > p {
    font-size: 16px;
  }

  .portal-home-v3__hero .portal-hero__actions,
  .portal-home-v3__ready .portal-hero__actions {
    display: grid;
    align-items: stretch;
  }

  .portal-home-v3__hero .portal-button,
  .portal-home-v3__ready .portal-button {
    width: 100%;
  }

  .portal-home-v3__text-link,
  .portal-home-v3__ready-link {
    justify-content: center;
  }

  .home-ai-stage {
    min-height: 410px;
  }

  .home-ai-stage__workspace {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 0.5rem;
    min-height: 285px;
    padding: 1.2rem 0.85rem;
  }

  .home-ai-stage__result {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.35rem 0.75rem;
    padding: 0.7rem 0 0.7rem 0.8rem;
  }

  .home-ai-stage__result span {
    grid-column: 2;
  }

  .home-ai-stage__core {
    min-height: 150px;
  }

  .home-ai-stage__orbit--outer {
    width: 116px;
    height: 116px;
  }

  .home-ai-stage__orbit--inner {
    width: 84px;
    height: 84px;
  }

  .home-ai-stage__core .home-ai-stage__gem {
    width: 58px;
    height: 58px;
  }

  .home-ai-stage__caption {
    gap: 1rem;
    min-height: 58px;
  }

  .portal-home-v3__start,
  .portal-home-v3__resources {
    padding-block: 5rem;
  }

  .portal-home-v3__section-heading h2,
  .portal-home-v3__flow-heading h2,
  .portal-home-v3__resources-heading h2,
  .portal-home-v3__questions-intro h2,
  .portal-home-v3__ready h2 {
    font-size: 34px;
  }

  .portal-home-v3__start-grid,
  .portal-home-v3__resource-list {
    margin-top: 2.5rem;
  }

  .portal-home-v3__start-primary {
    grid-template-columns: 34px minmax(0, 1fr);
    padding-block: 2rem;
  }

  .portal-home-v3__start-primary h3 {
    font-size: 25px;
  }

  .portal-home-v3__start-links > a {
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    min-height: 100px;
  }

  .portal-home-v3__flow,
  .portal-home-v3__questions,
  .portal-home-v3__ready {
    padding: 5rem 0.625rem;
  }

  .portal-home-v3__questions {
    gap: 2.8rem;
  }

  .portal-home-v3__question-list > a {
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    gap: 0.65rem;
  }

  .portal-home-v3__ready-status > strong {
    font-size: 22px;
  }
}

@media (max-width: 390px) {
  .portal-home-v3__hero-copy h1 {
    font-size: 33px;
  }

  .home-ai-stage__documents span {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.4rem;
    font-size: 9px;
  }

  .home-ai-stage__documents b {
    width: 28px;
    height: 30px;
  }

  .home-ai-stage__caption {
    justify-content: space-between;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-home-v3 *,
  .portal-home-v3 *::before,
  .portal-home-v3 *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Home 2026: overview of the complete ASSER AI experience. */
.portal-home-v2 {
  color: var(--asser-text);
  background: #fbf9f7;
}

.portal-home-v2__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(430px, 0.82fr);
  align-items: center;
  gap: 3.5rem;
  width: min(1320px, calc(100% - 3rem));
  min-height: 720px;
  margin: 0 auto;
  padding: 5.5rem 0 6rem;
}

.portal-home-v2__hero > * {
  min-width: 0;
}

.portal-home-v2__hero-copy {
  position: relative;
  z-index: 2;
}

.portal-home-v2__hero-copy h1 {
  max-width: none;
  margin: 1.1rem 0 0;
  color: #332a35;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.portal-home-v2__hero-copy h1 span {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.portal-home-v2__hero-copy h1 em {
  color: var(--asser-primary);
  font-style: normal;
}

.portal-home-v2__hero-copy > p {
  max-width: 650px;
  margin: 1.6rem 0 0;
  color: var(--asser-muted);
  font-size: 18px;
  line-height: 1.72;
}

.portal-home-v2__hero .portal-hero__actions {
  margin-top: 2rem;
}

.portal-home-v2__hero .portal-hero__reassurance {
  margin-top: 1.5rem;
}

.ai-live-console {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #2d222c;
  box-shadow: 0 34px 90px rgba(44, 31, 41, 0.22);
  color: #fff;
  isolation: isolate;
}

.ai-live-console::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 38px 38px;
}

.ai-live-console::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(125deg, rgba(125, 68, 94, 0.42), transparent 48%, rgba(40, 77, 71, 0.38));
}

.ai-live-console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(25, 20, 25, 0.42);
  font-size: 11px;
  font-weight: 850;
}

.ai-live-console__identity,
.ai-live-console__state {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.ai-live-console__identity {
  letter-spacing: 0;
}

.ai-live-console__identity i,
.portal-home-v2__final-status > span i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ed3bd;
  box-shadow: 0 0 0 6px rgba(158, 211, 189, 0.1);
  animation: home-ai-pulse 2.4s ease-in-out infinite;
}

.ai-live-console__state {
  color: #bfe4d5;
  font-size: 10px;
  text-transform: uppercase;
}

.ai-live-console__workspace {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(126px, 0.78fr) minmax(128px, 0.9fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 350px;
  padding: 1.5rem 1.15rem 1rem;
}

.ai-live-console__files,
.ai-live-console__insights {
  min-width: 0;
}

.ai-live-console__files > p,
.ai-live-console__insights > p {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 900;
}

.ai-live-console__files > div {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 7px;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.ai-live-console__files > div.is-active {
  border: 1px solid rgba(201, 143, 170, 0.34);
  border-radius: 6px;
  background: rgba(180, 95, 134, 0.18);
  color: #fff;
}

.ai-live-console__files b {
  display: grid;
  width: 30px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: #f1dbe6;
  font-size: 8px;
}

.ai-live-console__files span {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-live-console__files i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ed3bd;
}

.ai-live-core {
  position: relative;
  display: grid;
  min-height: 240px;
  place-items: center;
}

.ai-live-core__orbit,
.ai-live-core__pulse {
  position: absolute;
  border-radius: 50%;
}

.ai-live-core__orbit {
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ai-live-core__orbit--one {
  width: 154px;
  height: 154px;
  animation: home-ai-orbit 8s linear infinite;
}

.ai-live-core__orbit--one::before,
.ai-live-core__orbit--two::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0a9cc;
  box-shadow: 0 0 12px rgba(240, 169, 204, 0.85);
}

.ai-live-core__orbit--two {
  width: 116px;
  height: 116px;
  border-color: rgba(158, 211, 189, 0.38);
  animation: home-ai-orbit-reverse 6.5s linear infinite;
}

.ai-live-core__orbit--two::before {
  top: auto;
  bottom: -4px;
  background: #9ed3bd;
  box-shadow: 0 0 12px rgba(158, 211, 189, 0.85);
}

.ai-live-core__pulse {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  animation: home-ai-breathe 2.8s ease-in-out infinite;
}

.ai-live-core__gem {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
}

.ai-live-core small {
  position: absolute;
  bottom: 13px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 780;
  white-space: nowrap;
}

.ai-live-console__insights > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.ai-live-console__insights span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.ai-live-console__insights strong {
  color: #fff;
  font-size: 11px;
}

.ai-live-console__flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.9rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
}

.ai-live-console__flow span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-size: 8px;
  font-weight: 760;
  white-space: nowrap;
}

.ai-live-console__flow i {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.ai-live-console__flow .is-complete {
  color: #bfe4d5;
}

.ai-live-console__flow .is-complete i {
  border-color: #9ed3bd;
  background: #9ed3bd;
}

.ai-live-console__flow .is-current {
  color: #f4c9dd;
}

.ai-live-console__flow .is-current i {
  border-color: #f0a9cc;
  background: #f0a9cc;
  box-shadow: 0 0 0 5px rgba(240, 169, 204, 0.1);
  animation: home-ai-pulse 2s ease-in-out infinite;
}

.ai-live-console__signal {
  position: absolute;
  right: 1.2rem;
  bottom: 5.3rem;
  display: flex;
  align-items: end;
  gap: 3px;
  height: 22px;
}

.ai-live-console__signal span {
  width: 2px;
  height: 20%;
  background: rgba(158, 211, 189, 0.7);
  animation: home-ai-signal 1.2s ease-in-out infinite alternate;
}

.ai-live-console__signal span:nth-child(2),
.ai-live-console__signal span:nth-child(6) { animation-delay: 0.15s; }
.ai-live-console__signal span:nth-child(3),
.ai-live-console__signal span:nth-child(7) { animation-delay: 0.3s; }
.ai-live-console__signal span:nth-child(4),
.ai-live-console__signal span:nth-child(8) { animation-delay: 0.45s; }

.portal-home-v2__proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1320px, calc(100% - 3rem));
  margin: 0 auto;
  border-block: 1px solid rgba(75, 35, 56, 0.12);
}

.portal-home-v2__proof > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.6rem 1.35rem;
}

.portal-home-v2__proof > div + div {
  border-left: 1px solid rgba(75, 35, 56, 0.12);
}

.portal-home-v2__proof strong {
  color: var(--asser-secondary);
  font-size: 30px;
  line-height: 1;
}

.portal-home-v2__proof span {
  color: var(--asser-muted);
  font-size: 12px;
  line-height: 1.4;
}

.portal-home-v2 .portal-section {
  width: min(1180px, calc(100% - 3rem));
}

.portal-home-v2__split-heading,
.portal-home-v2__explore-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: 4rem;
}

.portal-home-v2__split-heading h2,
.portal-home-v2__explore-heading h2,
.portal-home-v2__questions h2,
.portal-home-v2__final-copy h2 {
  margin: 0.65rem 0 0;
  color: var(--asser-secondary);
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

.portal-home-v2__split-heading > p,
.portal-home-v2__explore-heading > p {
  margin: 0;
  color: var(--asser-muted);
  font-size: 15px;
  line-height: 1.75;
}

.portal-home-v2__capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3.5rem;
  overflow: hidden;
  border: 1px solid rgba(75, 35, 56, 0.12);
  border-radius: 8px;
  background: rgba(75, 35, 56, 0.12);
}

.portal-home-v2__capability-grid article {
  min-height: 270px;
  padding: 1.6rem;
  background: #fff;
}

.portal-home-v2__capability-grid article > span {
  display: block;
  margin-bottom: 4.5rem;
  color: var(--asser-primary);
  font-size: 11px;
  font-weight: 900;
}

.portal-home-v2__capability-grid h3 {
  margin: 0 0 0.75rem;
  color: var(--asser-secondary);
  font-size: 20px;
  line-height: 1.2;
}

.portal-home-v2__capability-grid p {
  margin: 0;
  color: var(--asser-muted);
  font-size: 14px;
  line-height: 1.65;
}

.portal-home-v2__explore {
  padding: 7rem max(1.5rem, calc((100% - 1180px) / 2));
  background: #30252f;
  color: #fff;
}

.portal-home-v2__explore-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.portal-home-v2__explore .portal-kicker,
.portal-home-v2__explore-heading h2 {
  color: #fff;
}

.portal-home-v2__explore-heading > p {
  color: rgba(255, 255, 255, 0.66);
}

.portal-home-v2__area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.portal-home-v2__area {
  position: relative;
  display: flex;
  min-height: 310px;
  padding: 1.5rem;
  flex-direction: column;
  background: #382b37;
  color: #fff;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.portal-home-v2__area:hover,
.portal-home-v2__area:focus-visible {
  z-index: 1;
  background: #493545;
  transform: translateY(-3px);
}

.portal-home-v2__area:focus-visible {
  outline: 3px solid #f0a9cc;
  outline-offset: -3px;
}

.portal-home-v2__area-number {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 2.7rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 850;
}

.portal-home-v2__area small {
  margin-bottom: 0.55rem;
  color: #e2a6c3;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.portal-home-v2__area--green small { color: #9ed3bd; }
.portal-home-v2__area--rose small { color: #f0a9cc; }
.portal-home-v2__area--ink small { color: #d4cbd2; }

.portal-home-v2__area h3 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.15;
}

.portal-home-v2__area > p {
  margin: 0.85rem 0 1.6rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.65;
}

.portal-home-v2__area > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-home-v2__area > div strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.portal-home-v2__area > div b {
  color: #fff;
  font-size: 18px;
  transition: transform 180ms ease;
}

.portal-home-v2__area:hover > div b {
  transform: translateX(4px);
}

.portal-home-v2__steps {
  display: grid;
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(75, 35, 56, 0.14);
}

.portal-home-v2__steps article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid rgba(75, 35, 56, 0.14);
}

.portal-home-v2__steps article > span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-ice);
  color: var(--asser-forest);
  font-size: 13px;
  font-weight: 900;
}

.portal-home-v2__steps small {
  color: var(--asser-primary);
  font-size: 10px;
  font-weight: 900;
}

.portal-home-v2__steps h3 {
  margin: 0.35rem 0 0.5rem;
  color: var(--asser-secondary);
  font-size: 22px;
}

.portal-home-v2__steps p {
  max-width: 720px;
  margin: 0;
  color: var(--asser-muted);
  font-size: 14px;
  line-height: 1.65;
}

.portal-home-v2__questions {
  padding-top: 2rem;
}

.portal-home-v2__questions .portal-faq-preview__heading h2 {
  max-width: 720px;
}

.portal-home-v2__questions .portal-faq-preview__heading p {
  max-width: 700px;
}

.portal-home-v2__questions .faq-preview-card {
  border-radius: 8px;
}

.portal-home-v2__final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: 4rem;
  width: min(1320px, calc(100% - 3rem));
  margin: 0 auto 6rem;
  padding: 4rem;
  border-radius: 8px;
  background: #2d222c;
  color: #fff;
  box-shadow: 0 30px 80px rgba(44, 31, 41, 0.18);
}

.portal-home-v2__final-copy h2 {
  max-width: 760px;
  color: #fff;
}

.portal-home-v2__final-copy .portal-kicker {
  color: #efb6d2;
}

.portal-home-v2__final-copy > p:last-of-type {
  max-width: 690px;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.7;
}

.portal-button--secondary.portal-button--on-dark {
  border-color: rgba(255, 255, 255, 0.62) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

.portal-button--secondary.portal-button--on-dark:hover,
.portal-button--secondary.portal-button--on-dark:focus-visible {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

.portal-home-v2__final-status {
  min-height: 280px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.portal-home-v2__final-status > span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #bfe4d5;
  font-size: 11px;
  font-weight: 850;
}

.portal-home-v2__final-status > strong {
  display: block;
  margin-top: 4.5rem;
  color: #fff;
  font-size: 26px;
  line-height: 1.25;
}

.portal-home-v2__final-status > div {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 42px;
  margin-top: 1.5rem;
}

.portal-home-v2__final-status b {
  width: 4px;
  height: 35%;
  background: #c98faa;
  animation: home-ai-signal 1.3s ease-in-out infinite alternate;
}

.portal-home-v2__final-status b:nth-child(2) { animation-delay: 0.15s; }
.portal-home-v2__final-status b:nth-child(3) { animation-delay: 0.3s; }
.portal-home-v2__final-status b:nth-child(4) { animation-delay: 0.45s; }
.portal-home-v2__final-status b:nth-child(5) { animation-delay: 0.6s; }

@keyframes home-ai-pulse {
  0%, 100% { opacity: 0.65; box-shadow: 0 0 0 4px rgba(158, 211, 189, 0.08); }
  50% { opacity: 1; box-shadow: 0 0 0 9px rgba(158, 211, 189, 0.02); }
}

@keyframes home-ai-orbit {
  to { transform: rotate(360deg); }
}

@keyframes home-ai-orbit-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes home-ai-breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.65; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes home-ai-signal {
  0% { height: 22%; opacity: 0.45; }
  100% { height: 100%; opacity: 1; }
}

@media (max-width: 1280px) {
  .portal-home-v2__hero-copy h1 {
    font-size: 56px;
  }

  .portal-home-v2__hero {
    grid-template-columns: minmax(0, 1.14fr) minmax(410px, 0.86fr);
    gap: 2.5rem;
  }
}

@media (max-width: 1080px) {
  .portal-home-v2__hero {
    grid-template-columns: 1fr;
    width: min(900px, calc(100% - 3rem));
    padding-top: 4.5rem;
  }

  .portal-home-v2__hero-copy h1 {
    font-size: 64px;
  }

  .portal-home-v2__hero-copy > p {
    max-width: 720px;
  }

  .ai-live-console {
    width: min(760px, 100%);
    min-height: 500px;
  }

  .portal-home-v2__proof,
  .portal-home-v2__capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-home-v2__proof > div:nth-child(3) {
    border-left: 0;
  }

  .portal-home-v2__proof > div:nth-child(n + 3) {
    border-top: 1px solid rgba(75, 35, 56, 0.12);
  }

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

@media (max-width: 820px) {
  .portal-home-v2__hero-copy h1 {
    font-size: 52px;
  }

  .portal-home-v2__split-heading,
  .portal-home-v2__explore-heading,
  .portal-home-v2__final-cta {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portal-home-v2__split-heading h2,
  .portal-home-v2__explore-heading h2,
  .portal-home-v2__questions h2,
  .portal-home-v2__final-copy h2 {
    font-size: 42px;
  }

  .portal-home-v2__final-status {
    min-height: 230px;
  }

  .portal-home-v2__final-status > strong {
    margin-top: 3rem;
  }
}

@media (max-width: 620px) {
  .portal-home-v2__hero,
  .portal-home-v2__proof,
  .portal-home-v2 .portal-section,
  .portal-home-v2__final-cta {
    width: min(100% - 1.25rem, 1180px);
  }

  .portal-home-v2__hero {
    gap: 2.25rem;
    min-height: auto;
    padding: 3.5rem 0 4rem;
  }

  .portal-home-v2__hero-copy h1 {
    font-size: 40px;
    line-height: 1.06;
  }

  .portal-home-v2__hero-copy > p {
    font-size: 16px;
  }

  .portal-home-v2__hero .portal-hero__actions,
  .portal-home-v2__hero .portal-hero__reassurance {
    display: grid;
  }

  .portal-home-v2__hero .portal-button {
    width: 100%;
  }

  .ai-live-console {
    min-height: 470px;
  }

  .ai-live-console__workspace {
    grid-template-columns: minmax(0, 1fr) 142px;
    min-height: 310px;
  }

  .ai-live-console__insights {
    display: none;
  }

  .ai-live-core__orbit--one {
    width: 132px;
    height: 132px;
  }

  .ai-live-core__orbit--two {
    width: 98px;
    height: 98px;
  }

  .ai-live-console__flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .ai-live-console__signal {
    display: none;
  }

  .portal-home-v2__proof,
  .portal-home-v2__capability-grid,
  .portal-home-v2__area-grid {
    grid-template-columns: 1fr;
  }

  .portal-home-v2__proof > div + div {
    border-top: 1px solid rgba(75, 35, 56, 0.12);
    border-left: 0;
  }

  .portal-home-v2__capability-grid article {
    min-height: auto;
  }

  .portal-home-v2__capability-grid article > span {
    margin-bottom: 2.5rem;
  }

  .portal-home-v2__explore {
    padding: 5rem 0.625rem;
  }

  .portal-home-v2__area {
    min-height: 270px;
  }

  .portal-home-v2__steps article {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.85rem;
  }

  .portal-home-v2__steps article > span {
    width: 42px;
    height: 42px;
  }

  .portal-home-v2__split-heading h2,
  .portal-home-v2__explore-heading h2,
  .portal-home-v2__questions h2,
  .portal-home-v2__final-copy h2 {
    font-size: 36px;
  }

  .portal-home-v2__final-cta {
    padding: 1.5rem;
    margin-bottom: 4rem;
  }
}

@media (max-width: 420px) {
  .portal-home-v2__hero-copy h1 {
    font-size: 32px;
  }

  .portal-home-v2__hero-copy h1 span {
    white-space: nowrap;
  }

  .portal-home-v2__hero-copy > p {
    font-size: 15px;
  }

  .ai-live-console__workspace {
    grid-template-columns: 1fr;
    min-height: 340px;
  }

  .ai-live-console__files {
    align-self: start;
  }

  .ai-live-console__files > div {
    min-height: 44px;
  }

  .ai-live-core {
    min-height: 145px;
  }

  .ai-live-core__orbit--one {
    width: 118px;
    height: 118px;
  }

  .ai-live-core__orbit--two {
    width: 88px;
    height: 88px;
  }

  .ai-live-core__gem {
    width: 60px;
    height: 60px;
  }

  .ai-live-core small {
    bottom: -2px;
  }

  .portal-home-v2__split-heading h2,
  .portal-home-v2__explore-heading h2,
  .portal-home-v2__questions h2,
  .portal-home-v2__final-copy h2 {
    font-size: 32px;
  }
}

@media (max-width: 360px) {
  .portal-home-v2__hero-copy h1 {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-live-console *,
  .portal-home-v2__final-status *,
  .portal-home-v2__area {
    animation: none !important;
    transition: none !important;
  }
}

/* Document examples */
.document-examples-page {
  width: min(1180px, calc(100% - 2rem));
  padding-bottom: 5rem;
}

.document-examples-hero {
  max-width: 820px;
  padding: 4.5rem 0 2.25rem;
}

.document-examples-hero > p:last-child {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--asser-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.document-examples {
  display: grid;
  gap: 2rem;
}

.document-example {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid rgba(75, 35, 56, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 55px rgba(75, 35, 56, 0.08);
}

.document-example:nth-child(even) {
  border-color: rgba(40, 77, 71, 0.18);
  background: rgba(237, 244, 242, 0.78);
}

.document-example__copy {
  min-width: 0;
}

.document-example__index {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1.15rem;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-forest);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.document-example__label {
  margin: 0 0 0.5rem;
  color: var(--asser-primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.document-example__copy h2 {
  margin: 0;
  color: var(--asser-secondary);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.08;
}

.document-example__copy > p:not(.document-example__label) {
  margin: 1.1rem 0 0;
  color: var(--asser-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.document-example__note {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.4rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--asser-forest);
  background: #edf4f2;
  color: #36534e;
  font-size: 0.76rem;
  line-height: 1.5;
}

.document-example__note strong {
  color: var(--asser-forest);
}

.document-viewer {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(44, 31, 41, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(44, 31, 41, 0.14);
}

.document-viewer:focus-visible {
  outline: 3px solid rgba(125, 68, 94, 0.3);
  outline-offset: 3px;
}

.document-viewer__stage {
  position: relative;
  display: grid;
  height: min(70vh, 680px);
  min-height: 540px;
  place-items: center;
  overflow: hidden;
  background: #e9e6e4;
}

.document-viewer--landscape .document-viewer__stage {
  height: min(52vh, 480px);
  min-height: 380px;
}

.document-viewer__page {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1rem 3.5rem;
  place-items: center;
}

.document-viewer__page[hidden] {
  display: none;
}

.document-viewer__page img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  border: 1px solid rgba(44, 31, 41, 0.08);
  background: #fff;
  box-shadow: 0 12px 30px rgba(44, 31, 41, 0.16);
  object-fit: contain;
}

.document-viewer__page:not([hidden]) img {
  animation: documentPageReveal 220ms ease both;
}

.document-viewer__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(75, 35, 56, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(44, 31, 41, 0.14);
  color: var(--asser-secondary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.document-viewer__arrow:hover,
.document-viewer__arrow:focus-visible {
  border-color: var(--asser-primary);
  background: var(--asser-primary);
  color: #fff;
  outline: none;
}

.document-viewer__arrow:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.document-viewer__arrow--previous {
  left: 0.65rem;
}

.document-viewer__arrow--next {
  right: 0.65rem;
}

.document-viewer__footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0.75rem 1rem;
  color: var(--asser-secondary);
  font-size: 0.75rem;
  font-weight: 800;
}

.document-viewer__counter {
  flex: 0 0 auto;
  color: var(--asser-muted);
  font-weight: 600;
}

.document-viewer__counter strong {
  color: var(--asser-secondary);
}

.document-viewer__progress {
  height: 4px;
  background: rgba(75, 35, 56, 0.1);
}

.document-viewer__progress i {
  display: block;
  height: 100%;
  background: var(--asser-forest);
  transition: width 180ms ease;
}

.document-examples-cta {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(75, 35, 56, 0.16);
  border-bottom: 1px solid rgba(75, 35, 56, 0.16);
}

.document-examples-cta h2 {
  margin: 0.35rem 0 0;
  color: var(--asser-secondary);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

.document-examples-cta p:last-child {
  margin: 0.65rem 0 0;
  color: var(--asser-muted);
  line-height: 1.6;
}

.document-examples-cta .portal-button {
  flex: 0 0 auto;
}

@keyframes documentPageReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .document-example {
    grid-template-columns: 1fr;
  }

  .document-viewer {
    width: min(100%, 620px);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .document-examples-page {
    width: min(100% - 1.25rem, 1180px);
    padding-bottom: 3.5rem;
  }

  .document-examples-hero {
    padding: 3rem 0 1.5rem;
  }

  .document-example {
    gap: 1.25rem;
    padding: 1rem;
  }

  .document-example__copy h2 {
    font-size: clamp(1.65rem, 9vw, 2.1rem);
  }

  .document-viewer__stage {
    height: 500px;
    min-height: 0;
  }

  .document-viewer--landscape .document-viewer__stage {
    height: 350px;
  }

  .document-viewer__page {
    padding: 0.75rem 2.9rem;
  }

  .document-viewer__arrow {
    width: 40px;
    height: 40px;
  }

  .document-viewer__arrow--previous {
    left: 0.35rem;
  }

  .document-viewer__arrow--next {
    right: 0.35rem;
  }

  .document-viewer__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .document-examples-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .document-examples-cta .portal-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .document-viewer__page:not([hidden]) img {
    animation: none;
  }

  .document-viewer__arrow,
  .document-viewer__progress i {
    transition: none;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.asser-ai-plugin-body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(201, 143, 170, 0.13), transparent 26rem),
    radial-gradient(circle at 92% 22%, rgba(40, 77, 71, 0.08), transparent 24rem),
    var(--background);
}

.asser-ai-app,
.asser-ai-site-shell,
.asser-ai-portal,
.asser-ai-staff {
  box-sizing: border-box;
  color: var(--asser-text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

.asser-ai-app *,
.asser-ai-site-shell *,
.asser-ai-portal *,
.asser-ai-staff *,
.asser-ai-app *::before,
.asser-ai-app *::after {
  box-sizing: border-box;
}

.asser-ai-app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 4%, rgba(201, 143, 170, 0.13), transparent 26rem),
    radial-gradient(circle at 92% 22%, rgba(40, 77, 71, 0.08), transparent 24rem),
    var(--background);
}

.asser-ai-app a {
  color: inherit;
}

.asser-ai-app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.7rem;
  min-height: 78px;
  padding: 10px max(1rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(75, 35, 56, 0.09);
  background: rgba(251, 248, 245, 0.88);
  backdrop-filter: blur(18px) saturate(135%);
}

.asser-ai-app-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: #2f2933;
  text-decoration: none;
}

.asser-ai-logo-gem {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px 10px 8px 12px;
  background: linear-gradient(145deg, rgba(255, 174, 219, 0.95), rgba(151, 63, 101, 0.96)), #9b5a76;
  clip-path: polygon(47% 0, 94% 18%, 100% 65%, 55% 100%, 8% 82%, 0 27%);
  box-shadow: inset 9px -8px 14px rgba(73, 26, 48, 0.22), inset -8px 7px 14px rgba(255, 205, 228, 0.48), 0 12px 28px rgba(91, 38, 63, 0.16);
  animation: asserGemTilt 5.5s ease-in-out infinite;
}

.asser-ai-app-logo strong,
.asser-ai-app-logo em {
  display: block;
  line-height: 1;
}

.asser-ai-app-logo strong {
  color: #7b3f5d;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.asser-ai-app-logo em {
  margin-top: 4px;
  color: #8a8588;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.asser-ai-app-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.85rem, 1.8vw, 1.55rem);
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 750;
}

.asser-ai-app-nav a {
  color: #5f565a;
  text-decoration: none;
}

.asser-ai-app-nav a:hover {
  color: var(--asser-primary);
}

.asser-ai-app-nav__cta,
.portal-button,
.asser-ai-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--asser-primary), var(--asser-secondary));
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(75, 35, 56, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.portal-button:hover,
.asser-ai-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(75, 35, 56, 0.27);
}

.portal-button--secondary,
.asser-ai-button:not(.asser-ai-button--primary) {
  border-color: rgba(75, 35, 56, 0.2);
  background: rgba(255, 255, 255, 0.86);
  color: var(--asser-secondary) !important;
  box-shadow: none;
}

.portal-button:disabled,
.asser-ai-button:disabled {
  opacity: 0.65;
  pointer-events: none;
}

.text-link {
  display: inline-flex;
  margin-top: 1.25rem;
  color: var(--asser-primary) !important;
  font-weight: 850;
  text-decoration: none;
}

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

.portal-card {
  padding: 1.35rem;
  border: 1px solid rgba(75, 35, 56, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 35px rgba(75, 35, 56, 0.055);
}

.portal-card--priority {
  border-color: rgba(40, 77, 71, 0.22);
  background: linear-gradient(135deg, rgba(237, 244, 242, 0.96), rgba(255, 255, 255, 0.92));
}

.portal-kicker,
.portal-kicker-row {
  max-width: 100%;
  margin: 0 0 0.8rem;
  color: var(--asser-primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.portal-kicker-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
}

.portal-live-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--asser-forest);
  box-shadow: 0 0 0 6px rgba(40, 77, 71, 0.1);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.portal-title,
.portal-hero__copy h1,
.portal-section__heading h2,
.recommended-layout h2,
.portal-cta h2,
.faq-hero__copy h1,
.guide-document__intro h2,
.asser-ai-upload-hero h1 {
  margin: 0;
  color: var(--asser-secondary);
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.asser-ai-app h1,
.asser-ai-app h2,
.asser-ai-app h3,
.asser-ai-app h4,
.asser-ai-app h5,
.asser-ai-app h6 {
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.portal-title {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.portal-lead {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: var(--asser-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.72;
}

.portal-home {
  overflow-x: clip;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  width: min(1180px, calc(100% - 2rem));
  min-height: 700px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.portal-hero > *,
.recommended-layout > *,
.portal-cta > *,
.faq-hero > * {
  min-width: 0;
}

.portal-hero__copy h1 {
  max-width: 720px;
  font-size: clamp(3.3rem, 6.4vw, 6.4rem);
  line-height: 0.98;
}

.portal-hero__copy h1 em {
  color: var(--asser-primary);
  font-style: normal;
}

.portal-hero__copy > p {
  max-width: 650px;
  margin: 1.6rem 0 0;
  color: var(--asser-muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.72;
}

.portal-hero__actions,
.portal-hero__reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.portal-hero__actions {
  margin-top: 2rem;
}

.portal-hero__reassurance {
  margin-top: 1.5rem;
}

.portal-hero__reassurance span {
  position: relative;
  padding-left: 1rem;
  color: #665c60;
  font-size: 0.76rem;
  font-weight: 750;
}

.portal-hero__reassurance span::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--asser-forest);
}

.analysis-visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 38px;
  background:
    radial-gradient(circle at 90% 8%, rgba(201, 143, 170, 0.32), transparent 24rem),
    linear-gradient(145deg, #271c25, #4b2338 55%, #284d47);
  box-shadow: var(--shadow-deep);
  color: #fff;
}

.analysis-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.analysis-visual__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.analysis-visual__header i,
.analysis-result__status i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #9ed3bd;
  box-shadow: 0 0 0 5px rgba(158, 211, 189, 0.1);
}

.analysis-document {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.75fr);
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
}

.analysis-document__page {
  min-width: 0;
  min-height: 365px;
  padding: 2rem 1.65rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg);
}

.document-line {
  display: block;
  width: 100%;
  height: 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: #e9e2e4;
}

.document-line--short { width: 45%; }
.document-line--medium { width: 72%; }

.document-highlight {
  margin: 2rem -0.35rem;
  padding: 1rem;
  border: 2px solid rgba(125, 68, 94, 0.25);
  border-radius: 12px;
  background: var(--asser-alt-bg);
  color: var(--asser-secondary);
}

.document-highlight small,
.document-highlight strong,
.analysis-result span,
.analysis-result strong {
  display: block;
}

.document-highlight small {
  margin-bottom: 0.35rem;
  color: var(--asser-muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.document-highlight strong {
  font-size: 1.35rem;
}

.analysis-result {
  align-self: center;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.analysis-result > p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.analysis-result > div:not(.analysis-result__status) {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.analysis-result span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
}

.analysis-result strong {
  color: #fff;
  font-size: 0.82rem;
}

.analysis-result__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: #c7eadb;
  font-size: 0.67rem;
  font-weight: 850;
}

.analysis-result__status i {
  width: 0.4rem;
  height: 0.4rem;
}

.analysis-visual__scan {
  position: absolute;
  z-index: 3;
  top: 4.1rem;
  bottom: 1.5rem;
  left: 50%;
  width: 2px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.8), transparent);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.72);
  animation: scan-line 4.8s ease-in-out infinite;
}

.portal-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  padding: 1.1rem 1rem;
  border-block: 1px solid rgba(75, 35, 56, 0.08);
  background: rgba(255, 255, 255, 0.54);
  color: #6a6064;
  font-size: 0.75rem;
  font-weight: 750;
  text-align: center;
}

.portal-trust-strip p {
  margin: 0;
}

.portal-trust-strip span {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--asser-primary);
}

.portal-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.portal-section--tinted {
  width: 100%;
  padding-inline: max(1rem, calc((100% - 1180px) / 2));
  background:
    linear-gradient(rgba(75, 35, 56, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 35, 56, 0.04) 1px, transparent 1px),
    rgba(255, 255, 255, 0.55);
  background-size: 42px 42px, 42px 42px, auto;
}

.portal-section__heading {
  max-width: 760px;
}

.portal-section__heading--center {
  margin-inline: auto;
  text-align: center;
}

.portal-section__heading h2,
.recommended-layout h2,
.portal-cta h2 {
  font-size: clamp(2.3rem, 4.6vw, 4.4rem);
}

.portal-section__heading > p:last-child,
.recommended-layout > div > p,
.portal-cta > div > p:last-child {
  margin: 1.2rem 0 0;
  color: var(--asser-muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.analysis-area-grid,
.portal-info-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.analysis-area-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analysis-area-grid article,
.portal-info-card {
  min-height: 220px;
  padding: 1.45rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
}

.analysis-area-grid article > span,
.portal-process article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 2.4rem;
  border-radius: 50%;
  background: var(--asser-alt-bg);
  color: var(--asser-primary);
  font-size: 0.72rem;
  font-weight: 850;
}

.analysis-area-grid h3,
.portal-process h3,
.portal-info-card h2,
.portal-info-feature h2,
.portal-subtitle {
  margin: 0 0 0.8rem;
  color: var(--asser-secondary);
  font-size: 1.15rem;
  line-height: 1.2;
}

.analysis-area-grid p,
.portal-process p,
.portal-info-card p,
.portal-info-feature p {
  margin: 0;
  color: var(--asser-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.recommended-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.document-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
}

.document-comparison > div {
  min-height: 230px;
  padding: 1.5rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
}

.document-comparison small,
.document-comparison strong,
.document-comparison span {
  display: block;
}

.document-comparison small {
  margin-bottom: 4rem;
  color: var(--asser-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.document-comparison strong {
  margin-bottom: 0.7rem;
  color: var(--asser-secondary);
  line-height: 1.25;
}

.document-comparison span {
  color: var(--asser-muted);
  font-size: 0.8rem;
}

.document-comparison__recommended {
  min-height: 285px !important;
  background: linear-gradient(150deg, var(--asser-secondary), var(--asser-forest)) !important;
  box-shadow: var(--shadow-deep);
  color: #fff;
}

.document-comparison__recommended small,
.document-comparison__recommended span {
  color: rgba(255, 255, 255, 0.68);
}

.document-comparison__recommended strong {
  color: #fff;
}

.portal-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}

.portal-process::before {
  content: "";
  position: absolute;
  top: 1.65rem;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--asser-border), transparent);
}

.portal-process article {
  position: relative;
  padding: 1.2rem 1.5rem;
  text-align: center;
}

.portal-process article > span {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  border: 1px solid var(--asser-border);
  background: var(--background);
}

.portal-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto clamp(5rem, 9vw, 8rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 34px;
  background: linear-gradient(135deg, var(--asser-secondary), var(--asser-forest));
  color: #fff;
  box-shadow: var(--shadow-deep);
}

.portal-cta h2,
.portal-cta .portal-kicker {
  color: #fff;
}

.portal-cta > div > p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.portal-info-page,
.guide-page,
.faq-content {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.portal-info-page--narrow {
  width: min(720px, calc(100% - 2rem));
}

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

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

.portal-info-grid--documents {
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.portal-info-grid--documents .portal-info-card {
  display: flex;
  min-height: 64px;
  justify-content: center;
  flex-direction: column;
  padding: 0.9rem 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.portal-info-grid--documents .portal-info-card p {
  color: var(--asser-text);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
}

.portal-info-grid--documents .portal-card--priority {
  background: linear-gradient(135deg, rgba(237, 244, 242, 0.96), rgba(255, 255, 255, 0.94));
}

.portal-info-grid--documents .portal-badge {
  width: fit-content;
  margin-bottom: 0.45rem;
  padding: 0.25rem 0.58rem;
  font-size: 0.6rem;
}

.portal-info-feature {
  margin-top: 1.25rem;
}

/* Calcolatore pubblico rata (pagina /calcolo-rata/, 30/09/2026). */
.rate-calculator {
  margin: 1.75rem 0;
}

.rate-calculator__field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
}

.rate-calculator__field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--asser-secondary);
  font-weight: 700;
  font-size: 0.85rem;
}

.rate-calculator__input-group {
  position: relative;
  flex: 1 1 220px;
}

.rate-calculator__input-group span {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  color: var(--asser-muted);
  font-weight: 700;
  transform: translateY(-50%);
}

.rate-calculator__input-group input {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.9rem 0.7rem 2rem;
  border: 2px solid rgba(75, 35, 56, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--asser-text);
  font: inherit;
}

.rate-calculator__input-group input:focus {
  border-color: var(--asser-primary);
  outline: 3px solid rgba(125, 68, 94, 0.14);
  outline-offset: 1px;
}

.rate-calculator__error {
  margin: 0.75rem 0 0;
  color: #8f2f3a;
  font-size: 0.85rem;
  font-weight: 600;
}

.rate-calculator__result {
  margin-top: 1.5rem;
}

.rate-calculator__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.rate-calculator__table th,
.rate-calculator__table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--asser-border);
  text-align: left;
}

.rate-calculator__table th {
  color: var(--asser-secondary);
  font-weight: 700;
}

.rate-calculator__empty {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--asser-forest);
  background: var(--asser-ice);
  color: #36534e;
  line-height: 1.5;
}

.rate-calculator__disclaimer {
  margin-top: 1.5rem;
  color: var(--asser-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.rate-calculator [hidden] {
  display: none !important;
}

.portal-badge {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: var(--asser-forest);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-clean-list,
.portal-pill-list,
.guide-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--asser-muted);
  line-height: 1.75;
}

.portal-pill-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.portal-pill-list li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--asser-border);
  border-radius: 16px;
  background: #fff;
  color: var(--asser-text);
  font-size: 0.9rem;
}

.faq-page {
  overflow-x: clip;
}

.faq-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  width: min(1180px, calc(100% - 2rem));
  min-height: 520px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0 3rem;
}

.faq-hero__copy h1 {
  font-size: clamp(2.8rem, 5.6vw, 5.6rem);
  line-height: 1;
}

.faq-hero__copy p:last-child {
  max-width: 700px;
  margin: 1.4rem 0 0;
  color: var(--asser-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.faq-hero__panel {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.faq-hero__metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-hero__metric strong {
  color: var(--asser-secondary);
  font-size: 2.6rem;
}

.faq-hero__metric span,
.faq-hero__panel p {
  color: var(--asser-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.faq-topic-nav {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(75, 35, 56, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.faq-topic-nav::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--asser-primary), var(--asser-forest));
  content: "";
}

.faq-topic-nav__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 1.5rem;
  align-items: end;
  padding: 0.35rem 0.25rem 1rem;
  border-bottom: 1px solid rgba(75, 35, 56, 0.1);
}

.faq-topic-nav__eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--asser-primary);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-topic-nav__header h2 {
  margin: 0;
  color: var(--asser-secondary);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.faq-topic-nav__header p {
  margin: 0;
  color: var(--asser-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.faq-topic-nav__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem;
  padding-top: 1rem;
}

.faq-topic-nav__grid a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 52px;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 8px;
  background: var(--asser-page-bg);
  color: var(--asser-secondary);
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.faq-topic-nav__grid a:hover,
.faq-topic-nav__grid a:focus-visible {
  border-color: rgba(125, 68, 94, 0.42);
  box-shadow: 0 8px 20px rgba(75, 35, 56, 0.08);
  color: var(--asser-primary);
  transform: translateY(-2px);
}

.faq-topic-nav__number {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: #e9f2ef;
  color: var(--asser-forest);
  font-size: 0.66rem;
  font-weight: 900;
}

.faq-topic-nav__label {
  min-width: 0;
}

.faq-search {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 0;
  width: min(980px, calc(100% - 2rem));
  margin: 2rem auto 1.2rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(75, 35, 56, 0.12);
  border-top: 4px solid var(--asser-forest);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(75, 35, 56, 0.1);
}

.faq-search__intro {
  padding: 1.45rem;
  background: var(--asser-secondary);
  color: #fff;
}

.faq-search__intro > span {
  display: block;
  margin-bottom: 0.55rem;
  color: #d9ebe6;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-search__intro h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.12;
}

.faq-search__intro p {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.6;
}

.faq-search__intro strong {
  color: #fff;
}

.faq-search__body {
  align-self: center;
  padding: 1.45rem;
}

.faq-search__body label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--asser-secondary);
  font-size: 0.78rem;
  font-weight: 900;
}

.faq-search__field {
  position: relative;
}

.faq-search input {
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 3rem 0.75rem 0.95rem;
  border: 2px solid rgba(75, 35, 56, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--asser-text);
  font: inherit;
}

.faq-search input:focus {
  border-color: var(--asser-primary);
  outline: 3px solid rgba(125, 68, 94, 0.14);
  outline-offset: 1px;
}

.faq-search [data-faq-clear] {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--asser-alt-bg);
  color: var(--asser-primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.faq-search__body > p {
  margin: 0.6rem 0 0;
  color: var(--asser-muted);
  font-size: 0.78rem;
}

.faq-search__body > .faq-search__empty {
  padding: 0.75rem;
  border-left: 3px solid #b23d4b;
  background: #fff1f2;
  color: #8f2f3a;
  line-height: 1.5;
}

.faq-search__chat-hint {
  display: flex;
  grid-column: 1 / -1;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid rgba(40, 77, 71, 0.14);
  background: #edf4f2;
}

.faq-search__chat-hint > span {
  display: grid;
  flex: 0 0 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-forest);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.faq-search__chat-hint p {
  margin: 0;
  color: #36534e;
  font-size: 0.78rem;
  line-height: 1.5;
}

.faq-category[hidden],
.faq-disclosure[hidden],
.faq-topic-nav a[hidden],
.faq-search [hidden] {
  display: none !important;
}

.faq-content {
  width: min(980px, calc(100% - 2rem));
}

.faq-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 1.15rem;
  border: 1px solid rgba(40, 77, 71, 0.16);
  border-radius: 22px;
  background: rgba(237, 244, 242, 0.82);
}

.faq-notice > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-forest);
  color: #fff;
  font-weight: 900;
}

.faq-notice strong,
.faq-category__header h2 {
  color: var(--asser-secondary);
}

.faq-notice p,
.faq-category__header p {
  margin: 0.35rem 0 0;
  color: var(--asser-muted);
  line-height: 1.65;
}

.faq-category + .faq-category {
  margin-top: 4rem;
}

.faq-category__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.faq-category__header > span {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-alt-bg);
  color: var(--asser-primary);
  font-weight: 850;
}

.faq-category__header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.faq-category__header small {
  display: block;
  margin-top: 0.55rem;
  color: var(--asser-forest);
  font-size: 0.72rem;
  font-weight: 800;
}

.faq-accordion {
  display: grid;
  gap: 0.8rem;
}

.faq-disclosure {
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.faq-disclosure summary {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.9rem;
  min-height: 82px;
  padding: 1rem 1.1rem;
  color: var(--asser-secondary);
  font-size: 0.95rem;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}

.faq-disclosure summary::-webkit-details-marker {
  display: none;
}

.faq-disclosure summary::after {
  content: "+";
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-alt-bg);
  color: var(--asser-primary);
}

.faq-disclosure[open] summary::after {
  content: "-";
}

.faq-disclosure__number {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-ice);
  color: var(--asser-forest);
  font-size: 0.72rem;
}

.faq-disclosure > p {
  margin: 0;
  padding: 0 1.3rem 1.35rem 4.6rem;
  color: var(--asser-muted);
  font-size: 0.9rem;
  line-height: 1.72;
}

.guide-page {
  width: min(1080px, calc(100% - 2rem));
}

.guide-index {
  position: sticky;
  top: 90px;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 3rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.guide-index span {
  color: var(--asser-primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-index div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.guide-index a {
  color: var(--asser-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.guide-documents {
  display: grid;
  gap: 1.4rem;
}

.guide-document {
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.guide-document__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
}

.guide-document__intro h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.guide-document__intro p {
  color: var(--asser-muted);
  line-height: 1.72;
}

.guide-document__meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.5rem;
}

.guide-document__meta span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-alt-bg);
  color: var(--asser-primary);
  font-weight: 850;
}

.guide-document__meta small {
  color: var(--asser-muted);
  font-size: 0.7rem;
}

.guide-download {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--asser-primary);
  border-radius: 999px;
  background: var(--asser-primary);
  box-shadow: 0 12px 28px rgba(75, 35, 56, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.guide-download b {
  font-size: 1rem;
  line-height: 1;
}

.guide-download:hover,
.guide-download:focus-visible {
  background: var(--asser-secondary);
  box-shadow: 0 16px 34px rgba(75, 35, 56, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.guide-download:focus-visible {
  outline: 3px solid rgba(126, 63, 93, 0.28);
  outline-offset: 3px;
}

.guide-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.guide-badges span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(244, 233, 237, 0.9);
  color: var(--asser-primary);
  font-size: 0.72rem;
  font-weight: 850;
}

.guide-block {
  padding-top: 1rem;
  border-top: 1px solid rgba(75, 35, 56, 0.08);
}

.guide-block h3 {
  margin: 0 0 0.5rem;
  color: var(--asser-secondary);
}

.guide-block p {
  margin: 0;
  color: var(--asser-muted);
  line-height: 1.7;
}

.asser-ai-upload-hero {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 0 1rem;
}

.asser-ai-upload-hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.asser-ai-upload-hero p:last-child {
  max-width: 720px;
  color: var(--asser-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.asser-ai-portal {
  width: min(980px, calc(100% - 2rem));
  margin: 1.5rem auto clamp(4rem, 7vw, 6rem);
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.asser-ai-public-upload {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.asser-ai-upload-guide,
.asser-ai-upload-form {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(75, 35, 56, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.asser-ai-upload-guide h2 {
  margin: 0;
  color: var(--asser-secondary);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.asser-ai-upload-guide p {
  color: var(--asser-muted);
  line-height: 1.65;
}

.asser-ai-upload-guide__grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.asser-ai-upload-guide__grid div {
  padding: 0.9rem;
  border-radius: 16px;
  background: var(--asser-sand);
}

.asser-ai-upload-guide__grid strong,
.asser-ai-upload-guide__grid span {
  display: block;
}

.asser-ai-upload-guide__grid strong {
  color: var(--asser-secondary);
  font-size: 0.86rem;
}

.asser-ai-upload-guide__grid span {
  margin-top: 0.25rem;
  color: var(--asser-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.asser-ai-upload-form {
  display: grid;
  gap: 1rem;
}

.asser-ai-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.asser-ai-profile-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.asser-ai-profile-row label,
.asser-ai-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--asser-border);
  border-radius: 16px;
  background: rgba(251, 248, 245, 0.78);
  color: var(--asser-secondary);
  font-size: 0.85rem;
  font-weight: 800;
}

.asser-ai-upload-field,
.asser-ai-context-field {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px dashed rgba(75, 35, 56, 0.22);
  border-radius: 20px;
  background: rgba(246, 241, 236, 0.72);
}

.asser-ai-upload-field span,
.asser-ai-context-field span {
  color: var(--asser-secondary);
  font-size: 0.9rem;
  font-weight: 900;
}

.asser-ai-upload-field small {
  color: var(--asser-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.asser-ai-upload-field input[type="file"],
.asser-ai-context-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--asser-border);
  border-radius: 14px;
  background: #fff;
  color: var(--asser-text);
}

.asser-ai-upload-field input[type="file"] {
  padding: 0.75rem;
}

.asser-ai-context-field textarea {
  resize: vertical;
  padding: 0.85rem;
  line-height: 1.55;
}

.asser-ai-file-status {
  color: var(--asser-muted) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere;
}

.asser-ai-consent-row {
  align-items: flex-start;
  color: var(--asser-muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.asser-ai-portal__error,
.asser-ai-portal__success,
.asser-ai-portal__loading {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.5;
}

.asser-ai-portal__error {
  color: #9b233f;
}

.asser-ai-portal__success {
  border: 1px solid rgba(40, 77, 71, 0.18);
  background: rgba(237, 244, 242, 0.88);
  color: var(--asser-forest);
}

.asser-ai-staff {
  width: min(1040px, calc(100% - 2rem));
  margin: 42px auto;
  padding: 34px;
  border: 1px solid var(--asser-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.asser-ai-staff__table-wrap {
  overflow-x: auto;
}

.asser-ai-app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 36px max(1rem, calc((100vw - 1180px) / 2));
  background: var(--asser-deep);
  color: rgba(255, 255, 255, 0.72);
}

.asser-ai-app-footer strong {
  color: #fff;
}

.asser-ai-app-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.asser-ai-app-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

@keyframes pulse-dot {
  50% { box-shadow: 0 0 0 10px rgba(40, 77, 71, 0.02); }
}

@keyframes scan-line {
  0%, 100% { transform: translateX(-11rem); opacity: 0; }
  15%, 85% { opacity: 1; }
  50% { transform: translateX(10rem); }
}

@keyframes asserGemTilt {
  0%, 100% { transform: perspective(260px) rotateX(14deg) rotateY(-18deg); }
  50% { transform: perspective(260px) rotateX(14deg) rotateY(18deg); }
}

@media (max-width: 1080px) {
  .asser-ai-app-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .asser-ai-app-nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .portal-hero,
  .faq-hero,
  .recommended-layout,
  .asser-ai-public-upload {
    grid-template-columns: 1fr;
  }

  .analysis-visual {
    width: min(760px, 100%);
  }

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

@media (max-width: 760px) {
  .asser-ai-app-header {
    position: relative;
    gap: 1rem;
    min-height: auto;
  }

  .asser-ai-app-nav {
    gap: 0.75rem;
    font-size: 0.72rem;
  }

  .asser-ai-app-nav a {
    white-space: nowrap;
  }

  .portal-hero {
    width: min(1180px, calc(100% - 1.25rem));
    min-height: auto;
    padding: 3.4rem 0;
  }

  .portal-hero__copy h1,
  .faq-hero__copy h1,
  .asser-ai-upload-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.35rem);
    line-height: 1.03;
  }

  .portal-hero__actions,
  .portal-hero__reassurance {
    display: grid;
  }

  .portal-hero__actions .portal-button,
  .portal-cta .portal-button,
  .asser-ai-button {
    width: 100%;
  }

  .analysis-document,
  .analysis-area-grid,
  .document-comparison,
  .portal-process,
  .portal-cta,
  .portal-info-grid--two,
  .portal-info-grid--three,
  .asser-ai-profile-row,
  .guide-document__intro,
  .faq-category__header,
  .faq-notice {
    grid-template-columns: 1fr;
  }

  .analysis-visual {
    min-height: 390px;
    border-radius: 28px;
  }

  .analysis-document {
    padding: 1.3rem;
  }

  .analysis-document__page {
    min-height: 260px;
    transform: none;
  }

  .analysis-result {
    display: none;
  }

  .portal-trust-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
  }

  .portal-trust-strip span,
  .portal-process::before {
    display: none;
  }

  .portal-section,
  .portal-info-page,
  .guide-page,
  .faq-content,
  .asser-ai-upload-hero,
  .asser-ai-portal {
    width: min(100% - 1.25rem, 1180px);
  }

  .portal-section {
    padding: 4rem 0;
  }

  .portal-section__heading h2,
  .recommended-layout h2,
  .portal-cta h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
    line-height: 1.08;
  }

  .portal-cta {
    padding: 1.35rem;
    border-radius: 24px;
  }

  .faq-topic-nav {
    width: min(100% - 1.25rem, 1120px);
    margin-top: 1rem;
    padding: 0.9rem;
    border-radius: 8px;
  }

  .faq-topic-nav__header {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-items: start;
    padding: 0.25rem 0.1rem 0.8rem;
  }

  .faq-topic-nav__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding-top: 0.8rem;
  }

  .faq-topic-nav__grid a {
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: 0.5rem;
    min-height: 60px;
    padding: 0.45rem;
    font-size: 0.68rem;
  }

  .faq-topic-nav__number {
    width: 1.75rem;
    height: 1.75rem;
  }

  .faq-search {
    grid-template-columns: 1fr;
    width: min(100% - 1.25rem, 980px);
    margin-top: 1.25rem;
    padding: 0;
  }

  .faq-search__intro,
  .faq-search__body {
    padding: 1.1rem;
  }

  .faq-search__chat-hint {
    align-items: flex-start;
    padding: 0.85rem;
  }

  .faq-disclosure summary {
    grid-template-columns: 2.15rem minmax(0, 1fr) 1.75rem;
    gap: 0.6rem;
    min-height: 74px;
    padding: 0.9rem;
    font-size: 0.8rem;
  }

  .faq-disclosure__number {
    width: 2.15rem;
    height: 2.15rem;
  }

  .faq-disclosure > p {
    padding: 0 1rem 1.2rem;
    font-size: 0.8rem;
  }

  .guide-index {
    position: static;
    grid-template-columns: 1fr;
  }

  .guide-document__meta {
    justify-items: start;
  }

  .guide-document__meta small {
    overflow-wrap: anywhere;
  }

  .asser-ai-portal {
    padding: 0.85rem;
    border-radius: 24px;
  }

  .asser-ai-app-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Brand polish and compact mobile navigation */
.portal-nav__drawer {
  display: contents;
}

.portal-nav__toggle {
  display: none;
}

.portal-footer__brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
}

.asser-logo-3d--footer .asser-logo-3d__stage {
  width: 46px;
  height: 46px;
}

.asser-logo-3d--footer .asser-logo-3d__wordmark {
  width: 138px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.portal-footer__ai {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: 850 0.64rem/1 "Sora", sans-serif;
}

.portal-info-grid--documents .portal-info-card {
  position: relative;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portal-info-grid--documents .portal-info-card::after {
  position: absolute;
  top: 50%;
  right: 1rem;
  color: rgba(125, 68, 94, 0.55);
  content: "→";
  font-size: 1rem;
  opacity: 0;
  transform: translate(-6px, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.portal-info-grid--documents .portal-info-card:hover {
  border-color: rgba(125, 68, 94, 0.24);
  box-shadow: 0 14px 32px rgba(75, 35, 56, 0.08);
  transform: translateY(-2px);
}

.portal-info-grid--documents .portal-info-card:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.portal-chat__avatar,
.portal-chat__launcher-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.portal-chat__avatar {
  width: 40px;
  height: 40px;
}

.portal-chat__launcher .portal-chat__launcher-logo {
  width: 42px;
  height: 42px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.portal-chat__gem,
.portal-chat__gem canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.portal-chat__launcher .portal-chat__launcher-copy {
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  gap: 0.48rem;
  border-radius: 0;
  background: transparent;
  color: #fff;
}

.portal-chat__launcher-copy b {
  color: #f2dce5;
  font: 850 0.66rem/1 "Sora", sans-serif;
  letter-spacing: 0.04em;
}

.portal-chat__launcher-copy strong {
  display: block;
}

.portal-chat__launcher:hover,
.portal-chat__launcher:focus-visible {
  box-shadow: 0 22px 48px rgba(44, 31, 41, 0.32);
  transform: translateY(-2px);
}

@media (max-width: 1280px) and (min-width: 921px) {
  .portal-nav__inner {
    width: min(1240px, calc(100% - 1.25rem));
    gap: 0.8rem;
  }

  .portal-nav__links,
  .portal-nav__actions {
    gap: 0.75rem;
    font-size: 0.72rem;
  }

}

@media (max-width: 920px) {
  .portal-nav {
    position: sticky;
    box-shadow: 0 10px 30px rgba(44, 31, 41, 0.05);
  }

  .portal-nav__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    min-height: 70px;
    padding: 0.65rem 0;
  }

  .portal-nav__toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(75, 35, 56, 0.14);
    border-radius: 8px;
    background: #fff;
    color: var(--asser-secondary);
    cursor: pointer;
  }

  .portal-nav__toggle-lines {
    display: grid;
    width: 19px;
    gap: 4px;
  }

  .portal-nav__toggle-lines i {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .portal-nav--open .portal-nav__toggle-lines i:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .portal-nav--open .portal-nav__toggle-lines i:nth-child(2) {
    opacity: 0;
  }

  .portal-nav--open .portal-nav__toggle-lines i:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .portal-nav__drawer {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.5rem 0 0.4rem;
    border-top: 1px solid rgba(75, 35, 56, 0.09);
  }

  .portal-nav--open .portal-nav__drawer {
    display: grid;
    gap: 0.9rem;
    animation: nav-drawer-in 180ms ease-out both;
  }

  .portal-nav__links {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  .portal-nav__links > a,
  .portal-nav__dropdown > a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(75, 35, 56, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    white-space: normal;
  }

  .portal-nav__dropdown {
    padding: 0;
  }

  .portal-nav__dropdown-menu {
    display: none !important;
  }

  .portal-nav__actions {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.55rem;
    width: 100%;
  }

  .portal-nav__actions > a:not(.portal-button) {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(75, 35, 56, 0.11);
    border-radius: 8px;
    background: #fff;
  }

  .portal-footer__inner {
    gap: 2.4rem;
  }
}

@keyframes nav-drawer-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .portal-brand__logo .asser-logo-3d__stage {
    width: 34px;
    height: 34px;
  }

  .portal-brand__logo .asser-logo-3d__wordmark {
    width: 102px;
  }

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

  .portal-nav__actions .portal-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .portal-info-grid--documents {
    gap: 0.65rem;
  }

  .portal-info-grid--documents .portal-info-card {
    min-height: 62px;
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }

  .portal-chat__launcher {
    width: auto;
    min-width: 92px;
    min-height: 52px;
    padding: 5px 10px 5px 5px;
  }

  .portal-chat__launcher .portal-chat__launcher-logo {
    width: 40px;
    height: 40px;
  }

  .portal-chat__launcher-copy strong {
    display: none;
  }

  .portal-chat__launcher-copy b {
    display: block;
    font-size: 0.7rem;
  }

  .asser-logo-3d--footer .asser-logo-3d__wordmark {
    width: 125px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-info-grid--documents .portal-info-card,
  .portal-chat__launcher,
  .portal-nav__toggle-lines i {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared portal chrome */
.portal-nav {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 78px;
  border-bottom: 1px solid rgba(75, 35, 56, 0.09);
  background: rgba(251, 248, 245, 0.95);
  backdrop-filter: blur(18px) saturate(135%);
}

.portal-nav__inner {
  display: grid;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: min(1180px, calc(100% - 2rem));
  min-height: 78px;
  margin: 0 auto;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  line-height: 0;
  text-decoration: none;
}

.portal-brand__logo,
.asser-logo-3d {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.22rem;
  line-height: 0;
}

.asser-logo-3d__stage {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.asser-logo-3d__stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.asser-logo-3d__wordmark {
  display: block;
  width: 112px;
  height: auto;
  object-fit: contain;
}

.portal-brand__ai {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-forest);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
}

.portal-nav__links,
.portal-nav__actions {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.45rem);
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 750;
}

.portal-nav__links {
  justify-content: center;
}

.portal-nav__actions {
  justify-content: flex-end;
  white-space: nowrap;
}

.portal-nav__links a,
.portal-nav__actions > a:not(.portal-button) {
  color: #60575b;
  text-decoration: none;
}

.portal-nav__links a:hover,
.portal-nav__actions > a:not(.portal-button):hover {
  color: var(--asser-primary);
}

.portal-nav__dropdown {
  position: relative;
  padding-block: 1.6rem;
}

.portal-nav__dropdown-menu {
  position: absolute;
  top: calc(100% - 0.7rem);
  left: 50%;
  display: none;
  width: 230px;
  padding: 0.55rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  transform: translateX(-50%);
}

.portal-nav__dropdown:hover .portal-nav__dropdown-menu,
.portal-nav__dropdown:focus-within .portal-nav__dropdown-menu {
  display: grid;
}

.portal-nav__dropdown-menu a {
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
}

.portal-nav__dropdown-menu a:hover {
  background: var(--asser-alt-bg);
}

.portal-button--nav {
  min-height: 42px;
  padding: 0.7rem 1.2rem;
  font-size: 0.78rem;
}

.portal-main {
  min-height: calc(100vh - 78px);
}

.portal-footer {
  padding: 4.2rem max(1rem, calc((100vw - 1180px) / 2)) 1.5rem;
  background: var(--asser-deep);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.portal-footer__inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) minmax(150px, 0.65fr) minmax(150px, 0.65fr);
  gap: clamp(2rem, 7vw, 7rem);
}

.portal-footer__brand strong {
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.portal-footer__brand strong span {
  color: #a4959e;
  font-size: 0.72rem;
}

.portal-footer__brand p {
  max-width: 410px;
  line-height: 1.7;
}

.portal-footer__links {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.portal-footer__links strong {
  color: #fff;
}

.portal-footer__links a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.portal-footer__links a:hover {
  color: #fff;
}

.portal-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.66rem;
}

.portal-chat {
  position: fixed;
  z-index: 50;
  right: 1.35rem;
  bottom: 1.15rem;
  display: grid;
  justify-items: end;
  gap: 0.75rem;
}

.portal-chat__launcher {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 56px;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, #3d2333, #1f4743);
  color: #fff;
  box-shadow: 0 18px 42px rgba(44, 31, 41, 0.25);
  cursor: pointer;
}

.portal-chat__launcher span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
  font-weight: 900;
}

.portal-chat__launcher strong {
  font-size: 0.7rem;
}

.portal-chat__panel {
  width: min(360px, calc(100vw - 1.5rem));
  overflow: hidden;
  border: 1px solid rgba(75, 35, 56, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(44, 31, 41, 0.24);
}

.portal-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  background: linear-gradient(110deg, #3d2333, #1f4743);
  color: #fff;
}

.portal-chat__header > div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.portal-chat__header strong,
.portal-chat__header small {
  display: block;
  line-height: 1.25;
}

.portal-chat__header strong {
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
}

.portal-chat__header small {
  margin-top: 0.12rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.66rem;
}

.portal-chat__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  font-weight: 900;
}

.portal-chat__close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.portal-chat__close:hover,
.portal-chat__close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.portal-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 230px;
  padding: 0.9rem;
  overflow-y: auto;
  background: #fbf8f5;
}

.portal-chat__message {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 0.68rem 0.76rem;
  border-radius: 8px;
  font-size: 0.74rem;
  line-height: 1.5;
}

.portal-chat__message--assistant {
  align-self: flex-start;
  border: 1px solid rgba(75, 35, 56, 0.11);
  background: #fff;
  color: var(--asser-text);
}

.portal-chat__message--user {
  align-self: flex-end;
  background: var(--asser-primary);
  color: #fff;
}

.portal-chat__message a {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--asser-primary);
  font-weight: 800;
}

.portal-chat__quick-actions {
  display: flex;
  gap: 0.38rem;
  padding: 0.75rem 0.75rem 0;
  overflow-x: auto;
  background: #fff;
}

.portal-chat__quick-actions button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(75, 35, 56, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--asser-secondary);
  font: 700 0.64rem/1.2 "Manrope", sans-serif;
  cursor: pointer;
}

.portal-chat__quick-actions button:hover,
.portal-chat__quick-actions button:focus-visible {
  border-color: var(--asser-primary);
  background: var(--asser-alt-bg);
}

.portal-chat__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  padding: 0.75rem;
  background: #fff;
}

.portal-chat__form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 0.7rem;
  border: 1px solid rgba(75, 35, 56, 0.2);
  border-radius: 6px;
  color: var(--asser-text);
  font: 500 0.74rem/1.2 "Manrope", sans-serif;
  outline: none;
}

.portal-chat__form input:focus {
  border-color: var(--asser-primary);
  box-shadow: 0 0 0 3px rgba(125, 68, 94, 0.1);
}

.portal-chat__form button {
  min-width: 60px;
  height: 42px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 6px;
  background: var(--asser-secondary);
  color: #fff;
  font: 800 0.7rem/1 "Manrope", sans-serif;
  cursor: pointer;
}

.portal-chat--open .portal-chat__launcher {
  box-shadow: 0 10px 28px rgba(44, 31, 41, 0.18);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.upload-classifier--single {
  grid-template-columns: minmax(0, 1fr);
}

.upload-classifier--single .portal-field {
  max-width: 100%;
}

/* Authentication and customer dashboard */
.auth-shell {
  width: min(720px, calc(100% - 2rem));
  min-height: 720px;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 7rem) 0 5rem;
}

.auth-shell--register {
  min-height: 850px;
  padding-top: 3rem;
}

.auth-card {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid rgba(75, 35, 56, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.phone-required-form {
  max-width: 480px;
}

.auth-card label,
.upload-notes {
  display: grid;
  gap: 0.55rem;
  color: var(--asser-secondary);
  font-size: 0.78rem;
  font-weight: 850;
}

.auth-card input,
.upload-notes textarea,
.upload-classifier select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--asser-border);
  border-radius: 14px;
  background: #fff;
  color: var(--asser-text);
  font: inherit;
  outline: none;
}

.auth-card input:focus,
.upload-notes textarea:focus,
.upload-classifier select:focus {
  border-color: var(--asser-primary);
  box-shadow: 0 0 0 3px rgba(125, 68, 94, 0.08);
}

.auth-card .portal-button {
  width: 100%;
}

.auth-card .auth-account-kind {
  display: grid;
  gap: 0.7rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.auth-card .auth-account-kind legend {
  padding: 0;
  margin-bottom: 0.55rem;
  color: var(--asser-secondary);
  font-size: 0.78rem;
  font-weight: 850;
}

.auth-card label.auth-account-kind__option {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--asser-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 400;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.auth-card label.auth-account-kind__option:hover {
  border-color: var(--asser-blush);
}

.auth-card label.auth-account-kind__option:has(input:checked) {
  border-color: var(--asser-primary);
  background: rgba(125, 68, 94, 0.06);
  box-shadow: 0 0 0 3px rgba(125, 68, 94, 0.08);
}

.auth-card .auth-account-kind__option input[type="radio"] {
  flex: 0 0 auto;
  width: 20px;
  min-height: 0;
  height: 20px;
  margin: 0.1rem 0 0;
  padding: 0;
  accent-color: var(--asser-primary);
  box-shadow: none;
}

.auth-card .auth-account-kind__option span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.auth-card .auth-account-kind__option strong {
  color: var(--asser-secondary);
  font-size: 0.92rem;
  font-weight: 850;
}

.auth-card .auth-account-kind__option small {
  color: var(--asser-muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--asser-primary);
  font-size: 0.82rem;
}

.auth-links a,
.auth-bottom a {
  color: var(--asser-primary);
  text-decoration: none;
}

.auth-bottom {
  text-align: center;
  color: var(--asser-muted);
}

.dashboard-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.dashboard-view-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem;
}

.dashboard-view-nav a {
  padding: 0.6rem 1.15rem;
  border: 1px solid rgba(75, 35, 56, 0.15);
  border-radius: 999px;
  color: var(--asser-secondary);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.6);
}

.dashboard-view-nav a.is-active {
  border-color: var(--asser-primary);
  background: var(--asser-primary);
  color: #fff;
}

.dashboard-archive {
  margin-top: 1rem;
}

.managed-client-type-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  border: none;
  margin: 0;
}

.managed-client-type-picker legend {
  width: 100%;
  margin-bottom: 0.2rem;
  color: var(--asser-secondary);
  font-size: 0.78rem;
  font-weight: 700;
}

.managed-client-form .managed-client-type-picker__option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.managed-client-type-folder {
  margin: 1.2rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.managed-client-type-folder summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: var(--asser-secondary);
  font-weight: 800;
  font-size: 1rem;
}

.managed-client-type-folder__icon {
  font-size: 1.1rem;
}

.managed-client-type-folder__count {
  display: inline-grid;
  min-width: 26px;
  padding: 0.15rem 0.5rem;
  place-items: center;
  border-radius: 999px;
  background: var(--asser-alt-bg, rgba(201, 143, 170, 0.28));
  color: var(--asser-secondary);
  font-size: 0.74rem;
}

.managed-client-type-folder .managed-client-list {
  margin-top: 0.9rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border: 1px solid rgba(75, 35, 56, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 16%, rgba(201, 143, 170, 0.28), transparent 18rem),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.dashboard-hero__actions {
  display: flex;
  gap: 0.7rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.dashboard-stats > div {
  display: grid;
  gap: 0.55rem;
  min-height: 84px;
  padding: 1rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-stats strong {
  color: var(--asser-secondary);
  font-size: 1.35rem;
}

.dashboard-stats span {
  color: var(--asser-muted);
  font-size: 0.72rem;
}

.dashboard-plan {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 1.4rem;
  padding: clamp(1.2rem, 3vw, 1.75rem);
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-plan__info h2 {
  margin: 0.2rem 0 0.6rem;
  color: var(--asser-secondary);
  font-size: 1.15rem;
}

.dashboard-plan__facts {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--asser-text);
  font-size: 0.85rem;
  font-weight: 700;
}

.dashboard-plan__offers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(75, 35, 56, 0.1);
}

.dashboard-plan__offers-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--asser-muted);
  font-size: 0.8rem;
}

.dashboard-plan__offer {
  display: grid;
  gap: 0.4rem;
  min-width: 160px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(75, 35, 56, 0.12);
  border-radius: 14px;
  background: #fff;
}

.dashboard-plan__offer-name {
  color: var(--asser-secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-plan__offer-price {
  color: var(--asser-text);
  font-size: 1rem;
  font-weight: 800;
}

.dashboard-plan__offers-alt {
  flex-basis: 100%;
  margin: 0.4rem 0 0;
  color: var(--asser-muted);
  font-size: 0.8rem;
}

.dashboard-plan__offers-note--form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-plan__offers-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--asser-primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.dashboard-history {
  margin-top: 2.5rem;
}

/* Archivio clienti (professionisti abilitati) */
.managed-client-new {
  margin: 1.2rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.managed-client-new summary {
  cursor: pointer;
  color: var(--asser-primary);
  font-weight: 800;
}

.managed-client-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
  max-width: 480px;
}

.managed-client-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--asser-secondary);
  font-size: 0.78rem;
  font-weight: 700;
}

.managed-client-form input,
.managed-client-form textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(75, 35, 56, 0.15);
  border-radius: 8px;
  font: inherit;
  color: var(--asser-text);
  resize: vertical;
}

.managed-client-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.managed-client-card {
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  text-decoration: none;
}

.managed-client-card__name {
  color: var(--asser-secondary);
  font-weight: 800;
}

.managed-client-card__count {
  color: var(--asser-muted);
  font-size: 0.76rem;
}

.managed-client-unassigned {
  margin-top: 1.75rem;
}

.managed-client-unassigned h2 {
  margin-bottom: 0.3rem;
  color: var(--asser-secondary);
  font-size: 1.05rem;
}

.managed-client-unassigned__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.5rem;
  list-style: none;
}

.managed-client-unassigned__row form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.managed-client-detail {
  margin-top: 1rem;
}

.managed-client-detail header h2 {
  margin: 0.2rem 0 0.3rem;
  color: var(--asser-secondary);
}

.installment-plans {
  margin-top: 2rem;
}

.installment-plan {
  margin-top: 0.75rem;
  border: 1px solid rgba(75, 35, 56, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.15rem 1.1rem;
}

.installment-plan > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.installment-plan > summary::-webkit-details-marker {
  display: none;
}

.installment-plan__badge {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--asser-secondary);
  opacity: 0.85;
}

.installment-plan__body {
  padding: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.installment-plan__next {
  margin: 0;
}

.installment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.installment-table th,
.installment-table td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(75, 35, 56, 0.08);
}

.installment-row--past {
  opacity: 0.55;
}

.installment-remove-btn {
  border: none;
  background: transparent;
  color: var(--asser-secondary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
}

.installment-reminders-form,
.installment-form,
.installment-pagopa-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.installment-pagopa-form {
  border-bottom: 1px dashed rgba(75, 35, 56, 0.15);
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
}

.installment-pagopa-form .description {
  flex-basis: 100%;
  margin: 0;
}

.installment-plan-add {
  border-top: 1px dashed rgba(75, 35, 56, 0.15);
  padding-top: 0.75rem;
}

.installment-plan__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.case-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.case-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-history__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-history__heading h2 {
  margin: 0;
  color: var(--asser-secondary);
}

.dashboard-history__heading > span {
  color: var(--asser-muted);
  font-size: 0.72rem;
}

.case-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.case-filter-bar__search {
  flex: 1 1 14rem;
  min-width: 10rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--asser-border);
  border-radius: 12px;
  font: inherit;
  color: var(--asser-text);
}

.case-filter-bar__select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--asser-border);
  border-radius: 12px;
  font: inherit;
  color: var(--asser-text);
  background: #fff;
}

.case-filter-bar__submit {
  padding: 0.55rem 1.1rem;
}

.case-filter-bar__reset {
  color: var(--asser-muted);
  font-size: 0.8rem;
  text-decoration: underline;
}

.case-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.case-list-empty {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--asser-secondary);
}

.case-list-empty span {
  color: var(--asser-muted);
}

.case-list-link {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 84px;
  padding: 1rem 1.3rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--asser-secondary) !important;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(75, 35, 56, 0.05);
}

.case-list-link span {
  display: grid;
  gap: 0.25rem;
}

.case-list-link small {
  color: var(--asser-muted);
}

.case-list-link em {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--asser-alt-bg);
  color: var(--asser-primary);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
}

/* Guided upload */
.asser-ai-wizard-root {
  width: min(980px, calc(100% - 2rem));
  margin: clamp(3rem, 8vw, 5.5rem) auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wizard-panel {
  padding: clamp(2rem, 5vw, 3.2rem);
  border: 1px solid rgba(75, 35, 56, 0.11);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.wizard-panel--compact {
  width: min(720px, 100%);
  margin: 0 auto;
}

.wizard-panel--wide {
  width: 100%;
}

.wizard-primary {
  width: 100%;
  margin-top: 1.2rem;
}

.wizard-primary:disabled {
  background: #d2cbce;
  box-shadow: none;
}

.consent-list,
.choice-list,
.document-guide-groups {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.consent-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.15rem;
  border: 1px solid rgba(75, 35, 56, 0.11);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
}

.consent-card input {
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  accent-color: var(--asser-primary);
}

.consent-card span,
.choice-card__copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  text-align: left;
}

.consent-card strong,
.choice-card strong {
  color: var(--asser-secondary);
}

.consent-card small,
.choice-card small {
  color: var(--asser-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.wizard-privacy-link {
  color: var(--asser-muted);
  font-size: 0.75rem;
}

.wizard-privacy-link a {
  color: var(--asser-primary);
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  width: 100%;
  min-height: 96px;
  align-items: start;
  padding: 1.05rem;
  border: 1px solid rgba(75, 35, 56, 0.12);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
}

.choice-card--selected {
  border-color: var(--asser-primary);
  background: rgba(244, 233, 237, 0.35);
  box-shadow: 0 0 0 3px rgba(125, 68, 94, 0.06);
}

.choice-card__marker {
  width: 20px;
  height: 20px;
  border: 2px solid var(--asser-border);
  border-radius: 50%;
}

.choice-card--selected .choice-card__marker {
  border: 6px solid var(--asser-primary);
}

.upload-recommendation,
.recommended-document {
  margin-top: 1.3rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(40, 77, 71, 0.2);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(237, 244, 242, 0.96), rgba(255, 255, 255, 0.9));
}

.upload-recommendation--urgent {
  border-color: rgba(180, 52, 82, 0.25);
  background: linear-gradient(135deg, rgba(255, 241, 244, 0.95), rgba(255, 255, 255, 0.9));
}

.upload-recommendation strong,
.recommended-document h2 {
  color: var(--asser-secondary);
}

.upload-recommendation--urgent strong {
  color: #af2949;
}

.upload-recommendation p,
.recommended-document p {
  margin: 0.55rem 0 0;
  color: var(--asser-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.recommended-document .portal-kicker {
  margin-bottom: 0.7rem;
  color: var(--asser-forest);
}

.recommended-document h2 {
  margin: 0;
  font-size: 1.25rem;
}

.wizard-phase {
  margin-top: 1.5rem;
}

.wizard-section-title {
  max-width: 760px;
  margin: 0.5rem 0 0;
  color: var(--asser-secondary);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 450;
  line-height: 0.98;
}

.guide-card--document-group {
  padding: 1.2rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.guide-card--document-group h3 {
  margin: 0;
  color: var(--asser-secondary);
  font-size: 1.05rem;
  font-weight: 500;
}

.guide-card--document-group ul {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.guide-card--document-group li {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding-left: 1.2rem;
}

.guide-card--document-group li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--asser-primary);
}

.guide-card--document-group li strong {
  color: var(--asser-secondary);
  font-size: 0.82rem;
}

.guide-card--document-group li small {
  color: var(--asser-muted);
  line-height: 1.45;
}

.portal-notice {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--asser-forest);
  border-radius: 0 16px 16px 0;
  background: var(--asser-ice);
  color: #526561;
  line-height: 1.6;
}

.wizard-upload-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.upload-classifier {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.upload-classifier label {
  display: grid;
  gap: 0.5rem;
  color: var(--asser-secondary);
  font-size: 0.72rem;
  font-weight: 850;
}

.classifier-help {
  margin: -0.5rem 0 0;
  color: var(--asser-muted);
  font-size: 0.72rem;
}

.upload-dropzone {
  display: grid;
  min-height: 290px;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  padding: 1.5rem;
  border: 2px dashed rgba(125, 68, 94, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(201, 143, 170, 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.72);
  text-align: center;
  cursor: pointer;
}

.upload-dropzone--active {
  border-color: var(--asser-primary);
  background-color: var(--asser-alt-bg);
}

.upload-dropzone__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-alt-bg);
  color: var(--asser-primary);
  font-size: 1.6rem;
}

.upload-dropzone h2,
.wizard-success h2 {
  margin: 0;
  color: var(--asser-secondary);
  font-size: 1.2rem;
}

.upload-dropzone p {
  margin: 0;
  color: var(--asser-muted);
  font-size: 0.75rem;
}

.upload-dropzone__actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.file-count {
  color: var(--asser-muted);
  font-size: 0.72rem;
}

.visually-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.uploaded-files {
  display: grid;
  gap: 0.55rem;
}

.uploaded-file {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 14px;
  background: #fff;
}

.uploaded-file span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.uploaded-file strong {
  overflow: hidden;
  color: var(--asser-secondary);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploaded-file small {
  color: var(--asser-muted);
}

.uploaded-file__remove {
  border: 0;
  background: transparent;
  color: var(--asser-primary);
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.upload-notes textarea {
  min-height: 100px;
  resize: vertical;
}

.form-error {
  margin: 0;
  color: #a12948;
  font-size: 0.82rem;
  font-weight: 800;
}

.wizard-success {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  text-align: center;
}

.wizard-success p {
  max-width: 500px;
  margin: 0;
  color: var(--asser-muted);
  line-height: 1.6;
}

.success-mark {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-ice);
  color: var(--asser-forest);
  font-size: 1.7rem;
  font-weight: 900;
}

/* Privacy and long guide content */
.privacy-sections {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.privacy-sections .portal-card h2 {
  margin: 0 0 0.45rem;
  color: var(--asser-secondary);
  font-size: 1.05rem;
}

.privacy-sections .portal-card p {
  margin: 0;
  color: var(--asser-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.privacy-footnote {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--asser-border);
  color: var(--asser-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.guide-block + .guide-block {
  margin-top: 1rem;
}

.guide-detail-list,
.guide-list--cards,
.guide-qa-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
}

.guide-detail-row,
.guide-list--cards li,
.guide-qa-item {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(75, 35, 56, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.guide-list--cards {
  padding: 0;
  list-style: none;
}

.guide-list--cards li {
  position: relative;
  padding-left: 2rem;
  color: var(--asser-muted);
  font-size: 0.82rem;
}

.guide-list--cards li::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 0.9rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--asser-forest);
}

.guide-warning {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--asser-forest);
  background: var(--asser-ice);
  color: #526561;
  font-size: 0.82rem;
  line-height: 1.55;
}

.faq-cta {
  margin-top: 4rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--asser-secondary), var(--asser-forest));
  color: #fff;
}

.faq-cta h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 450;
  line-height: 1.05;
}

.faq-cta p {
  color: rgba(255, 255, 255, 0.7);
}

.portal-faq-preview__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
}

.portal-faq-preview__heading h2 {
  max-width: 760px;
  margin: 0;
  color: var(--asser-secondary);
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 450;
  line-height: 1;
}

.portal-faq-preview__heading p:last-child {
  max-width: 720px;
  color: var(--asser-muted);
  line-height: 1.7;
}

.faq-all-link {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--asser-border);
  color: var(--asser-secondary) !important;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.faq-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2.7rem;
}

.faq-preview-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "number topic action"
    "number question action";
  align-items: center;
  gap: 0.25rem 0.9rem;
  min-height: 94px;
  padding: 1rem;
  border: 1px solid rgba(75, 35, 56, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--asser-secondary) !important;
  text-decoration: none;
}

.faq-preview-card > span {
  grid-area: number;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-sand);
  color: var(--asser-primary);
  font-size: 0.68rem;
  font-weight: 850;
}

.faq-preview-card small {
  grid-area: topic;
  color: var(--asser-muted);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.faq-preview-card strong {
  grid-area: question;
  font-size: 0.82rem;
  line-height: 1.35;
}

.faq-preview-card b {
  grid-area: action;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-alt-bg);
  color: var(--asser-primary);
}

@media (max-width: 1040px) {
  .portal-nav__inner {
    grid-template-columns: 1fr auto;
  }

  .portal-nav__links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 0.8rem;
    overflow-x: auto;
  }

  .portal-nav {
    position: relative;
  }

  .portal-nav__dropdown {
    padding-block: 0;
  }

  .portal-nav__dropdown-menu {
    left: 0;
    transform: none;
  }
}

@media (max-width: 760px) {
  .portal-nav__inner {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0.8rem 0;
  }

  .portal-nav__actions {
    position: absolute;
    top: 0.8rem;
    right: 0.65rem;
  }

  .portal-nav__actions > a:not(.portal-button) {
    display: none;
  }

  .portal-nav__links {
    gap: 1rem;
    padding-bottom: 0.2rem;
  }

  .portal-nav__links a {
    white-space: nowrap;
  }

  .portal-nav__dropdown-menu {
    display: none !important;
  }

  .portal-button--nav {
    min-height: 38px;
    padding: 0.62rem 0.9rem;
  }

  .portal-footer__inner,
  .dashboard-hero,
  .upload-classifier,
  .portal-faq-preview__heading {
    grid-template-columns: 1fr;
  }

  .portal-footer__bottom,
  .dashboard-history__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-plan__offer {
    flex: 1 1 100%;
  }

  .dashboard-plan__offer .portal-button {
    width: 100%;
  }

  .portal-chat {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .portal-chat__launcher strong {
    display: none;
  }

  .portal-chat__launcher {
    width: 48px;
    min-height: 48px;
    padding: 5px;
  }

  .portal-chat__launcher span {
    width: 38px;
    height: 38px;
  }

  .portal-chat__panel {
    width: min(360px, calc(100vw - 1.5rem));
  }

  .auth-shell,
  .dashboard-page,
  .asser-ai-wizard-root {
    width: min(100% - 1.25rem, 1120px);
  }

  .dashboard-hero__actions,
  .auth-links,
  .upload-dropzone__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

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

  .case-list-link {
    grid-template-columns: 1fr auto;
  }

  .case-list-link b {
    display: none;
  }

  .wizard-panel {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .wizard-panel .portal-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .wizard-section-title {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .upload-dropzone {
    min-height: 260px;
  }

  .upload-dropzone__actions .portal-button {
    width: 100%;
  }
}

/* Customer case workspace */
.customer-dashboard {
  display: grid;
  gap: 2rem;
}

.customer-dashboard .dashboard-hero {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.customer-dashboard .dashboard-stats > div,
.customer-dashboard .case-list-link {
  border-radius: 8px;
}

.case-list-link--active {
  border-color: var(--asser-primary);
  box-shadow: 0 0 0 2px rgba(125, 68, 94, 0.08);
}

.case-detail {
  scroll-margin-top: 7rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--asser-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(44, 31, 41, 0.08);
}

.case-detail__header,
.staff-case-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--asser-border);
}

.case-detail__header h2,
.staff-case-detail__header h2 {
  margin: 0.3rem 0 0;
  color: var(--asser-secondary);
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: 0;
}

.case-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(125, 68, 94, 0.18);
  border-radius: 999px;
  background: var(--asser-alt-bg);
  color: var(--asser-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.case-status--completed {
  border-color: rgba(40, 77, 71, 0.24);
  background: var(--asser-ice);
  color: #1f5148;
}

.case-status--partial,
.case-status--manual_review,
.case-status--failed {
  border-color: rgba(141, 89, 21, 0.25);
  background: #fff7e8;
  color: #74470f;
}

.case-alert {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--asser-forest);
  background: var(--asser-ice);
  color: #23443f;
}

.case-alert--warning {
  border-left-color: #9a6419;
  background: #fff8eb;
  color: #61400f;
}

.case-alert--error {
  border-left-color: #a12d45;
  background: #fff1f4;
  color: #742033;
}

.case-alert strong,
.case-alert p {
  display: block;
  margin: 0;
}

.case-alert p {
  margin-top: 0.3rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

.case-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.case-panel {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--asser-border);
  border-radius: 8px;
  background: #fff;
}

.case-panel h3 {
  margin: 0 0 0.9rem;
  color: var(--asser-secondary);
  font-size: 1rem;
  letter-spacing: 0;
}

.case-panel--report {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-color: rgba(40, 77, 71, 0.22);
  background: var(--asser-ice);
}

.case-panel--report > div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.case-panel--report h3,
.case-panel--report p {
  margin: 0;
}

.case-panel--report p {
  margin-top: 0.25rem;
  color: #53635f;
  font-size: 0.82rem;
  line-height: 1.45;
}

.case-panel__icon,
.case-document-list__type {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: var(--asser-secondary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.case-panel__pending,
.case-empty-text {
  color: var(--asser-muted);
  font-size: 0.82rem;
}

.case-document-list,
.case-missing-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-document-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.55rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 6px;
}

.case-document-list li > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.case-document-list strong,
.case-document-list small {
  overflow-wrap: anywhere;
}

.case-document-list strong {
  color: var(--asser-text);
  font-size: 0.82rem;
}

.case-document-list small {
  color: var(--asser-muted);
  font-size: 0.7rem;
}

.case-document-list a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0.45rem 0.25rem;
  color: var(--asser-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.case-document-list__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.case-document-delete {
  margin: 0;
}

.case-document-delete button {
  min-height: 40px;
  padding: 0.45rem 0.55rem;
  border: 0;
  background: transparent;
  color: #9b2840;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  cursor: pointer;
}

.case-document-delete button:hover,
.case-document-delete button:focus-visible {
  color: #721729;
  outline: 3px solid rgba(161, 45, 69, 0.18);
  outline-offset: 2px;
}

.case-panel--processing {
  background: #fbfcfc;
}

.case-panel--diagnostics {
  border-color: rgba(40, 77, 71, 0.24);
  background: #f7faf9;
}

.case-diagnostics__connected {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #e3f1ed;
  color: #24564d !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
}

.case-diagnostics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.case-diagnostics__grid > div {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 6px;
  background: #fff;
}

.case-diagnostics__grid dt,
.case-diagnostics__grid dd {
  margin: 0;
}

.case-diagnostics__grid dt {
  color: var(--asser-muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.case-diagnostics__grid dd {
  margin-top: 0.2rem;
  color: var(--asser-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.case-diagnostics__grid dd.is-warning {
  color: #8d2c3a;
}

.case-diagnostics__message {
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-left: 3px solid #7d8986;
  background: #eef1f0;
  color: #46524f;
}

.case-diagnostics__message--ok {
  border-color: #2b665b;
  background: #e9f4f1;
  color: #24564d;
}

.case-diagnostics__message--warning {
  border-color: #9a6419;
  background: #fff8ec;
  color: #6f4a14;
}

.case-diagnostics__message--error {
  border-color: #a33545;
  background: #fff1f3;
  color: #7e2735;
}

.case-diagnostics__message strong,
.case-diagnostics__message p {
  margin: 0;
}

.case-diagnostics__message p {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  line-height: 1.5;
}

.case-diagnostics__message dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.65rem 0 0;
}

.case-diagnostics__message dl > div {
  min-width: 0;
}

.case-diagnostics__message dt,
.case-diagnostics__message dd {
  margin: 0;
  font-size: 0.69rem;
}

.case-diagnostics__message dt {
  font-weight: 800;
}

.case-diagnostics__message dd {
  margin-top: 0.12rem;
  overflow-wrap: anywhere;
}

.case-diagnostics__history {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(75, 35, 56, 0.12);
}

.case-diagnostics__history > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.case-diagnostics__history h4,
.case-diagnostics__history > div span {
  margin: 0;
}

.case-diagnostics__history h4 {
  color: var(--asser-secondary);
  font-size: 0.82rem;
}

.case-diagnostics__history > div span {
  color: var(--asser-muted);
  font-size: 0.68rem;
}

.case-diagnostics__history ol {
  display: grid;
  gap: 0.35rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.case-diagnostics__history li {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  gap: 0.55rem;
  color: var(--asser-text);
  font-size: 0.72rem;
}

.case-diagnostics__history time {
  color: var(--asser-muted);
}

.case-diagnostics__console {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-top: 0.8rem;
  color: var(--asser-primary);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.case-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.case-panel__heading h3,
.case-panel__heading p {
  margin: 0;
}

.case-panel__heading > span {
  flex: 0 0 auto;
  color: var(--asser-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.case-processing-warning {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid #9a6419;
  background: #fff8ec;
  color: #6f4a14;
  font-size: 0.78rem;
  line-height: 1.45;
}

.case-overall-progress {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}

.case-overall-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--asser-text);
  font-size: 0.74rem;
}

.case-overall-progress > span {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebe9;
}

.case-overall-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--asser-accent);
  transition: width 300ms ease;
}

.case-processing-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-processing-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 6px;
  background: #fff;
}

.case-processing-list li:has(.case-document-delete) {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.case-processing-list li > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.case-processing-list strong,
.case-processing-list small {
  overflow-wrap: anywhere;
}

.case-processing-list strong {
  color: var(--asser-text);
  font-size: 0.82rem;
}

.case-processing-list small {
  margin-top: 0.15rem;
  color: var(--asser-muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.case-processing-list__indicator {
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #a2aaa8;
  box-shadow: 0 0 0 1px #a2aaa8;
}

.case-processing-list__indicator--processing {
  background: #9a6419;
  box-shadow: 0 0 0 1px #9a6419;
}

.case-processing-list__indicator--read {
  background: var(--asser-accent);
  box-shadow: 0 0 0 1px var(--asser-accent);
}

.case-processing-list__indicator--unreadable {
  background: #a33545;
  box-shadow: 0 0 0 1px #a33545;
}

.case-processing-list__state {
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: #eef1f0;
  color: #4d5956;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.case-processing-list__state--read {
  background: #e6f2ef;
  color: #24564d;
}

.case-processing-list__state--unreadable {
  background: #fae8eb;
  color: #8d2c3a;
}

.case-missing-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--asser-text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.case-missing-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a6419;
  content: "";
}

/* Staff workspace */
.asser-ai-staff.staff-dashboard {
  width: min(1240px, calc(100% - 2rem));
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 8px;
}

.asser-ai-staff__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.asser-ai-staff__header h1 {
  margin: 0.25rem 0 0.45rem;
  color: var(--asser-secondary);
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  letter-spacing: 0;
}

.asser-ai-staff__header p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--asser-muted);
}

.staff-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.staff-access-badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(40, 77, 71, 0.24);
  border-radius: 999px;
  background: #e9f4f1;
  color: #24564d;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.staff-console-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--asser-primary);
  font-size: 0.74rem;
  font-weight: 800;
}

.asser-ai-kicker {
  margin: 0;
  color: var(--asser-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asser-ai-staff__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.asser-ai-staff__stats article {
  display: grid;
  gap: 0.3rem;
  min-height: 82px;
  padding: 1rem;
  border: 1px solid var(--asser-border);
  border-radius: 8px;
  background: #fff;
}

.asser-ai-staff__stats strong {
  color: var(--asser-secondary);
  font-size: 1.45rem;
}

.asser-ai-staff__stats span {
  color: var(--asser-muted);
  font-size: 0.75rem;
}

.staff-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.4fr) minmax(170px, 0.4fr) auto auto;
  align-items: end;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--asser-border);
  border-radius: 8px;
  background: var(--asser-sand);
}

.staff-filters label,
.staff-upload-panel label {
  display: grid;
  gap: 0.4rem;
  color: var(--asser-secondary);
  font-size: 0.76rem;
  font-weight: 800;
}

.staff-filters input,
.staff-filters select,
.staff-upload-panel input,
.staff-upload-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cfc1c7;
  border-radius: 6px;
  background: #fff;
  color: var(--asser-text);
  font: inherit;
  outline: none;
}

.staff-upload-panel input[type="file"] {
  padding: 0.6rem;
}

.staff-filters input:focus,
.staff-filters select:focus,
.staff-upload-panel input:focus,
.staff-upload-panel select:focus,
.case-document-list a:focus-visible,
.staff-back-link:focus-visible {
  border-color: var(--asser-primary);
  outline: 3px solid rgba(125, 68, 94, 0.18);
  outline-offset: 2px;
}

.staff-filters__reset {
  align-self: center;
  color: var(--asser-primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.staff-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--asser-border);
  border-radius: 8px;
  background: var(--asser-sand);
}

.staff-bulk-bar__all,
.staff-bulk-bar__confirm {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--asser-secondary);
  font-size: 0.8rem;
  font-weight: 800;
}

.staff-bulk-bar__count {
  color: var(--asser-muted);
  font-size: 0.8rem;
}

.staff-bulk-bar .asser-ai-button {
  margin-left: auto;
}

.staff-folder {
  margin-bottom: 0.85rem;
  border: 1px solid var(--asser-border);
  border-radius: 10px;
  background: var(--asser-sand);
  overflow: hidden;
}

.staff-folder summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
}

.staff-folder summary::-webkit-details-marker {
  display: none;
}

.staff-folder summary::after {
  margin-left: auto;
  color: var(--asser-primary);
  font-size: 0.7rem;
  font-weight: 800;
  content: "NASCONDI";
}

.staff-folder:not([open]) summary::after {
  content: "MOSTRA";
}

.staff-folder__name {
  color: var(--asser-text);
  font-weight: 800;
}

.staff-folder__count {
  color: var(--asser-muted);
  font-size: 0.76rem;
}

.staff-folder__cases {
  display: grid;
  gap: 0.6rem;
  padding: 0 0.75rem 0.75rem;
}

.staff-case-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.staff-case-card {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(250px, 0.9fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--asser-border);
  border-radius: 8px;
  background: #fff;
}

.staff-case-card__select {
  display: flex;
  align-items: center;
}

.staff-case-card__select input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.staff-case-card__client,
.staff-client-profile__heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.staff-case-card__client h2 {
  margin: 0;
  color: var(--asser-text);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.staff-case-card__client a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--asser-primary);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.staff-avatar {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.staff-case-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.staff-case-card__meta span {
  display: grid;
  min-width: 0;
  color: var(--asser-text);
  font-size: 0.76rem;
}

.staff-case-card__meta small {
  color: var(--asser-muted);
}

.staff-case-card__meta code {
  overflow: hidden;
  color: var(--asser-secondary);
  font-family: inherit;
  font-weight: 800;
  text-overflow: ellipsis;
}

.staff-empty {
  padding: 1.5rem;
  border: 1px dashed #bcaab2;
  border-radius: 8px;
  text-align: center;
}

.staff-empty p {
  margin-bottom: 0;
  color: var(--asser-muted);
}

.staff-notice {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--asser-forest);
  background: var(--asser-ice);
  color: #23443f;
}

.staff-notice--error {
  border-left-color: #a12d45;
  background: #fff0f3;
  color: #842138;
}

.customer-notice {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--asser-forest);
  background: var(--asser-ice);
  color: #23443f;
  font-size: 0.84rem;
  line-height: 1.5;
}

.customer-notice--warning {
  border-left-color: #9a6419;
  background: #fff8eb;
  color: #61400f;
}

.customer-notice--error {
  border-left-color: #a12d45;
  background: #fff0f3;
  color: #842138;
}

.case-unreadable-alert {
  display: grid;
  gap: 0.9rem;
}

.case-unreadable-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-unreadable-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(161, 45, 69, 0.2);
  border-radius: 6px;
  background: #fff;
}

.case-unreadable-list li > div {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.case-unreadable-list small {
  color: #76515a;
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.case-unreadable-list form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.case-unreadable-list input[type="file"] {
  width: min(260px, 100%);
  min-height: 44px;
  padding: 0.45rem;
  border: 1px solid #d8c8ce;
  border-radius: 6px;
  background: #fff;
  color: var(--asser-text);
  font: inherit;
  font-size: 0.72rem;
}

.staff-case-detail {
  margin-top: 1.5rem;
}

.staff-back-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0.4rem 0.2rem;
  margin-bottom: 1rem;
  color: var(--asser-primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.staff-case-detail__header code {
  display: inline-block;
  max-width: 100%;
  margin-top: 0.4rem;
  color: var(--asser-muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.staff-client-profile {
  margin-top: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--asser-border);
  border-radius: 8px;
  background: var(--asser-sand);
}

.staff-client-profile h3 {
  margin: 0.2rem 0 0;
  color: var(--asser-text);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.staff-client-profile dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.staff-client-profile dl > div {
  min-width: 0;
}

.staff-client-profile dt {
  color: var(--asser-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.staff-client-profile dd {
  margin: 0.2rem 0 0;
  color: var(--asser-text);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.staff-client-profile dd a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--asser-primary);
}

.staff-client-plan-status {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.9rem;
}

.staff-client-plan-status span {
  display: grid;
  color: var(--asser-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.staff-client-plan-status small {
  color: var(--asser-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.staff-client-plan-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--asser-border);
}

.staff-client-plan-form .description {
  flex-basis: 100%;
  margin: 0.3rem 0 0;
  color: var(--asser-muted);
  font-size: 0.76rem;
}

.staff-view-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.staff-view-nav a {
  padding: 0.55rem 1rem;
  border: 1px solid var(--asser-border);
  border-radius: 999px;
  color: var(--asser-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.staff-view-nav a.is-active {
  border-color: var(--asser-primary);
  background: var(--asser-primary);
  color: #fff;
}

.staff-client-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.staff-client-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.9fr) minmax(260px, auto);
  align-items: start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--asser-border);
  border-radius: 8px;
  background: #fff;
}

.staff-client-card__identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.staff-client-card__identity h2 {
  margin: 0;
  color: var(--asser-text);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.staff-client-card__identity a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--asser-primary);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.staff-client-card__usage {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.staff-client-card__usage span {
  display: grid;
  color: var(--asser-text);
  font-size: 0.8rem;
  font-weight: 800;
}

.staff-client-card__usage small {
  color: var(--asser-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.staff-client-card__controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 220px;
}

.staff-client-card__controls-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.staff-client-card__pending-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(214, 158, 46, 0.14);
  color: #8a6210;
  font-size: 0.68rem;
  font-weight: 800;
}

.staff-client-card .staff-client-plan-form {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  flex-wrap: nowrap;
  justify-content: space-between;
}

@media (max-width: 920px) {
  .staff-client-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .staff-client-card .staff-client-plan-form {
    flex-wrap: wrap;
  }
}

.staff-client-plan-form label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
}

.staff-client-plan-form label span {
  color: var(--asser-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.staff-client-plan-form select {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--asser-border);
  border-radius: 6px;
  font-size: 0.85rem;
}

.staff-client-card__more {
  margin-top: 0.15rem;
}

.staff-client-card__more summary {
  cursor: pointer;
  list-style: none;
  color: var(--asser-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.staff-client-card__more summary::-webkit-details-marker {
  display: none;
}

.staff-client-card__more summary::before {
  content: '\203A';
  display: inline-block;
  margin-right: 0.3rem;
  transition: transform 0.15s ease;
}

.staff-client-card__more[open] summary::before {
  transform: rotate(90deg);
}

.staff-client-card__more .staff-client-plan-form {
  margin-top: 0.5rem;
  justify-content: flex-start;
}

.staff-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: start;
  gap: 1rem;
  margin-top: 1rem;
}

.staff-workspace__main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.staff-upload-panel {
  position: sticky;
  top: 7rem;
  padding: 1.15rem;
  border: 1px solid rgba(40, 77, 71, 0.28);
  border-radius: 8px;
  background: var(--asser-ice);
}

.staff-upload-panel h3 {
  margin: 0.3rem 0 0.5rem;
  color: var(--asser-secondary);
}

.staff-upload-panel > p:not(.asser-ai-kicker) {
  color: #53635f;
  font-size: 0.8rem;
  line-height: 1.5;
}

.staff-upload-panel form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.staff-upload-panel label small {
  color: var(--asser-muted);
  font-weight: 500;
}

.staff-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 1.15rem;
  border: 1px solid rgba(161, 45, 69, 0.28);
  border-radius: 8px;
  background: #fff6f7;
}

.staff-danger-zone h3,
.staff-danger-zone p {
  margin: 0;
}

.staff-danger-zone h3 {
  margin-top: 0.25rem;
  color: #731d30;
  font-size: 1rem;
}

.staff-danger-zone p:last-child {
  max-width: 720px;
  margin-top: 0.35rem;
  color: #76515a;
  font-size: 0.78rem;
  line-height: 1.5;
}

.staff-danger-zone form {
  display: grid;
  flex: 0 0 auto;
  gap: 0.65rem;
}

.staff-danger-zone label {
  color: #731d30;
  font-size: 0.72rem;
  font-weight: 700;
}

.asser-ai-button--danger {
  border-color: #a12d45;
  background: #a12d45;
  color: #fff;
}

.asser-ai-button--danger:hover,
.asser-ai-button--danger:focus-visible {
  border-color: #721729;
  background: #721729;
  color: #fff;
}

@media (max-width: 980px) {
  .asser-ai-staff__stats,
  .staff-client-profile dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-filters {
    grid-template-columns: 1fr 1fr;
  }

  .staff-case-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .staff-case-card__meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .staff-workspace {
    grid-template-columns: 1fr;
  }

  .staff-upload-panel {
    position: static;
  }

  .staff-danger-zone {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .case-detail__header,
  .staff-case-detail__header,
  .asser-ai-staff__header,
  .case-panel--report {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-detail__grid,
  .asser-ai-staff__stats,
  .staff-filters,
  .staff-client-profile dl,
  .case-diagnostics__grid,
  .case-diagnostics__message dl {
    grid-template-columns: 1fr;
  }

  .staff-header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .staff-header-actions > * {
    justify-content: center;
    width: 100%;
  }

  .case-diagnostics__history li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .case-document-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .case-document-list__actions {
    grid-column: 2;
    justify-self: start;
  }

  .case-processing-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .case-processing-list__state {
    grid-column: 2;
    justify-self: start;
  }

  .case-processing-list li:has(.case-document-delete) {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .case-processing-list .case-document-delete {
    grid-column: 2;
  }

  .case-unreadable-list li {
    grid-template-columns: 1fr;
  }

  .case-unreadable-list form {
    align-items: stretch;
    flex-direction: column;
  }

  .case-unreadable-list input[type="file"],
  .case-unreadable-list .portal-button,
  .staff-danger-zone form,
  .staff-danger-zone .asser-ai-button,
  .staff-bulk-bar .asser-ai-button {
    width: 100%;
  }

  .staff-bulk-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .staff-bulk-bar .asser-ai-button {
    margin-left: 0;
  }

  .staff-case-card {
    grid-template-columns: 1fr;
  }

  .staff-case-card__meta,
  .staff-case-card .case-status {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .staff-case-card .asser-ai-button {
    width: 100%;
  }
}

/* Keep the redesigned navigation after the legacy responsive rules. */
@media (max-width: 1280px) and (min-width: 921px) {
  .portal-nav__inner {
    width: min(1240px, calc(100% - 1.25rem));
    gap: 0.8rem;
  }

  .portal-nav__links,
  .portal-nav__actions {
    gap: 0.75rem;
    font-size: 0.72rem;
  }

}

@media (max-width: 920px) {
  .portal-nav {
    position: sticky;
    box-shadow: 0 10px 30px rgba(44, 31, 41, 0.05);
  }

  .portal-nav__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    min-height: 70px;
    padding: 0.65rem 0;
  }

  .portal-nav__toggle {
    display: grid;
  }

  .portal-nav__drawer {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.5rem 0 0.4rem;
    border-top: 1px solid rgba(75, 35, 56, 0.09);
  }

  .portal-nav--open .portal-nav__drawer {
    display: grid;
    gap: 0.9rem;
    animation: nav-drawer-in 180ms ease-out both;
  }

  .portal-nav__links {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0.4rem;
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  .portal-nav__links > a,
  .portal-nav__dropdown > a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(75, 35, 56, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    white-space: normal;
  }

  .portal-nav__dropdown {
    padding: 0;
  }

  .portal-nav__dropdown-menu {
    display: none !important;
  }

  .portal-nav__actions {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    justify-content: stretch;
    gap: 0.55rem;
    width: 100%;
  }

  .portal-nav__actions > a:not(.portal-button) {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(75, 35, 56, 0.11);
    border-radius: 8px;
    background: #fff;
  }

}

@media (max-width: 560px) {
  .portal-nav__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-nav__actions .portal-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .portal-chat__launcher {
    width: auto;
    min-width: 92px;
    min-height: 52px;
    padding: 5px 10px 5px 5px;
  }

  .portal-chat__launcher .portal-chat__launcher-logo {
    width: 40px;
    height: 40px;
  }

  .portal-chat__launcher .portal-chat__launcher-copy {
    display: flex;
  }

  .portal-chat__launcher-copy strong {
    display: none;
  }
}

/* Authenticated chat and employee conversation history */
.portal-chat__messages--locked {
  height: auto;
  min-height: 230px;
  justify-content: center;
  background: #fbf8f5;
}

.portal-chat__auth {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(75, 35, 56, 0.12);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.portal-chat__auth strong {
  color: var(--asser-secondary);
  font-size: 0.86rem;
}

.portal-chat__auth p {
  margin: 0;
  color: var(--asser-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.portal-chat__auth > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.portal-chat__auth a {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--asser-primary);
  border-radius: 6px;
  color: var(--asser-primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.portal-chat__auth a:first-child {
  background: var(--asser-primary);
  color: #fff;
}

.asser-ai-staff__stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.staff-chat-history {
  margin-top: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--asser-border);
  border-radius: 8px;
  background: #fff;
}

.staff-chat-history__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.staff-chat-history__heading h2 {
  margin: 0.2rem 0 0;
  color: var(--asser-text);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.staff-chat-history__heading > span {
  color: var(--asser-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.staff-chat-history__empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--asser-border);
  border-radius: 8px;
  color: var(--asser-muted);
  font-size: 0.8rem;
  text-align: center;
}

.staff-chat-history__list {
  display: grid;
  gap: 0.55rem;
}

.staff-chat-row {
  overflow: hidden;
  border: 1px solid var(--asser-border);
  border-radius: 8px;
  background: #fff;
}

.staff-chat-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding: 0.8rem 0.9rem;
  list-style: none;
  cursor: pointer;
}

.staff-chat-row summary::-webkit-details-marker {
  display: none;
}

.staff-chat-row__main,
.staff-chat-row__meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.staff-chat-row__main b {
  overflow: hidden;
  color: var(--asser-text);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-chat-row__main strong {
  color: var(--asser-secondary);
  font-size: 0.76rem;
}

.staff-chat-row__main small,
.staff-chat-row__meta small {
  color: var(--asser-muted);
  font-size: 0.68rem;
}

.staff-chat-row__meta {
  justify-items: end;
}

.staff-chat-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: #f3ecef;
  color: var(--asser-primary);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
}

.staff-chat-status--success {
  background: #e4f1ed;
  color: #245a50;
}

.staff-chat-status--failed {
  background: #fae9ec;
  color: #963747;
}

.staff-chat-row__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 0.9rem 0.9rem;
}

.staff-chat-row__content > div {
  padding: 0.8rem;
  border-left: 3px solid rgba(125, 68, 94, 0.35);
  background: var(--asser-sand);
}

.staff-chat-row__content strong {
  color: var(--asser-secondary);
  font-size: 0.7rem;
}

.staff-chat-row__content p {
  margin: 0.35rem 0 0;
  color: var(--asser-text);
  font-size: 0.76rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.staff-chat-row__content footer {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--asser-muted);
  font-size: 0.68rem;
}

@media (max-width: 1100px) {
  .asser-ai-staff__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .asser-ai-staff__stats,
  .staff-chat-row__content {
    grid-template-columns: 1fr;
  }

  .staff-chat-row summary {
    grid-template-columns: 1fr;
  }

  .staff-chat-row__meta {
    justify-items: start;
  }
}

/* Passaggio 4 di 5 — registrazione audio libera e guidata a domande. */

.audio-recorder {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(75, 35, 56, 0.11);
  border-radius: 20px;
  background: #fff;
}

.audio-recorder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.audio-recorder__status {
  margin-top: 0.6rem;
  color: var(--asser-muted);
  font-size: 0.82rem;
  min-height: 1.2em;
}

.audio-talking-points-intro {
  margin-top: 1.1rem;
  font-weight: 600;
  color: var(--asser-secondary);
}

.audio-talking-points {
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
  color: var(--asser-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.audio-talking-points li {
  margin-bottom: 0.3rem;
}

.audio-splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.audio-step-body {
  margin-top: 1rem;
}

.audio-confirmation {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(40, 77, 71, 0.2);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(237, 244, 242, 0.96), rgba(255, 255, 255, 0.9));
}

.summary-confirmation-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}

.summary-confirmation-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(75, 35, 56, 0.11);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.summary-confirmation-row input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.summary-confirmation-row strong {
  display: block;
  color: var(--asser-secondary);
  font-size: 0.92rem;
}

.summary-confirmation-row small {
  display: block;
  color: var(--asser-muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.generated-questions-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1rem 0;
}

.generated-question-row {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(75, 35, 56, 0.11);
  border-radius: 14px;
  background: #fff;
}

.generated-question-text {
  margin: 0 0 0.6rem;
  color: var(--asser-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

.generated-question-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.generated-question-selected {
  display: block;
  margin-top: 0.5rem;
  color: var(--asser-muted);
  font-size: 0.8rem;
}

.audio-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

/* Dialogo adattivo a più turni (INTERACTIVE_DIALOGUE_V1). */

.dialogue-messages {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.2rem 0;
  max-height: 26rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.dialogue-message {
  display: flex;
  max-width: 85%;
}

.dialogue-message p {
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.dialogue-message--system {
  align-self: flex-start;
}

.dialogue-message--system p {
  background: var(--asser-ice);
  color: var(--asser-secondary);
  border-bottom-left-radius: 4px;
}

.dialogue-message--user {
  align-self: flex-end;
}

.dialogue-message--user p {
  background: var(--asser-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.dialogue-answer-area {
  margin-top: 0.4rem;
}

.dialogue-mode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.dialogue-input-slot {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dialogue-text-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--asser-border);
  border-radius: 14px;
  font: inherit;
  color: var(--asser-text);
  resize: vertical;
  box-sizing: border-box;
}

.dialogue-text-input:focus {
  outline: 2px solid var(--asser-accent);
  outline-offset: 1px;
}

.wizard-resumed-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--asser-accent);
  border-radius: 4px;
  background: var(--asser-alt-bg);
  color: var(--asser-secondary);
  font-size: 0.84rem;
  line-height: 1.5;
}

.wizard-resumed-banner span {
  flex: 1 1 16rem;
}

/* Guide hub and streamlined module library */
.guide-hub,
.module-library {
  width: min(1180px, calc(100% - 2rem));
}

.guide-hero--hub,
.module-library__hero {
  max-width: 920px;
}

.guide-hero--hub .portal-title,
.module-library__hero .portal-title {
  max-width: 900px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.03;
}

.guide-hero--hub .portal-lead,
.module-library__hero .portal-lead {
  max-width: 800px;
}

.guide-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.guide-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.5rem 0 0;
  border-block: 1px solid rgba(75, 35, 56, 0.12);
}

.guide-overview > div {
  display: grid;
  gap: 0.2rem;
  padding: 1.4rem clamp(0.8rem, 3vw, 1.8rem);
}

.guide-overview > div + div {
  border-left: 1px solid rgba(75, 35, 56, 0.12);
}

.guide-overview strong {
  color: var(--asser-secondary);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
}

.guide-overview span {
  color: var(--asser-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.guide-module-map {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.5fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: 18px;
  background: var(--asser-secondary);
  color: #fff;
}

.guide-module-map .portal-kicker {
  color: #f4b5d2;
}

.guide-module-map h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.08;
}

.guide-module-map header > p:last-child {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.6;
}

.guide-module-map > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.guide-module-map > div > a:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.guide-module-map a {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.25rem 0.7rem;
  align-content: center;
  min-height: 92px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.guide-module-map a:hover,
.guide-module-map a:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.guide-module-map a > span {
  grid-row: 1 / span 2;
  color: #f4b5d2;
  font-size: 0.75rem;
  font-weight: 900;
}

.guide-module-map a strong {
  font-size: 0.82rem;
}

.guide-module-map a small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  line-height: 1.45;
}

.guide-groups {
  display: grid;
  gap: 4.5rem;
}

.guide-group {
  scroll-margin-top: 150px;
}

.guide-group__header {
  display: grid;
  grid-template-columns: 3.3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.guide-group__header > span {
  display: grid;
  width: 3.3rem;
  height: 3.3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-ice);
  color: var(--asser-forest);
  font-size: 0.8rem;
  font-weight: 900;
}

.guide-group__header h2 {
  margin: 0;
  color: var(--asser-secondary);
  font-size: clamp(1.8rem, 3.4vw, 2.65rem);
  line-height: 1.08;
}

.guide-group__header p {
  max-width: 760px;
  margin: 0.55rem 0 0;
  color: var(--asser-muted);
  line-height: 1.65;
}

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

.guide-topic {
  scroll-margin-top: 150px;
  border: 1px solid rgba(75, 35, 56, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(75, 35, 56, 0.055);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.guide-topic:hover,
.guide-topic[open] {
  border-color: rgba(125, 68, 94, 0.28);
  box-shadow: 0 18px 38px rgba(75, 35, 56, 0.09);
}

.guide-topic[open] {
  transform: translateY(-2px);
}

.guide-topic summary {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr) 2rem;
  gap: 0.8rem;
  align-items: center;
  min-height: 108px;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.guide-topic summary::-webkit-details-marker {
  display: none;
}

.guide-topic summary:focus-visible {
  outline: 3px solid rgba(126, 63, 93, 0.22);
  outline-offset: -3px;
}

.guide-topic__number,
.guide-topic__toggle {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.guide-topic__number {
  width: 2.45rem;
  height: 2.45rem;
  background: var(--asser-ice);
  color: var(--asser-forest);
  font-size: 0.72rem;
}

.guide-topic__toggle {
  width: 2rem;
  height: 2rem;
  background: var(--asser-alt-bg);
  color: var(--asser-primary);
  transition: transform 180ms ease, background-color 180ms ease;
}

.guide-topic[open] .guide-topic__toggle {
  background: var(--asser-primary);
  color: #fff;
  transform: rotate(45deg);
}

.guide-topic__heading {
  display: grid;
  gap: 0.35rem;
}

.guide-topic__heading strong {
  color: var(--asser-secondary);
  font-size: 0.95rem;
  line-height: 1.3;
}

.guide-topic__heading small {
  color: var(--asser-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.guide-topic__body {
  padding: 0 1.1rem 1.2rem;
  border-top: 1px solid rgba(75, 35, 56, 0.08);
}

.guide-topic__body h3 {
  margin: 1.1rem 0 0.65rem;
  color: var(--asser-secondary);
  font-size: 0.9rem;
}

.guide-topic__body ul,
.module-card__details ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--asser-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.guide-topic__body li::marker,
.module-card__details li::marker {
  color: var(--asser-forest);
}

.guide-topic__action {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--asser-forest);
  background: var(--asser-ice);
}

.guide-topic__action strong {
  color: var(--asser-forest);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-topic__action p {
  margin: 0.35rem 0 0;
  color: #526561;
  font-size: 0.8rem;
  line-height: 1.55;
}

.guide-topic__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.guide-topic__links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(125, 68, 94, 0.2);
  border-radius: 999px;
  color: var(--asser-primary);
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

.guide-topic__links a:hover,
.guide-topic__links a:focus-visible {
  border-color: var(--asser-primary);
  background: var(--asser-alt-bg);
}

.guide-disclaimer {
  margin-top: 4rem;
  padding: 1.3rem 1.5rem;
  border-left: 4px solid var(--asser-primary);
  background: rgba(244, 233, 237, 0.68);
}

.guide-disclaimer strong {
  color: var(--asser-secondary);
}

.guide-disclaimer p {
  margin: 0.35rem 0 0;
  color: var(--asser-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.module-library__hero .portal-button {
  margin-top: 1.4rem;
}

.module-library__hero .guide-hero__actions .portal-button {
  margin-top: 0;
}

.module-overview {
  margin-bottom: 2.5rem;
}

.module-choice {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: 18px;
  background: var(--asser-secondary);
  color: #fff;
}

.module-choice .portal-kicker {
  color: #f4b5d2;
}

.module-choice h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1.08;
}

.module-choice ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-choice li {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.module-choice li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.module-choice li strong {
  color: #fff;
  font-size: 0.82rem;
}

.module-choice li span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  line-height: 1.5;
}

.module-section {
  scroll-margin-top: 150px;
  margin-top: 4rem;
}

.module-section + .module-section {
  padding-top: 4rem;
  border-top: 1px solid rgba(75, 35, 56, 0.12);
}

.module-section__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.module-section__header h2 {
  max-width: 850px;
  margin: 0;
  color: var(--asser-secondary);
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.06;
}

.module-section__header p:last-child {
  max-width: 850px;
  margin: 0.75rem 0 0;
  color: var(--asser-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.module-section__count {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(75, 35, 56, 0.14);
  border-radius: 6px;
  color: var(--asser-primary);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.module-name-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  padding: 1rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.module-name-index a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(125, 68, 94, 0.18);
  border-radius: 6px;
  color: var(--asser-secondary);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.module-name-index a:hover,
.module-name-index a:focus-visible {
  border-color: var(--asser-primary);
  background: var(--asser-alt-bg);
}

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

.module-grid > .module-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.module-card {
  scroll-margin-top: 150px;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  border: 1px solid rgba(75, 35, 56, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(75, 35, 56, 0.065);
}

.module-card--official {
  border-top: 3px solid var(--asser-forest);
}

.module-card--asser {
  border-top: 3px solid var(--asser-primary);
}

.module-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
}

.module-card__header h2,
.module-card__header h3 {
  margin: 0;
  color: var(--asser-secondary);
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  line-height: 1.08;
}

.module-card__header p:last-child {
  margin: 0.8rem 0 0;
  color: var(--asser-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.module-card__code {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  background: var(--asser-alt-bg);
  color: var(--asser-primary);
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.module-card--official .module-card__code {
  background: var(--asser-ice);
  color: var(--asser-forest);
}

.module-card__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(75, 35, 56, 0.08);
}

.module-card__details h3,
.module-card__details h4 {
  margin: 0 0 0.55rem;
  color: var(--asser-secondary);
  font-size: 0.85rem;
}

.module-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

.module-card__meta {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.module-card__meta small {
  min-width: 0;
  color: var(--asser-muted);
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.module-card__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.module-source-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(125, 68, 94, 0.24);
  border-radius: 6px;
  color: var(--asser-primary);
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

.module-source-link:hover,
.module-source-link:focus-visible {
  border-color: var(--asser-primary);
  background: var(--asser-alt-bg);
}

@media (max-width: 820px) {
  .guide-topic-grid,
  .module-grid,
  .guide-module-map,
  .module-choice,
  .module-card__details {
    grid-template-columns: 1fr;
  }

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

  .module-section__header {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .guide-hub,
  .module-library {
    width: min(100% - 1.25rem, 1180px);
  }

  .guide-hero--hub .portal-title,
  .module-library__hero .portal-title {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .guide-hero__actions,
  .guide-hero__actions .portal-button,
  .module-library__hero .portal-button {
    width: 100%;
  }

  .guide-overview {
    grid-template-columns: 1fr;
  }

  .guide-overview > div {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 0.8rem;
    padding: 0.85rem 0.2rem;
  }

  .guide-overview > div + div {
    border-top: 1px solid rgba(75, 35, 56, 0.12);
    border-left: 0;
  }

  .guide-group {
    scroll-margin-top: 90px;
  }

  .guide-group__header {
    grid-template-columns: 2.7rem minmax(0, 1fr);
  }

  .guide-group__header > span {
    width: 2.7rem;
    height: 2.7rem;
  }

  .guide-topic summary {
    grid-template-columns: 2.2rem minmax(0, 1fr) 1.8rem;
    gap: 0.65rem;
    min-height: 94px;
    padding: 0.85rem;
  }

  .guide-topic__number {
    width: 2.2rem;
    height: 2.2rem;
  }

  .guide-topic__heading small {
    display: none;
  }

  .guide-topic__links,
  .guide-topic__links a,
  .module-card__footer,
  .module-card__footer .guide-download,
  .module-card__actions,
  .module-source-link {
    width: 100%;
  }

  .guide-topic__links a,
  .module-card__footer .guide-download,
  .module-source-link {
    justify-content: center;
  }

  .module-choice ol {
    grid-template-columns: 1fr;
  }

  .guide-module-map > div {
    grid-template-columns: 1fr;
  }

  .module-card__header {
    grid-template-columns: 1fr;
  }

  .module-card__code {
    grid-row: 1;
    justify-self: start;
  }

  .module-card__footer {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Home 2026 v4: large, high-contrast controls for effortless orientation.
   Scoping mancante corretto (29/09/2026): senza il prefisso ".portal-home-v3",
   qui sotto, questa e le due regole gemelle piu' in basso si applicavano
   all'intestazione di TUTTE le pagine del sito pubblico, non solo alla nuova
   home in lavorazione — il font piu' grande (15/14/16px, contro lo 0.78rem/
   0.72rem previsto altrove in questo stesso file) faceva andare a capo le
   voci piu' lunghe del menu ("Le tue domande"), rompendo l'allineamento
   dell'intestazione ovunque tranne dove serviva davvero. */
.portal-home-v3 .portal-nav__links,
.portal-home-v3 .portal-nav__actions {
  font-size: 15px;
}

.portal-home-v3 .portal-kicker,
.portal-home-v3 .portal-kicker-row {
  color: #703951;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.portal-home-v3__hero-copy h1 {
  font-size: 60px;
  line-height: 1.07;
}

.portal-home-v3__hero-copy > p {
  color: #4f474b;
  font-size: 20px;
  line-height: 1.7;
}

.portal-home-v3__hero .portal-button,
.portal-home-v3__ready .portal-button {
  min-height: 58px;
  padding: 0.9rem 1.7rem;
  font-size: 17px;
}

.portal-home-v3__hero .portal-button--secondary {
  border: 2px solid #694258;
  background: #fff;
  color: #4b2338 !important;
}

.portal-home-v3__hero .portal-hero__reassurance span {
  color: #463e42;
  font-size: 15px;
}

.home-ai-stage__top span,
.home-ai-stage__caption span {
  font-size: 13px;
}

.home-ai-stage__top small,
.home-ai-stage__result small {
  font-size: 11px;
}

.home-ai-stage__documents span {
  min-height: 56px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.home-ai-stage__result strong {
  font-size: 19px;
}

.home-ai-stage__result span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.portal-home-v3__start {
  width: min(1000px, calc(100% - 3rem));
  padding-block: 6rem 7rem;
}

.portal-home-v3__section-heading {
  max-width: 820px;
}

.portal-home-v3__section-heading h2 {
  font-size: 52px;
  line-height: 1.08;
}

.portal-home-v3__section-heading > p:last-child {
  max-width: 700px;
  margin: 1.2rem 0 0;
  color: #4b4347;
  font-size: 20px;
  line-height: 1.65;
}

.portal-home-v3__choice-list {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.portal-home-v3__choice-list > a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 1.4rem;
  min-height: 132px;
  padding: 1.5rem 1.75rem;
  border: 2px solid #c9bbc1;
  border-radius: 8px;
  background: #fff;
  color: #3f2132 !important;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(75, 35, 56, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portal-home-v3__choice-list > a:hover,
.portal-home-v3__choice-list > a:focus-visible {
  border-color: #7d445e;
  box-shadow: 0 16px 36px rgba(75, 35, 56, 0.12);
  transform: translateY(-2px);
}

.portal-home-v3__choice-list > a > span,
.portal-home-v3__choice-list > a > b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid #a78695;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
}

.portal-home-v3__choice-list > a > b {
  border-color: #7d445e;
  background: #f4e9ed;
  font-size: 23px;
  font-style: normal;
}

.portal-home-v3__choice-list > a > div {
  min-width: 0;
}

.portal-home-v3__choice-list strong {
  display: block;
  color: inherit;
  font-size: 25px;
  line-height: 1.25;
}

.portal-home-v3__choice-list p {
  margin: 0.6rem 0 0;
  color: #554c50;
  font-size: 18px;
  line-height: 1.55;
}

.portal-home-v3__choice-list > a.is-primary {
  border-color: #4b2338;
  background: #4b2338;
  color: #fff !important;
  box-shadow: 0 16px 38px rgba(75, 35, 56, 0.2);
}

.portal-home-v3__choice-list > a.is-primary p {
  color: rgba(255, 255, 255, 0.88);
}

.portal-home-v3__choice-list > a.is-primary > span,
.portal-home-v3__choice-list > a.is-primary > b {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.portal-home-v3__flow-heading h2 {
  font-size: 46px;
  line-height: 1.1;
}

.portal-home-v3__flow-heading > a {
  margin-top: 1.8rem;
  font-size: 17px;
}

.portal-home-v3__steps article {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 2.2rem 0;
}

.portal-home-v3__steps article > span {
  width: 48px;
  height: 48px;
  border-width: 2px;
  font-size: 16px;
}

.portal-home-v3__steps small {
  font-size: 12px;
}

.portal-home-v3__steps h3 {
  font-size: 26px;
}

.portal-home-v3__steps p {
  color: #435d58;
  font-size: 18px;
  line-height: 1.6;
}

.portal-home-v3__ready h2 {
  font-size: 48px;
}

.portal-home-v3__ready > div:first-child > p:not(.portal-kicker) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.portal-home-v3__ready-link {
  color: #fff !important;
  font-size: 17px;
}

.portal-home-v3__ready-status > span {
  font-size: 13px;
}

.portal-home-v3__ready-status > strong {
  font-size: 27px;
}

.portal-home-v3__ready-status > a {
  color: #fff !important;
  font-size: 15px;
}

@media (max-width: 1280px) and (min-width: 921px) {
  .portal-home-v3 .portal-nav__links,
  .portal-home-v3 .portal-nav__actions {
    gap: 0.7rem;
    font-size: 14px;
  }
}

@media (max-width: 920px) {
  .portal-home-v3 .portal-nav__links > a,
  .portal-home-v3 .portal-nav__dropdown > a,
  .portal-home-v3 .portal-nav__actions > a:not(.portal-button) {
    min-height: 50px;
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .portal-home-v3__hero-copy h1 {
    font-size: 44px;
  }

  .portal-home-v3__section-heading h2,
  .portal-home-v3__flow-heading h2,
  .portal-home-v3__ready h2 {
    font-size: 38px;
  }
}

@media (max-width: 560px) {
  .portal-home-v3 .portal-kicker,
  .portal-home-v3 .portal-kicker-row {
    font-size: 12px;
  }

  .portal-home-v3__hero-copy h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .portal-home-v3__hero-copy > p,
  .portal-home-v3__section-heading > p:last-child {
    font-size: 18px;
    line-height: 1.65;
  }

  .portal-home-v3__hero .portal-button,
  .portal-home-v3__ready .portal-button {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    justify-content: center;
    font-size: 17px;
  }

  .home-ai-stage__top span,
  .home-ai-stage__caption span,
  .home-ai-stage__result span {
    font-size: 12px;
  }

  .home-ai-stage__documents span {
    font-size: 11px;
  }

  .home-ai-stage__result strong {
    font-size: 17px;
  }

  .portal-home-v3__start {
    width: min(100% - 1.25rem, 1000px);
    padding-block: 5rem;
  }

  .portal-home-v3__section-heading h2,
  .portal-home-v3__flow-heading h2,
  .portal-home-v3__ready h2 {
    font-size: 34px;
  }

  .portal-home-v3__choice-list {
    gap: 0.8rem;
    margin-top: 2.25rem;
  }

  .portal-home-v3__choice-list > a {
    grid-template-columns: 44px minmax(0, 1fr) 38px;
    gap: 0.8rem;
    min-height: 126px;
    padding: 1.15rem 0.85rem;
  }

  .portal-home-v3__choice-list > a > span {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .portal-home-v3__choice-list > a > b {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .portal-home-v3__choice-list strong {
    font-size: 21px;
    line-height: 1.28;
  }

  .portal-home-v3__choice-list p {
    font-size: 17px;
    line-height: 1.5;
  }

  .portal-home-v3__steps article {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 0.9rem;
  }

  .portal-home-v3__steps article > span {
    width: 44px;
    height: 44px;
  }

  .portal-home-v3__steps h3 {
    font-size: 24px;
  }

  .portal-home-v3__steps p,
  .portal-home-v3__ready > div:first-child > p:not(.portal-kicker) {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .portal-home-v3__hero-copy h1 {
    font-size: 33px;
  }

  .portal-home-v3__choice-list > a {
    grid-template-columns: 40px minmax(0, 1fr) 34px;
    gap: 0.65rem;
    padding-inline: 0.7rem;
  }

  .portal-home-v3__choice-list strong {
    font-size: 20px;
  }

  .portal-home-v3__choice-list p {
    font-size: 16px;
  }
}

/* ---------- Barra di navigazione in stile Apple ---------- */
.portal-nav {
  min-height: 56px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
}

.portal-nav__inner {
  min-height: 56px;
}

.portal-nav__links a,
.portal-nav__actions > a:not(.portal-button) {
  white-space: nowrap;
}

.portal-nav__chevron {
  display: inline-block;
  width: 0.38em;
  height: 0.38em;
  margin: 0 0 0.18em 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.55;
  transform: rotate(45deg);
}

@media (min-width: 921px) {
  .portal-nav__inner,
  .portal-home-v3 .portal-nav__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(0.75rem, 2vw, 2rem);
    width: min(1240px, calc(100% - 2.5rem));
    min-height: 56px;
  }

  .portal-nav .portal-nav__links,
  .portal-nav .portal-nav__actions,
  .portal-home-v3 .portal-nav__links,
  .portal-home-v3 .portal-nav__actions {
    gap: clamp(0.9rem, 1.7vw, 1.7rem);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.01em;
  }

  .portal-nav .portal-nav__links a,
  .portal-nav .portal-nav__actions > a:not(.portal-button) {
    color: rgba(29, 29, 31, 0.8);
    transition: color 0.2s ease;
  }

  .portal-nav .portal-nav__links a:hover,
  .portal-nav .portal-nav__actions > a:not(.portal-button):hover {
    color: #1d1d1f;
  }

  .portal-nav__dropdown {
    padding-block: 1rem;
  }

  .portal-nav__dropdown-menu {
    top: calc(100% - 0.4rem);
    width: 250px;
    padding: 0.5rem;
    border: 1px solid rgba(29, 29, 31, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  }

  .portal-nav__dropdown-menu a {
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 13px;
  }

  .portal-nav__dropdown-menu a:hover {
    background: rgba(125, 68, 94, 0.08);
    color: var(--asser-primary);
  }

  .portal-nav .portal-button--nav {
    min-height: 30px;
    padding: 0.35rem 0.95rem;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
  }
}

@media (min-width: 921px) and (max-width: 1280px) {
  .portal-nav__secondary {
    display: none;
  }

  .portal-nav .portal-nav__links,
  .portal-nav .portal-nav__actions,
  .portal-home-v3 .portal-nav__links,
  .portal-home-v3 .portal-nav__actions {
    gap: clamp(0.7rem, 1.3vw, 1.1rem);
    font-size: 12.5px;
  }
}

@media (min-width: 921px) and (max-width: 1060px) {
  .portal-nav__actions > a:not(.portal-button):not(.portal-nav__login) {
    display: none;
  }
}


/* =====================================================================
   Livello "Apple" - claim compatti e tipografia fluida (ottobre 2026).
   Solo grafica e tutto aggiuntivo: per tornare indietro basta togliere
   questo blocco fino al marcatore "fine livello Apple (condiviso)".
   ===================================================================== */
.asser-ai-app {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.asser-ai-app a,
.asser-ai-app button,
.asser-ai-app summary {
  -webkit-tap-highlight-color: transparent;
}

.asser-ai-app button,
.asser-ai-app .portal-button,
.asser-ai-app summary {
  touch-action: manipulation;
}

.portal-title,
.portal-hero__copy h1,
.portal-section__heading h2,
.recommended-layout h2,
.portal-cta h2,
.faq-hero__copy h1,
.guide-document__intro h2 {
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

.portal-title {
  font-size: clamp(1.75rem, 1.15rem + 1.9vw, 2.6rem);
}

.portal-hero__copy h1 {
  font-size: clamp(2.1rem, 1.2rem + 2.9vw, 3.5rem);
  line-height: 1.04;
}

.portal-section__heading h2,
.recommended-layout h2,
.portal-cta h2,
.faq-hero__copy h1,
.guide-document__intro h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem);
}

.portal-lead,
.portal-hero__copy > p {
  font-size: clamp(0.97rem, 0.92rem + 0.25vw, 1.08rem);
  line-height: 1.6;
}

.portal-lead {
  max-width: 40rem;
}

.portal-kicker {
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Home pubblica (v3): claim piu' piccoli e ritmo verticale compatto */
.portal-home-v3__hero {
  gap: clamp(2.25rem, 4vw, 3.5rem);
  min-height: 0;
  padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.portal-home-v3__hero-copy h1 {
  font-size: clamp(2.05rem, 1.15rem + 2.55vw, 3.05rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.portal-home-v3__hero-copy > p {
  max-width: 36rem;
  margin-top: 1.1rem;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.12rem);
  line-height: 1.6;
}

.portal-home-v3__hero .portal-hero__actions {
  margin-top: 1.6rem;
}

.portal-home-v3__section-heading h2,
.portal-home-v3__flow-heading h2,
.portal-home-v3__resources-heading h2,
.portal-home-v3__questions-intro h2,
.portal-home-v3__ready h2 {
  font-size: clamp(1.55rem, 1.05rem + 1.65vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.026em;
  line-height: 1.1;
  text-wrap: balance;
}

.portal-home-v3__start-primary h3 {
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.portal-home-v3__steps h3 {
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.012em;
}

.portal-home-v3__resources-heading > p,
.portal-home-v3__questions-intro > p:not(.portal-kicker),
.portal-home-v3__ready > div:first-child > p:not(.portal-kicker) {
  font-size: clamp(0.92rem, 0.9rem + 0.12vw, 0.98rem);
  line-height: 1.6;
}

.portal-home-v3__flow,
.portal-home-v3__questions,
.portal-home-v3__resources {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.portal-home-v3__ready {
  padding-block: clamp(3rem, 6.5vw, 4.5rem);
}

.portal-home-v3__flow-inner,
.portal-home-v3__questions {
  gap: clamp(2.25rem, 5vw, 4.5rem);
}

.portal-home-v3__ready {
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (max-width: 960px) {
  .portal-home-v3__hero {
    padding: 2rem 0 2.75rem;
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  /* i campi a 16px evitano lo zoom automatico di iPhone */
  .asser-ai-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
  .asser-ai-app select,
  .asser-ai-app textarea {
    font-size: 16px;
  }

  .asser-ai-app .portal-button {
    min-height: 46px;
  }
}
/* fine livello Apple (condiviso) */


/* ---------- Verifica del Comune: rottamazione dei tributi locali (elenco AdER) ---------- */
.enti-check {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  border: 1px solid rgba(75, 35, 56, 0.12);
  border-radius: 24px;
  background: linear-gradient(160deg, #fff 0%, var(--asser-sand) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, var(--shadow-soft);
  scroll-margin-top: 150px;
}

.enti-check__intro h2 {
  margin: 0.2rem 0 0.6rem;
  color: var(--asser-secondary);
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.enti-check__intro p {
  max-width: 64ch;
  margin: 0;
  color: var(--asser-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.enti-check__panel {
  display: grid;
  gap: 1rem;
}

.enti-check__form label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--asser-secondary);
  font-size: 0.82rem;
  font-weight: 700;
}

.enti-check__field {
  display: flex;
  gap: 0.6rem;
}

.enti-check__combo {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.enti-check__combo input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--asser-border);
  border-radius: 14px;
  background: #fff;
  color: var(--asser-text);
  font: inherit;
  font-size: 1rem;
}

.enti-check__combo input:focus {
  border-color: var(--asser-primary);
  outline: 3px solid rgba(125, 68, 94, 0.25);
  outline-offset: 0;
}

.enti-check__field button[type="submit"] {
  flex: none;
  white-space: nowrap;
}

.enti-check__suggestions {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  max-height: 18rem;
  margin: 0;
  padding: 0.3rem;
  overflow: auto;
  border: 1px solid var(--asser-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-deep);
  list-style: none;
}

.enti-check__suggestions[hidden] {
  display: none;
}

.enti-check__option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: var(--asser-text);
  cursor: pointer;
}

.enti-check__option small {
  color: var(--asser-muted);
  font-size: 0.74rem;
}

.enti-check__option:hover,
.enti-check__option[aria-selected="true"] {
  background: var(--asser-alt-bg);
}

.enti-check__result:empty {
  display: none;
}

.enti-check__hint {
  margin: 0;
  color: var(--asser-muted);
  font-size: 0.88rem;
}

.enti-check__card {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--asser-border);
  border-radius: 18px;
  background: #fff;
}

.enti-check__card p,
.enti-check__card h3,
.enti-check__card ul {
  margin: 0;
}

.enti-check__card h3 {
  color: var(--asser-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.enti-check__verdict {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--asser-deep);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
}

.enti-check__verdict::before {
  display: inline-grid;
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 50%;
  background: var(--asser-alt-bg);
  color: var(--asser-primary);
  font-size: 0.95rem;
  font-weight: 800;
  content: "×";
}

.enti-check__card--presente {
  border-color: rgba(40, 77, 71, 0.35);
  background: linear-gradient(160deg, #fff 0%, var(--asser-ice) 100%);
}

.enti-check__card--presente .enti-check__verdict::before {
  background: var(--asser-forest);
  color: #fff;
  content: "✓";
}

.enti-check__card--simile .enti-check__verdict::before {
  background: #fff1d6;
  color: #9a5b00;
  content: "?";
}

.enti-check__card--assente {
  border-color: rgba(163, 41, 38, 0.3);
  background: linear-gradient(160deg, #fff 0%, #fdf1f0 100%);
}

.enti-check__card--assente .enti-check__verdict::before {
  background: #a32926;
  color: #fff;
  content: "×";
}

.enti-check__entities {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.enti-check__entity {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(40, 77, 71, 0.18);
}

.enti-check__entity strong {
  color: var(--asser-secondary);
  font-size: 1rem;
}

.enti-check__place {
  color: var(--asser-muted);
  font-size: 0.8rem;
}

.enti-check__flag {
  color: #8a4b00;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.5;
}

.enti-check__note-line,
.enti-check__terzi {
  color: var(--asser-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.enti-check__meaning {
  color: var(--asser-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.enti-check__steps {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.2rem;
  color: var(--asser-text);
  font-size: 0.88rem;
  line-height: 1.55;
}

.enti-check__caution {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--asser-alt-bg);
  color: var(--asser-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.enti-check__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.enti-check__chip {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--asser-border);
  border-radius: 999px;
  background: #fff;
  color: var(--asser-secondary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
}

.enti-check__chip:hover,
.enti-check__chip:focus-visible {
  border-color: var(--asser-primary);
  background: var(--asser-alt-bg);
}

.enti-check__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.enti-check__links a {
  color: var(--asser-primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.enti-check__timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.enti-check__timeline li {
  display: grid;
  gap: 0.3rem;
  align-content: start;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(75, 35, 56, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.enti-check__timeline strong {
  color: var(--asser-secondary);
  font-size: 0.95rem;
  line-height: 1.25;
}

.enti-check__timeline span {
  color: var(--asser-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.enti-check__source,
.enti-check__limits {
  margin: 0;
  color: var(--asser-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.enti-check__source a {
  color: var(--asser-primary);
  font-weight: 700;
}

.enti-check__browse {
  border-top: 1px solid rgba(75, 35, 56, 0.12);
  padding-top: 1rem;
}

.enti-check__browse > summary {
  color: var(--asser-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.enti-check__region {
  border-bottom: 1px solid rgba(75, 35, 56, 0.08);
}

.enti-check__region > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.2rem;
  color: var(--asser-secondary);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.enti-check__region > summary small {
  color: var(--asser-muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.enti-check__names {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0 0 0.9rem;
  list-style: none;
  color: var(--asser-text);
  font-size: 0.8rem;
}

@media (max-width: 880px) {
  .enti-check__timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .enti-check {
    border-radius: 20px;
  }

  .enti-check__field {
    flex-direction: column;
  }

  .enti-check__field button[type="submit"] {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .enti-check * {
    transition: none !important;
  }
}


/* ===== Grafiche di caricamento in stile Apple (kit .ld-*) - inizio =====
   Blocco unico e aggiuntivo: per tornare indietro basta togliere tutto fino a "fine kit caricamento".
   Colori dal tema del sito; con "riduci movimento" attivo le animazioni diventano pulsazioni leggere.
   Pezzi: .ld-spinner (12 lineette), .ld-dots (puntini), .ld-ring (anello), .ld-bar (barra), .ld-skel (scheletro),
   .ld-doc (documento che si legge), .ld-stage (attesa lunga), .ld-hud (invio file), .ld-steps (fasi), .ld-check. */
:root {
  --ld-ink: #1d1d1f;
  --ld-sub: #6e6e73;
  --ld-accent: var(--asser-primary, #7d445e);
  --ld-accent-2: var(--asser-secondary, #4b2338);
  --ld-glow: var(--asser-blush, #c98faa);
  --ld-track: rgba(120, 120, 128, 0.18);
  --ld-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ---------- Rotellina a 12 lineette (come iOS) ---------- */
.ld-spinner {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--ld-size, 20px);
  height: var(--ld-size, 20px);
  color: currentColor;
  vertical-align: middle;
}

.ld-spinner i {
  position: absolute;
  top: 0;
  left: 46%;
  width: 8%;
  height: 26%;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.16;
  transform-origin: 50% 192%;
  animation: ld-tick 1s linear infinite;
}

.ld-spinner i:nth-child(1) { transform: rotate(0deg); animation-delay: -1s; }
.ld-spinner i:nth-child(2) { transform: rotate(30deg); animation-delay: -0.9167s; }
.ld-spinner i:nth-child(3) { transform: rotate(60deg); animation-delay: -0.8333s; }
.ld-spinner i:nth-child(4) { transform: rotate(90deg); animation-delay: -0.75s; }
.ld-spinner i:nth-child(5) { transform: rotate(120deg); animation-delay: -0.6667s; }
.ld-spinner i:nth-child(6) { transform: rotate(150deg); animation-delay: -0.5833s; }
.ld-spinner i:nth-child(7) { transform: rotate(180deg); animation-delay: -0.5s; }
.ld-spinner i:nth-child(8) { transform: rotate(210deg); animation-delay: -0.4167s; }
.ld-spinner i:nth-child(9) { transform: rotate(240deg); animation-delay: -0.3333s; }
.ld-spinner i:nth-child(10) { transform: rotate(270deg); animation-delay: -0.25s; }
.ld-spinner i:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1667s; }
.ld-spinner i:nth-child(12) { transform: rotate(330deg); animation-delay: -0.0833s; }

@keyframes ld-tick {
  from { opacity: 1; }
  to { opacity: 0.16; }
}

/* ---------- Puntini "sta scrivendo" (come Messaggi) ---------- */
.ld-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 1em;
  color: #8e8e93;
}

.ld-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: ld-dot 1.3s ease-in-out infinite;
}

.ld-dots i:nth-child(2) { animation-delay: 0.16s; }
.ld-dots i:nth-child(3) { animation-delay: 0.32s; }

@keyframes ld-dot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* ---------- Anello di avanzamento (come gli anelli di Apple) ---------- */
.ld-ring {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--ld-size, 120px);
  height: var(--ld-size, 120px);
}

.ld-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.ld-ring__track {
  fill: none;
  stroke: var(--ld-track);
  stroke-width: 9;
}

.ld-ring__arc {
  fill: none;
  stroke: var(--ld-accent);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.9s var(--ld-ease);
}

.ld-ring__center {
  position: relative;
  display: grid;
  justify-items: center;
  line-height: 1;
  text-align: center;
}

.ld-ring__value {
  color: var(--ld-ink);
  font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: calc(var(--ld-size, 120px) * 0.27);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ld-ring__unit {
  margin-top: 0.2em;
  color: var(--ld-sub);
  font-size: calc(var(--ld-size, 120px) * 0.1);
  font-weight: 650;
}

.ld-ring--indeterminate svg {
  animation: ld-spin 1.4s linear infinite;
}

.ld-ring--indeterminate .ld-ring__arc {
  stroke-dasharray: 26 74;
  stroke-dashoffset: 0;
  transition: none;
}

@keyframes ld-spin {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}

@keyframes ld-rot {
  to { transform: rotate(360deg); }
}

/* ---------- Barra (come lo scaricamento dell'App Store) ---------- */
.ld-bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ld-track);
}

.ld-bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 0%);
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ld-accent), var(--ld-glow));
  transition: width 0.8s var(--ld-ease);
}

.ld-bar > i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: ld-sheen 1.8s ease-in-out infinite;
}

.ld-bar--indeterminate > i {
  width: 38%;
  transition: none;
  animation: ld-slide 1.5s ease-in-out infinite;
}

@keyframes ld-sheen {
  to { transform: translateX(100%); }
}

@keyframes ld-slide {
  from { transform: translateX(-110%); }
  to { transform: translateX(270%); }
}

/* ---------- Scheletro che brilla (mentre arrivano i contenuti) ---------- */
.ld-skel-wrap {
  display: grid;
  gap: 0.75rem;
}

.ld-skel {
  display: block;
  height: 0.95rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(120, 120, 128, 0.12) 25%, rgba(120, 120, 128, 0.22) 37%, rgba(120, 120, 128, 0.12) 63%);
  background-size: 400% 100%;
  animation: ld-shimmer 1.4s ease infinite;
}

.ld-skel--card {
  height: 4.2rem;
  border-radius: 16px;
}

.ld-skel--short { width: 56%; }
.ld-skel--mid { width: 78%; }

@keyframes ld-shimmer {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

/* ---------- Documento che si legge ---------- */
.ld-doc {
  position: relative;
  display: block;
  width: 40px;
  height: 52px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 0 0 1.5px rgba(75, 35, 56, 0.16), 0 8px 18px rgba(75, 35, 56, 0.16);
}

.ld-doc::before {
  content: "";
  position: absolute;
  top: 22%;
  right: 20%;
  left: 20%;
  height: 48%;
  border-radius: 2px;
  background: repeating-linear-gradient(to bottom, rgba(75, 35, 56, 0.22) 0 3px, transparent 3px 9px);
}

.ld-doc::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 18px;
  background: linear-gradient(to bottom, transparent, rgba(125, 68, 94, 0.36), transparent);
  animation: ld-scan 2.4s ease-in-out infinite;
}

@keyframes ld-scan {
  0% { opacity: 0; transform: translateY(-18px); }
  15%, 85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(52px); }
}

/* ---------- Attesa lunga: anello, alone e messaggi ---------- */
.ld-stage {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: clamp(1.2rem, 4vw, 2rem) 0.5rem;
  text-align: center;
}

.ld-stage__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  isolation: isolate;
}

.ld-stage__art::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--ld-glow), var(--ld-accent), #ecc9d9, var(--ld-accent-2), var(--ld-glow));
  filter: blur(26px);
  opacity: 0.5;
  animation: ld-orbit 10s linear infinite;
  will-change: transform; /* l'alone sfocato viene ruotato come un livello gia' pronto: niente ricalcolo a ogni fotogramma */
}

.ld-stage__art::after {
  content: "";
  position: absolute;
  inset: 24%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 58%, rgba(255, 255, 255, 0) 74%);
}

.ld-stage__art .ld-ring {
  --ld-size: 132px;
}

@keyframes ld-orbit {
  to { transform: rotate(360deg); }
}

.ld-stage__title {
  margin: 0;
  color: var(--ld-ink);
  font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.ld-stage__text {
  min-height: 3em;
  max-width: 36ch;
  margin: 0;
  color: var(--ld-sub);
  font-size: 1rem;
  line-height: 1.5;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.ld-stage__text.is-swapping {
  opacity: 0;
  transform: translateY(5px);
}

.ld-stage__note {
  max-width: 44ch;
  margin: 0;
  color: var(--ld-sub);
  font-size: 0.82rem;
  line-height: 1.5;
}

.ld-stage.is-stopped .ld-stage__art,
.ld-stage.is-stopped .ld-stage__text {
  display: none;
}

.ld-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ld-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.3rem 0.7rem 0.3rem 0.5rem;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.12);
  color: var(--ld-ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.ld-chips li span {
  overflow: hidden;
  max-width: 14rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ld-chips svg {
  flex: none;
  color: var(--ld-accent);
}

/* ---------- Invio dei file: finestra al centro (come iOS) ---------- */
.ld-hud {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(29, 29, 31, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: ld-fade 0.2s ease both;
}

.ld-hud[hidden] {
  display: none;
}

.ld-hud__card {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  width: min(300px, 100%);
  padding: 1.5rem 1.25rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  backdrop-filter: saturate(180%) blur(26px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  text-align: center;
  animation: ld-pop 0.32s var(--ld-ease) both;
}

.ld-hud__title {
  margin: 0;
  color: var(--ld-ink);
  font-family: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ld-hud__text {
  margin: 0;
  color: var(--ld-sub);
  font-size: 0.86rem;
  line-height: 1.45;
}

.ld-hud__cancel {
  margin-top: 0.2rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.14);
  color: var(--ld-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ld-hud__cancel[hidden] {
  display: none;
}

.ld-hud__cancel:hover {
  background: rgba(120, 120, 128, 0.24);
}

.ld-hud__cancel:disabled {
  opacity: 0.5;
  cursor: progress;
}

@keyframes ld-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ld-pop {
  from { opacity: 0; transform: scale(0.94) translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Fasi dell'analisi ---------- */
.ld-steps {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ld-steps li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  color: var(--ld-sub);
  font-size: 0.86rem;
  line-height: 1.35;
}

.ld-steps li::before {
  content: "";
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid var(--ld-track);
  border-radius: 50%;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ld-steps li.is-done {
  color: var(--ld-ink);
}

.ld-steps li.is-done::before {
  border-color: transparent;
  background: var(--ld-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.3 4.3L18.5 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ld-steps li.is-now {
  color: var(--ld-ink);
  font-weight: 650;
}

.ld-steps li.is-now::before {
  border-color: var(--ld-accent);
  border-top-color: transparent;
  animation: ld-rot 0.9s linear infinite;
}

/* ---------- Spunta che si disegna ---------- */
.ld-check {
  width: 64px;
  height: 64px;
}

.ld-check circle {
  fill: none;
  stroke: var(--ld-accent);
  stroke-width: 4;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: ld-draw 0.7s var(--ld-ease) 0.05s forwards;
}

.ld-check path {
  fill: none;
  stroke: var(--ld-accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  animation: ld-draw 0.45s var(--ld-ease) 0.6s forwards;
}

@keyframes ld-draw {
  to { stroke-dashoffset: 0; }
}

/* ---------- Pulsante in attesa ---------- */
.portal-button.ld-busy,
.ld-busy {
  pointer-events: none;
}

.ld-busy .ld-spinner {
  --ld-size: 16px;
  margin-right: 0.5rem;
}

/* ---------- Rispetto di "riduci movimento" ---------- */
@media (prefers-reduced-motion: reduce) {
  .ld-spinner i {
    opacity: 0.55;
    animation: ld-pulse 1.8s ease-in-out infinite;
  }

  .ld-dots i {
    animation: ld-pulse 1.8s ease-in-out infinite;
  }

  .ld-ring--indeterminate svg,
  .ld-stage__art::before,
  .ld-steps li.is-now::before,
  .ld-bar > i::after,
  .ld-doc::after {
    animation: none;
  }

  .ld-ring--indeterminate .ld-ring__arc {
    animation: ld-pulse 1.8s ease-in-out infinite;
  }

  .ld-doc::after {
    opacity: 1;
    transform: translateY(18px);
  }

  .ld-bar--indeterminate > i {
    width: 100%;
    animation: ld-pulse 1.8s ease-in-out infinite;
  }

  .ld-skel {
    animation: none;
  }

  .ld-hud,
  .ld-hud__card {
    animation: none;
  }

  .ld-ring__arc,
  .ld-bar > i,
  .ld-stage__text {
    transition: none;
  }

  .ld-check circle,
  .ld-check path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@keyframes ld-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

@media print {
  .ld-hud {
    display: none;
  }
}
/* spunta di "invio completato": verde come gli altri esiti positivi del portale */
.success-mark--draw {
  width: 64px;
  height: 64px;
  background: none;
  --ld-accent: #1f8a4c;
}
/* ===== fine kit caricamento ===== */

/* ---------- Chat: puntini "sta scrivendo" e attesa della ricerca del Comune - inizio ---------- */
.portal-chat__message--loading {
  display: inline-flex;
  align-items: center;
  min-height: 2.5em;
  padding-block: 0.8rem;
}

.portal-chat__message--loading .ld-dots {
  color: #8e8e93;
}

.enti-check__waiting {
  padding: 0.2rem 0;
}
/* ---------- fine chat e attesa ricerca ---------- */

/* ASSER chat v2 — scoped to the assistant; shared visual baseline in both plugins. */
body .asser-ai-app .portal-chat.portal-chat--v2 {
  --chat-line: rgba(75, 35, 56, .12);
  --chat-muted: #726b67;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  color: var(--asser-text, #252129);
}
body .asser-ai-app .portal-chat--v2 .portal-chat__panel {
  display: flex; flex-direction: column; width: min(410px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 116px)); height: min(640px, calc(100dvh - 116px));
  max-height: calc(100dvh - 116px); overflow: hidden;
  border: 1px solid rgba(255,255,255,.82); border-radius: 28px;
  background: rgba(251,248,245,.98);
  box-shadow: 0 28px 80px rgba(44,31,41,.2), 0 0 0 1px var(--chat-line);
  opacity: 0; transform: translateY(14px) scale(.99); transform-origin: bottom right;
  pointer-events: none; animation: none;
  transition: opacity 300ms cubic-bezier(.4,0,.2,1), transform 300ms cubic-bezier(.4,0,.2,1);
}
body .asser-ai-app .portal-chat--v2.portal-chat--shown .portal-chat__panel {
  opacity: 1; transform: none; pointer-events: auto;
  transition-duration: 400ms; transition-timing-function: cubic-bezier(.22,1,.36,1);
}
body .asser-ai-app .portal-chat--v2 .portal-chat__panel[hidden] { display: none; }
body .asser-ai-app .portal-chat--v2 .portal-chat__header {
  flex: 0 0 auto; padding: 18px 18px 16px 22px; border-bottom: 1px solid var(--chat-line);
  background: rgba(255,255,255,.8); color: var(--asser-secondary, #4b2338);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
body .asser-ai-app .portal-chat--v2 .portal-chat__header strong { font-size: 15px; letter-spacing: -.025em; }
body .asser-ai-app .portal-chat--v2 .portal-chat__header small { margin-top: 4px; color: var(--chat-muted); font-size: 12px; }
body .asser-ai-app .portal-chat--v2 .portal-chat__avatar {
  width: 44px; height: 44px; border-radius: 15px;
  background: linear-gradient(145deg, #f4e9ed, #ead9e2); box-shadow: inset 0 0 0 1px rgba(75,35,56,.06);
}
body .asser-ai-app .portal-chat--v2 .portal-chat__close {
  width: 36px; height: 36px; min-width: 36px; margin: 0; border-radius: 50%;
  color: var(--chat-muted); background: rgba(75,35,56,.06);
}
body .asser-ai-app .portal-chat--v2 .portal-chat__close:hover { background: rgba(75,35,56,.12); }
body .asser-ai-app .portal-chat--v2 .portal-chat__messages {
  flex: 1 1 auto; min-height: 0; height: auto; gap: 16px; padding: 24px 20px;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: radial-gradient(ellipse at 100% 0, rgba(201,143,170,.09), transparent 70%), #fbf8f5;
  scrollbar-width: thin; scrollbar-color: #ded2d7 transparent;
}
body .asser-ai-app .portal-chat--v2 .portal-chat__welcome { padding: 8px 4px 12px; }
body .asser-ai-app .portal-chat--v2 .portal-chat__eyebrow {
  display: block; margin-bottom: 14px; color: var(--asser-primary, #7d445e); font-size: 10px; font-weight: 800; letter-spacing: .09em;
}
body .asser-ai-app .portal-chat--v2 .portal-chat__welcome h2 {
  margin: 0 0 12px; color: var(--asser-secondary, #4b2338);
  font: 600 25px/1.22 "Sora", ui-sans-serif, system-ui, sans-serif; letter-spacing: -.045em;
}
body .asser-ai-app .portal-chat--v2 .portal-chat__welcome p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--chat-muted); }
body .asser-ai-app .portal-chat--v2 .portal-chat__access { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--chat-line); }
body .asser-ai-app .portal-chat--v2 .portal-chat__access a { text-decoration: none; }
body .asser-ai-app .portal-chat--v2 .portal-chat__access-primary {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 50px;
  margin-top: 20px; padding: 12px 20px; border-radius: 999px;
  background: var(--asser-secondary, #4b2338); color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 18px rgba(75,35,56,.15);
}
body .asser-ai-app .portal-chat--v2 .portal-chat__access-secondary { display: block; padding: 16px 0 0; font-size: 12px; text-align: center; color: var(--asser-primary, #7d445e); }
body .asser-ai-app .portal-chat--v2 .portal-chat__message {
  flex: 0 0 auto; max-width: 92%; padding: 13px 16px; border-radius: 20px; font-size: 14px; line-height: 1.65;
  overflow-wrap: anywhere; word-break: normal; box-shadow: 0 2px 4px rgba(44,31,41,.025);
}
body .asser-ai-app .portal-chat--v2 .portal-chat__message p { margin: 0; color: inherit; font: inherit; white-space: pre-wrap; }
body .asser-ai-app .portal-chat--v2 .portal-chat__message--assistant { border-color: var(--chat-line); border-bottom-left-radius: 6px; }
body .asser-ai-app .portal-chat--v2 .portal-chat__message--user { border: 0; border-bottom-right-radius: 6px; background: var(--asser-secondary, #4b2338); color: #fff; }
body .asser-ai-app .portal-chat--v2 .portal-chat__origin { display: block; margin: 0 0 7px; font-size: 10px; font-weight: 800; color: var(--asser-primary, #7d445e); letter-spacing: .035em; }
body .asser-ai-app .portal-chat--v2 .portal-chat__sources { display: grid; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--chat-line); }
body .asser-ai-app .portal-chat--v2 .portal-chat__sources a { display: block; margin: 0; padding: 7px 0; color: var(--asser-secondary, #4b2338); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
body .asser-ai-app .portal-chat--v2 .portal-chat__quick-actions {
  flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 12px 18px 4px; overflow: visible; background: #fff;
}
body .asser-ai-app .portal-chat--v2 .portal-chat__quick-actions button,
body .asser-ai-app .portal-chat--v2 .portal-chat__retry {
  min-height: 36px; padding: 8px 13px; border: 1px solid var(--chat-line); border-radius: 999px;
  background: #fbf8f5; color: var(--asser-secondary, #4b2338); font: 700 12px/1.25 "Manrope", sans-serif; cursor: pointer;
}
body .asser-ai-app .portal-chat--v2 .portal-chat__retry { margin-top: 10px; }
body .asser-ai-app .portal-chat--v2 .portal-chat__quick-actions button:hover { background: var(--asser-alt-bg, #f4e9ed); }
body .asser-ai-app .portal-chat--v2 .portal-chat__form { flex: 0 0 auto; padding: 12px 18px 8px; gap: 8px; background: #fff; }
body .asser-ai-app .portal-chat--v2 .portal-chat__form input {
  height: 48px; padding: 0 16px; border: 1px solid var(--chat-line); border-radius: 999px;
  background: #f7f4f2; color: var(--asser-text, #252129); font: 500 16px/1.4 "Manrope", sans-serif;
}
body .asser-ai-app .portal-chat--v2 .portal-chat__form input::placeholder { color: var(--chat-muted); opacity: 1; }
body .asser-ai-app .portal-chat--v2 .portal-chat__form button {
  display: grid; place-items: center; width: 48px; min-width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: var(--asser-secondary, #4b2338); color: #fff;
}
body .asser-ai-app .portal-chat--v2 button:disabled { opacity: .45; cursor: wait; }
body .asser-ai-app .portal-chat--v2 .portal-chat__resources {
  flex: 0 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 18px; padding: 2px 16px; background: #fff;
}
body .asser-ai-app .portal-chat--v2 .portal-chat__resources a { display: inline-flex; align-items: center; min-height: 34px; font-size: 11px; font-weight: 700; color: var(--asser-primary, #7d445e); text-decoration: none; }
body .asser-ai-app .portal-chat--v2 .portal-chat__resources a:hover { text-decoration: underline; }
body .asser-ai-app .portal-chat--v2 .portal-chat__note { flex: 0 0 auto; margin: 0; padding: 2px 18px 14px; font: 400 10px/1.5 "Manrope", sans-serif; text-align: center; color: var(--chat-muted); background: #fff; }
body .asser-ai-app .portal-chat--v2 :is(a,button,input):focus-visible { outline: 2px solid var(--asser-primary, #7d445e); outline-offset: 3px; }
body .asser-ai-app .portal-chat--v2 .portal-chat__launcher { min-height: 56px; padding: 6px 20px 6px 6px; border: 1px solid rgba(255,255,255,.32); background: linear-gradient(135deg, #7d445e, #4b2338); box-shadow: 0 12px 32px rgba(75,35,56,.22); }
body .asser-ai-app .portal-chat--v2 .portal-chat__launcher .portal-chat__launcher-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; width: auto; height: auto; background: none; border-radius: 0; }
body .asser-ai-app .portal-chat--v2 .portal-chat__launcher-copy b { font-size: 9px; font-weight: 700; letter-spacing: .09em; opacity: .8; }
body .asser-ai-app .portal-chat--v2 .portal-chat__launcher-copy strong { font-size: 12px; font-weight: 700; }
@media (max-width: 920px) {
  body .asser-ai-app .portal-chat--v2 .portal-chat__launcher { width: 52px; height: 52px; min-height: 52px; padding: 5px; }
  body .asser-ai-app .portal-chat--v2 .portal-chat__launcher .portal-chat__launcher-copy { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}
@media (max-width: 640px) {
  body .asser-ai-app .portal-chat--v2 .portal-chat__panel {
    position: fixed; left: 0; right: 0; bottom: var(--m-kb, 0px); width: 100%;
    height: min(86vh, 680px); height: min(86dvh, 680px); max-height: min(86dvh, 680px);
    padding-bottom: env(safe-area-inset-bottom, 0px); border: 0; border-radius: 28px 28px 0 0;
    transform: translateY(22px); transform-origin: bottom center;
  }
  body .asser-ai-app .portal-chat.portal-chat--v2.portal-chat--open::before {
    opacity: 0; animation: none; transition: opacity 300ms cubic-bezier(.4,0,.2,1);
  }
  body .asser-ai-app .portal-chat.portal-chat--v2.portal-chat--open.portal-chat--shown::before {
    opacity: 1; transition-duration: 400ms; transition-timing-function: cubic-bezier(.22,1,.36,1);
  }
  body .asser-ai-app .portal-chat--v2 .portal-chat__header { padding: 24px 16px 14px 20px; border-radius: 28px 28px 0 0; }
  body .asser-ai-app .portal-chat--v2 .portal-chat__header::before { background: #d8cdd2; }
  body .asser-ai-app .portal-chat--v2 .portal-chat__close { width: 44px; height: 44px; }
  body .asser-ai-app .portal-chat--v2 .portal-chat__messages { padding: 20px 16px; }
  body .asser-ai-app .portal-chat--v2 .portal-chat__eyebrow { font-size: 11px; }
  body .asser-ai-app .portal-chat--v2 .portal-chat__message { font-size: 15px; }
  body .asser-ai-app .portal-chat--v2 .portal-chat__quick-actions { padding: 8px 16px 0; }
  body .asser-ai-app .portal-chat--v2 .portal-chat__quick-actions button { min-height: 44px; }
  body .asser-ai-app .portal-chat--v2 .portal-chat__resources a { min-height: 44px; font-size: 12px; }
  body .asser-ai-app .portal-chat--v2 .portal-chat__note { font-size: 11px; padding-bottom: 10px; }
}
@media (max-width: 640px) {
  body .asser-ai-app .portal-chat--v2.portal-chat--keyboard .portal-chat__quick-actions,
  body .asser-ai-app .portal-chat--v2.portal-chat--keyboard .portal-chat__resources,
  body .asser-ai-app .portal-chat--v2.portal-chat--keyboard .portal-chat__note { display: none; }
}
@media (max-height: 540px) {
  body .asser-ai-app .portal-chat--v2 .portal-chat__quick-actions,
  body .asser-ai-app .portal-chat--v2 .portal-chat__note { display: none; }
  body .asser-ai-app .portal-chat--v2 .portal-chat__header { padding-top: 18px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  body .asser-ai-app .portal-chat--v2, body .asser-ai-app .portal-chat--v2 *, body .asser-ai-app .portal-chat--v2::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Topic recommendations use only catalogued destinations from the public plugin. */
body .asser-ai-app .portal-chat--v2 .portal-chat__recommendations { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--chat-line); }
body .asser-ai-app .portal-chat--v2 .portal-chat__message .portal-chat__recommendations-title { margin: 0 0 2px; font-size: 11px; font-weight: 700; color: var(--asser-secondary, #4b2338); }
body .asser-ai-app .portal-chat--v2 .portal-chat__recommendation { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 12px; border: 1px solid var(--chat-line); border-radius: 14px; background: #fbf8f5; text-decoration: none; color: #4b2338; overflow-wrap: anywhere; }
body .asser-ai-app .portal-chat--v2 .portal-chat__recommendation:hover { background: #f5eef1; }
body .asser-ai-app .portal-chat--v2 .portal-chat__recommendation strong { font-size: 12px; line-height: 1.5; }
body .asser-ai-app .portal-chat--v2 .portal-chat__recommendation span { font-size: 11px; line-height: 1.6; font-weight: 400; color: #62585e; }
/* ===== Chatbot: pulsante fluttuante "AI attiva" e domande per tutti (aggiunta del 15 ottobre 2026) - inizio =====
   Il pulsante resta in basso a destra (mai nell'intestazione): una capsula prugna con la gemma, "AI attiva" con il puntino verde e
   "Chiedi all'AI" (le scritte le mette lo script, asser-ai-shell.js; senza lo script resta il pulsante di prima). Sul telefono e' la
   stessa capsula, piu' compatta. Se in basso c'e' il riquadro dei cookie (computer) il pulsante sale sopra di lui.
   Chi non ha fatto l'accesso trova nel pannello le proposte e il campo per scrivere: stesso aspetto del chatbot dell'area clienti. */

/* ---- il pulsante ---- */
body .asser-ai-app .portal-chat--v2 .portal-chat__launcher.portal-chat__launcher--live {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 60px;
  padding: 6px 22px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, #8a4c69 0%, #4b2338 100%);
  box-shadow: 0 16px 36px rgba(75, 35, 56, 0.3), 0 2px 6px rgba(44, 31, 41, 0.14);
  color: #fff;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

body .asser-ai-app .portal-chat--v2 .portal-chat__launcher.portal-chat__launcher--live:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(75, 35, 56, 0.34), 0 2px 6px rgba(44, 31, 41, 0.14);
}

body .asser-ai-app .portal-chat--v2 .portal-chat__launcher.portal-chat__launcher--live:active {
  transform: scale(0.97);
}

body .asser-ai-app .portal-chat--v2 .portal-chat__launcher.portal-chat__launcher--live:focus-visible {
  outline: 3px solid rgba(125, 68, 94, 0.55);
  outline-offset: 3px;
}

body .asser-ai-app .portal-chat--v2 .portal-chat__launcher--live .portal-chat__launcher-logo {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body .asser-ai-app .portal-chat--v2 .portal-chat__launcher.portal-chat__launcher--live .portal-chat__launcher-copy {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  width: auto;
  height: auto;
  padding: 0;
  overflow: visible;
  clip: auto;
  border-radius: 0;
  background: none;
  white-space: nowrap;
}

body .asser-ai-app .portal-chat--v2 .portal-chat__launcher--live .portal-chat__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.86);
  font: 800 10.5px/1 "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 1;
}

/* (le regole vecchie del telefono nascondevano questa riga sotto i 760 px: qui torna sempre visibile) */
body .asser-ai-app .portal-chat--v2 .portal-chat__launcher--live .portal-chat__launcher-copy strong {
  display: block;
  color: #fff;
  font: 700 15.5px/1.15 "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

/* il puntino verde "attiva": pulsa piano (fermo con "riduci animazioni") */
body .asser-ai-app .portal-chat .portal-chat__live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55);
  animation: pc-live 2.4s ease-out infinite;
}

@keyframes pc-live {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

/* intestazione del pannello: "Intelligenza artificiale attiva" con il puntino */
body .asser-ai-app .portal-chat--v2 .portal-chat__header small.portal-chat__header-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* il riquadro dei cookie in basso (computer): il pulsante e il pannello salgono sopra di lui */
@media (min-width: 921px) {
  body .asser-ai-app .portal-chat.portal-chat--lifted {
    bottom: calc(1.15rem + var(--pc-lift, 0px));
  }

  body .asser-ai-app .portal-chat--v2.portal-chat--lifted .portal-chat__panel {
    max-height: calc(100vh - 116px - var(--pc-lift, 0px));
    max-height: calc(100dvh - 116px - var(--pc-lift, 0px));
  }
}

/* telefono e tablet: la stessa capsula, piu' compatta (prima era un tondo senza scritte) */
@media (max-width: 920px) {
  body .asser-ai-app .portal-chat--v2 .portal-chat__launcher.portal-chat__launcher--live {
    justify-content: flex-start;
    gap: 9px;
    width: auto;
    height: auto;
    min-height: 52px;
    padding: 5px 17px 5px 5px;
  }

  body .asser-ai-app .portal-chat--v2 .portal-chat__launcher--live .portal-chat__launcher-logo {
    width: 42px;
    height: 42px;
  }

  body .asser-ai-app .portal-chat--v2 .portal-chat__launcher--live .portal-chat__live {
    font-size: 9.5px;
  }

  body .asser-ai-app .portal-chat--v2 .portal-chat__launcher--live .portal-chat__launcher-copy strong {
    font-size: 14.5px;
  }
}

/* ---- il pannello ---- */

/* le proposte rapide: pillole larghe quanto il testo, su una riga; nessuna resta da sola sotto le altre.
   Solo sugli schermi non bassi: sotto i 540 px di altezza (telefono in orizzontale) il chatbot le nasconde, e cosi' resta. */
@media not all and (max-height: 540px) {
  body .asser-ai-app .portal-chat--v2 .portal-chat__quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
}

body .asser-ai-app .portal-chat--v2 .portal-chat__quick-actions button {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* il campo dove si scrive: mentre si scrive il bordo diventa prugna con un alone leggero (non un secondo bordo staccato) */
body .asser-ai-app .portal-chat--v2 .portal-chat__form input:focus,
body .asser-ai-app .portal-chat--v2 .portal-chat__form input:focus-visible {
  outline: none;
  border-color: rgba(125, 68, 94, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(125, 68, 94, 0.12);
}

/* chi non ha fatto l'accesso, se il chatbot per tutti non c'e': solo il benvenuto e "Accedi alla chat", pannello alto quanto serve */
body .asser-ai-app .portal-chat--v2[data-authenticated="0"]:not(.portal-chat--guest-ai) .portal-chat__panel {
  height: auto;
}

/* chatbot per tutti: dopo la prima domanda le proposte si tolgono (piu' spazio alla conversazione) */
body .asser-ai-app .portal-chat--v2.portal-chat--guest-started .portal-chat__quick-actions--guest {
  display: none;
}

/* chatbot per tutti: la riga "Hai un account? Accedi" sotto il benvenuto (selettore piu' forte di quello dei paragrafi del benvenuto,
   che toglie i margini: senza, la linea sottile toccava il testo sopra) */
body .asser-ai-app .portal-chat--v2 .portal-chat__welcome p.portal-chat__guest-login,
body .asser-ai-app .portal-chat--v2 .portal-chat__guest-login {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--chat-line, rgba(75, 35, 56, 0.12));
  color: var(--chat-muted, #726b67);
  font-size: 13px;
  line-height: 1.55;
}

body .asser-ai-app .portal-chat--v2 .portal-chat__guest-login a {
  color: var(--asser-primary, #7d445e);
  font-weight: 700;
  text-decoration: none;
}

body .asser-ai-app .portal-chat--v2 .portal-chat__guest-login a:hover {
  text-decoration: underline;
}

/* campo esca per i robot: fuori dallo schermo, mai raggiungibile */
body .asser-ai-app .portal-chat .portal-chat__trap {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body .asser-ai-app .portal-chat .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* "sta scrivendo": tre puntini */
body .asser-ai-app .portal-chat--v2 .portal-chat__typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
}

body .asser-ai-app .portal-chat--v2 .portal-chat__typing i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--asser-primary, #7d445e);
  opacity: 0.35;
  animation: pc-typing 1.2s ease-in-out infinite;
}

body .asser-ai-app .portal-chat--v2 .portal-chat__typing i:nth-child(2) {
  animation-delay: 0.15s;
}

body .asser-ai-app .portal-chat--v2 .portal-chat__typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pc-typing {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* telefono: le proposte scorrono di lato con il dito (come i suggerimenti delle app), testo piu' grande */
@media (max-width: 640px) {
  body .asser-ai-app .portal-chat--v2 .portal-chat__quick-actions {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 16px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body .asser-ai-app .portal-chat--v2 .portal-chat__quick-actions::-webkit-scrollbar {
    display: none;
  }

  body .asser-ai-app .portal-chat--v2 .portal-chat__quick-actions button {
    min-height: 44px;
    padding: 0 17px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    scroll-snap-align: start;
  }

  body .asser-ai-app .portal-chat--v2 .portal-chat__quick-actions button:active {
    background: var(--asser-alt-bg, #f4e9ed);
  }
}

@media (prefers-reduced-motion: reduce) {
  body .asser-ai-app .portal-chat .portal-chat__live-dot,
  body .asser-ai-app .portal-chat--v2 .portal-chat__typing i {
    animation: none;
  }

  body .asser-ai-app .portal-chat--v2 .portal-chat__launcher.portal-chat__launcher--live,
  body .asser-ai-app .portal-chat--v2 .portal-chat__launcher.portal-chat__launcher--live:hover {
    transform: none;
    transition: none;
  }
}
/* ===== Chatbot: pulsante fluttuante "AI attiva" e domande per tutti - fine ===== */

/* ===== ASSER COIN: la moneta disegnata (aggiunta del 14 ottobre 2026) - inizio ===== */
/* ASSER COIN: la moneta di ASSER AI, disegnata come una moneta vera (oro rosa, bordo zigrinato, gioiello in rilievo, scritta lungo il bordo)
   e la versione in 3D con lo spessore, il riflesso che scorre e il conteggio del saldo che "rotola". Solo CSS e un piccolo SVG senza id:
   nessun conflitto con il resto della pagina. Con "riduci animazioni" la moneta e' ferma e i numeri compaiono subito. */

/* ---- la moneta piatta (accanto ai numeri, nelle schede, nel portafoglio) ---- */
.ac-coin {
  --ac: 1.15em;
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--ac);
  height: var(--ac);
  border-radius: 50%;
  vertical-align: -0.24em;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
}

.ac-coin--md {
  --ac: 44px;
}

.ac-coin--lg {
  --ac: 120px;
}

/* il bordo: metallo oro rosa (riflessi tutto intorno) con la zigrinatura delle monete vere */
.ac-coin__rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.3) 0deg 1.25deg, rgba(104, 44, 74, 0.26) 1.25deg 2.5deg),
    conic-gradient(from 215deg, #fbe6ee, #e0a9bf, #a3607f, #cf93ad, #f6d6e2, #b97a99, #e9bacb, #fbe6ee);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), inset 0 -1px 2px rgba(80, 28, 54, 0.35), 0 1px 2px rgba(60, 20, 40, 0.28);
}

/* piccola: senza zigrinatura (sotto i 24 px sarebbe solo rumore) */
.ac-coin--sm .ac-coin__rim {
  background: conic-gradient(from 215deg, #fbe6ee, #dca2b9, #a3607f, #cf93ad, #f6d6e2, #b97a99, #fbe6ee);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.5), 0 0.5px 1.5px rgba(60, 20, 40, 0.35);
}

/* il campo: leggermente incavato, con la luce in alto a sinistra */
.ac-coin__face {
  position: absolute;
  inset: 10%;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 27%, #fff7fa 0, #f6d3e0 26%, #e2a9c0 58%, #b8728f 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 0 -2px 4px rgba(92, 34, 62, 0.32),
    0 0 0 1px rgba(122, 62, 92, 0.22);
}

.ac-coin--sm .ac-coin__face {
  inset: 13%;
  box-shadow: inset 0 0.5px 0.5px rgba(255, 255, 255, 0.85), inset 0 -1px 1.5px rgba(92, 34, 62, 0.3);
}

.ac-coin__mark {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* la scritta lungo il bordo: incisa (scura con un filo di luce sotto) */
.ac-coin__txt {
  fill: rgba(112, 50, 80, 0.78);
  font-family: "Sora", "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 7.4px;
  font-weight: 800;
  letter-spacing: 0;
  text-anchor: middle;
}

.ac-coin__txt--light {
  fill: rgba(255, 255, 255, 0.6);
}

/* il grande "AI" sul retro */
.ac-coin__txt--big {
  font-size: 27px;
}

/* il riflesso: una lama di luce che attraversa la moneta (solo dove serve: animazione sotto) */
.ac-coin__shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  pointer-events: none;
}

.ac-coin__shine::before {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.75) 55%, rgba(255, 255, 255, 0));
  content: "";
  opacity: 0;
  transform: skewX(-14deg);
}

/* ---- la moneta "in 3D" (portafoglio, Shop, "Come funziona") ----
   Il giro e' fatto come nelle monete animate classiche, senza 3D vero (cosi' si vede uguale su ogni browser e telefono): la moneta si
   stringe fino a mostrarsi di taglio (compare il bordo zigrinato), a meta' giro si vede il retro, poi torna il fronte. */
.ac3 {
  --ac: 128px;
  --ac-t: calc(var(--ac) * 0.085);
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--ac);
  height: calc(var(--ac) * 1.18);
  -webkit-user-select: none;
  user-select: none;
}

.ac3--sm {
  --ac: 88px;
}

.ac3__tilt {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--ac);
  height: var(--ac);
  transform: perspective(calc(var(--ac) * 6)) rotateX(var(--ac-rx, 0deg)) rotateY(var(--ac-ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ac3__spin {
  position: absolute;
  inset: 0;
}

.ac3__face {
  position: absolute;
  inset: 0;
}

.ac3__face .ac-coin {
  --ac: 100%;
  display: block;
  width: 100%;
  height: 100%;
}

.ac3__face--back {
  visibility: hidden;
}

/* il bordo della moneta vista di taglio: una striscia di metallo zigrinato, larga quanto lo spessore */
.ac3__edge {
  position: absolute;
  top: 1%;
  bottom: 1%;
  left: 50%;
  width: var(--ac-t);
  margin-left: calc(var(--ac-t) / -2);
  border-radius: calc(var(--ac-t) / 2);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0 1px, rgba(104, 44, 74, 0.28) 1px 2.5px),
    linear-gradient(90deg, #8f5070, #e7b4c8 45%, #fbe6ee 55%, #b97a99);
  opacity: 0;
  transform: scaleX(0);
}

/* l'ombra sul "pavimento": si stringe quando la moneta sale */
.ac3__floor {
  position: absolute;
  bottom: 0;
  left: 18%;
  width: 64%;
  height: calc(var(--ac) * 0.1);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 20, 40, 0.32), rgba(60, 20, 40, 0));
  filter: blur(2px);
}

/* ---- conteggio che rotola (il saldo): ogni cifra e' una colonna 0-9 che scorre fino al valore ---- */
.ac-odo {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ac-odo__d {
  position: relative;
  display: inline-block;
  height: 1.15em;
  overflow: hidden;
  line-height: 1.15;
}

.ac-odo__d > span {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--ac-v, 0) * -1.15em));
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--ac-i, 0) * 70ms);
}

.ac-odo__d > span > b {
  display: block;
  height: 1.15em;
  font-weight: inherit;
  line-height: 1.15;
}

.ac-odo__sep {
  display: inline-block;
}

/* chi legge con lo screen reader sente il numero vero, non le colonne */
.ac-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- pila di monete (pacchetti nello Shop): da 1 a 4, a ventaglio ---- */
.ac-stack {
  --ac: 40px;
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  height: calc(var(--ac) * 1.25);
}

.ac-stack .ac-coin {
  --ac: inherit;
  width: var(--ac);
  height: var(--ac);
  margin-left: calc(var(--ac) * -0.52);
  box-shadow: -3px 2px 6px rgba(60, 20, 40, 0.22);
  transform: translateY(calc(var(--ac-k, 0) * var(--ac) * -0.09));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ac-stack .ac-coin:first-child {
  margin-left: 0;
}

.ac-stack .ac-coin:nth-child(1) { --ac-k: 0; z-index: 1; }
.ac-stack .ac-coin:nth-child(2) { --ac-k: 1; z-index: 2; }
.ac-stack .ac-coin:nth-child(3) { --ac-k: 2; z-index: 3; }
.ac-stack .ac-coin:nth-child(4) { --ac-k: 3; z-index: 4; }

/* ---- movimento (solo se consentito) ---- */
@media (prefers-reduced-motion: no-preference) {
  /* un giro della moneta: si stringe (fronte), di taglio (bordo), si allarga (retro), di taglio, di nuovo il fronte */
  @keyframes ac3-turn {
    0%,
    50%,
    100% {
      transform: scaleX(1);
      filter: brightness(1);
      animation-timing-function: cubic-bezier(0.45, 0, 0.75, 0.6);
    }

    25%,
    75% {
      transform: scaleX(0.04);
      filter: brightness(0.82);
      animation-timing-function: cubic-bezier(0.25, 0.4, 0.55, 1);
    }
  }

  @keyframes ac3-front {
    0%,
    24.9%,
    75.1%,
    100% {
      visibility: visible;
    }

    25%,
    75% {
      visibility: hidden;
    }
  }

  @keyframes ac3-back {
    0%,
    24.9%,
    75.1%,
    100% {
      visibility: hidden;
    }

    25%,
    75% {
      visibility: visible;
    }
  }

  @keyframes ac3-side {
    0%,
    12%,
    38%,
    62%,
    88%,
    100% {
      opacity: 0;
      transform: scaleX(0);
    }

    25%,
    75% {
      opacity: 1;
      transform: scaleX(1);
    }
  }

  /* ingresso: cade dall'alto, rimbalza appena e si posa */
  @keyframes ac3-drop {
    0% {
      opacity: 0;
      transform: perspective(calc(var(--ac) * 6)) translateY(-38%) scale(0.74);
    }

    30% {
      opacity: 1;
    }

    72% {
      transform: perspective(calc(var(--ac) * 6)) translateY(3%) scale(1.02);
    }

    86% {
      transform: perspective(calc(var(--ac) * 6)) translateY(-1.5%) scale(1);
    }

    100% {
      opacity: 1;
      transform: perspective(calc(var(--ac) * 6)) rotateX(var(--ac-rx, 0deg)) rotateY(var(--ac-ry, 0deg));
    }
  }

  /* a riposo: sospesa, sale e scende piano */
  @keyframes ac3-float {
    0%,
    100% {
      translate: 0 0;
    }

    50% {
      translate: 0 -4%;
    }
  }

  @keyframes ac3-floor {
    0%,
    100% {
      transform: scale(1);
      opacity: 1;
    }

    50% {
      transform: scale(0.84);
      opacity: 0.7;
    }
  }

  @keyframes ac-shine {
    0% {
      left: -60%;
      opacity: 0;
    }

    12% {
      opacity: 1;
    }

    55%,
    100% {
      left: 120%;
      opacity: 0;
    }
  }

  @keyframes ac-spin-once {
    0%,
    100% {
      transform: scaleX(1);
    }

    25%,
    75% {
      transform: scaleX(0.08);
    }

    50% {
      transform: scaleX(-1);
    }
  }

  /* prima di arrivare sullo schermo la moneta non si vede (lo script la fa entrare); senza script e' ferma e visibile */
  .ac-js .ac3[data-ac3]:not(.is-in):not(.is-idle):not(.is-flip) .ac3__tilt {
    opacity: 0;
  }

  /* ingresso: cade e intanto fa tre giri, sempre piu' lenti */
  .ac-js .ac3.is-in .ac3__tilt {
    animation: ac3-drop 1.5s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  }

  .ac-js .ac3.is-in .ac3__spin {
    animation: ac3-turn 0.5s 3;
  }

  .ac-js .ac3.is-in .ac3__face--front {
    animation: ac3-front 0.5s step-end 3;
  }

  .ac-js .ac3.is-in .ac3__face--back {
    animation: ac3-back 0.5s step-end 3;
  }

  .ac-js .ac3.is-in .ac3__edge {
    animation: ac3-side 0.5s linear 3;
  }

  /* toccata: un giro intero */
  .ac-js .ac3.is-flip .ac3__spin {
    animation: ac3-turn 0.9s 1;
  }

  .ac-js .ac3.is-flip .ac3__face--front {
    animation: ac3-front 0.9s step-end 1;
  }

  .ac-js .ac3.is-flip .ac3__face--back {
    animation: ac3-back 0.9s step-end 1;
  }

  .ac-js .ac3.is-flip .ac3__edge {
    animation: ac3-side 0.9s linear 1;
  }

  /* a riposo: sospesa; ogni tanto passa la luce */
  .ac-js .ac3.is-idle .ac3__tilt,
  .ac-js .ac3.is-flip .ac3__tilt {
    animation: ac3-float 6s ease-in-out infinite;
  }

  .ac-js .ac3.is-idle .ac3__floor {
    animation: ac3-floor 6s ease-in-out infinite;
  }

  .ac-js .ac3.is-idle .ac3__face--front .ac-coin__shine::before {
    animation: ac-shine 7s ease-in-out 0.4s infinite;
  }

  .ac-js .ac3[data-ac3] {
    cursor: pointer;
  }

  /* la moneta piccola fa un giro al passaggio del mouse (portafoglio in alto, schede) */
  .ac-spin-hover:hover .ac-coin,
  .ac-spin-hover:focus-visible .ac-coin {
    animation: ac-spin-once 0.8s cubic-bezier(0.3, 0.7, 0.2, 1);
  }

  .ac-coin--md .ac-coin__shine::before,
  .ac-coin--lg .ac-coin__shine::before {
    animation: ac-shine 6.5s ease-in-out 1s infinite;
  }

  /* pila: al passaggio del mouse la moneta in cima si solleva */
  .ac-stack-host:hover .ac-stack .ac-coin:last-child {
    transform: translateY(calc(var(--ac-k, 0) * var(--ac) * -0.09 - var(--ac) * 0.22)) rotate(-8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-odo__d > span {
    transition: none;
  }
}

@media print {
  .ac3__floor,
  .ac-coin__shine {
    display: none;
  }
}
/* ===== ASSER COIN: la moneta disegnata - fine ===== */
