/* NIZO.UZ final responsive layer.
   Loaded last: only layout adaptation, no feature logic changes. */

:root {
  --nizo-mobile-x: clamp(14px, 4.2vw, 28px);
  --nizo-mobile-top: env(safe-area-inset-top, 0px);
  --nizo-mobile-bottom: env(safe-area-inset-bottom, 0px);
}

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

body.home-page,
body.about-page,
body.contact-page,
body.auth-page-shell,
body.cabinet-page {
  overflow-x: hidden !important;
}

/* Shared public header: home, about, contacts. */
@media (max-width: 1120px) {
  body.home-page > .site-header,
  body.about-page > .site-header,
  body.contact-page > .site-header {
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr) !important;
    padding-inline: var(--nizo-mobile-x) !important;
  }

  body.home-page > .site-header .nav-links,
  body.about-page > .site-header .nav-links,
  body.contact-page > .site-header .nav-links {
    gap: clamp(18px, 3vw, 42px) !important;
  }

  body.home-page > .site-header .header-actions,
  body.about-page > .site-header .header-actions,
  body.contact-page > .site-header .header-actions {
    gap: clamp(12px, 2vw, 22px) !important;
  }
}

@media (max-width: 760px) {
  body.home-page > .site-header,
  body.about-page > .site-header,
  body.contact-page > .site-header {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    min-height: 92px !important;
    padding: calc(10px + var(--nizo-mobile-top)) var(--nizo-mobile-x) 8px !important;
    row-gap: 8px !important;
  }

  body.home-page > .site-header .home-premium-brand,
  body.home-page > .site-header .brand,
  body.about-page > .site-header .home-premium-brand,
  body.about-page > .site-header .brand,
  body.contact-page > .site-header .home-premium-brand,
  body.contact-page > .site-header .brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    min-width: 0 !important;
  }

  body.home-page > .site-header .home-premium-brand__text,
  body.about-page > .site-header .home-premium-brand__text,
  body.contact-page > .site-header .home-premium-brand__text {
    font-size: clamp(24px, 7vw, 34px) !important;
  }

  body.home-page > .site-header .home-premium-brand__icon,
  body.about-page > .site-header .home-premium-brand__icon,
  body.contact-page > .site-header .home-premium-brand__icon {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
  }

  body.home-page > .site-header .header-actions,
  body.about-page > .site-header .header-actions,
  body.contact-page > .site-header .header-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    gap: 10px !important;
  }

  body.home-page > .site-header .header-theme-toggle,
  body.home-page > .site-header .language-trigger,
  body.about-page > .site-header .header-theme-toggle,
  body.about-page > .site-header .language-trigger,
  body.contact-page > .site-header .header-theme-toggle,
  body.contact-page > .site-header .language-trigger {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  body.home-page > .site-header .header-login-button,
  body.about-page > .site-header .header-login-button,
  body.contact-page > .site-header .header-login-button {
    min-height: 36px !important;
    padding-inline: 8px !important;
    font-size: 13px !important;
  }

  body.home-page > .site-header .nav-links,
  body.about-page > .site-header .nav-links,
  body.contact-page > .site-header .nav-links {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    width: 100% !important;
    justify-content: center !important;
    gap: clamp(22px, 8vw, 44px) !important;
    font-size: 13px !important;
  }
}

@media (max-width: 430px) {
  body.home-page > .site-header .header-login-button,
  body.about-page > .site-header .header-login-button,
  body.contact-page > .site-header .header-login-button {
    width: 36px !important;
    min-width: 36px !important;
    overflow: hidden !important;
    color: transparent !important;
    padding: 0 !important;
  }

  body.home-page > .site-header .header-login-button svg,
  body.about-page > .site-header .header-login-button svg,
  body.contact-page > .site-header .header-login-button svg {
    color: #3f260d !important;
  }
}

/* Home legal hero. */
@media (max-width: 900px) {
  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero {
    min-height: 100svh !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .chat-home-stage {
    min-height: 100svh !important;
    padding-inline: var(--nizo-mobile-x) !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    width: min(760px, 100%) !important;
    transform: translateY(-42px) !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker,
  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-intake-copy h1 {
    max-width: min(100%, 760px) !important;
    font-size: clamp(34px, 6.4vw, 58px) !important;
    line-height: 1.05 !important;
    text-align: center !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-intake-panel {
    width: min(100%, 720px) !important;
  }
}

@media (max-width: 620px) {
  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) {
    min-height: 100svh !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero::before {
    background-position: 50% center !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    width: 100% !important;
    transform: translateY(-24px) !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker,
  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-intake-copy h1 {
    font-size: clamp(26px, 8vw, 40px) !important;
    line-height: 1.08 !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
    grid-template-columns: 40px minmax(0, 1fr) 34px 92px !important;
    width: 100% !important;
    min-height: 58px !important;
    height: 58px !important;
    border-radius: 999px !important;
    padding: 7px 8px 7px 12px !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer textarea {
    min-height: 36px !important;
    padding: 7px 6px !important;
    font-size: 13.5px !important;
    line-height: 1.25 !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-attach-button,
  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-voice-button {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button {
    width: 88px !important;
    min-width: 88px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding-inline: 12px !important;
    font-size: 13px !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-notice {
    width: 100% !important;
    margin-top: 8px !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text {
    font-size: 10.8px !important;
    line-height: 1.35 !important;
  }

  body.home-page .floating-social-dock {
    left: 50% !important;
    right: auto !important;
    bottom: calc(30px + var(--nizo-mobile-bottom)) !important;
    transform: translateX(-50%) !important;
    width: min(calc(100vw - 28px), 390px) !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 7px 10px !important;
  }

  body.home-page .floating-social-link {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  body.home-page .site-footer {
    left: var(--nizo-mobile-x) !important;
    right: var(--nizo-mobile-x) !important;
    bottom: calc(4px + var(--nizo-mobile-bottom)) !important;
    width: auto !important;
  }

  body.home-page .site-footer .footer-legal {
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
}

@media (max-width: 380px) {
  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
    grid-template-columns: 34px minmax(0, 1fr) 32px 48px !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button {
    width: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button span {
    display: none !important;
  }
}

/* About page. */
@media (max-width: 900px) {
  body.about-page .about-company-hero {
    min-height: 100svh !important;
    padding: 116px var(--nizo-mobile-x) 56px !important;
    background-position: 56% center !important;
  }

  body.about-page .about-company-copy {
    width: min(100%, 620px) !important;
    margin-inline: auto !important;
    padding: 22px 0 !important;
  }

  body.about-page .about-company-copy h1 {
    font-size: clamp(30px, 6.4vw, 56px) !important;
    line-height: 1.06 !important;
  }

  body.about-page .about-company-text p {
    font-size: clamp(14px, 2.3vw, 18px) !important;
    line-height: 1.55 !important;
  }

  body.about-page .about-video-stage {
    min-height: 100svh !important;
    padding: 112px var(--nizo-mobile-x) 96px !important;
  }

  body.about-page .about-video-frame {
    width: min(100%, 780px) !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
  }
}

@media (max-width: 620px) {
  body.about-page .about-company-hero {
    padding-top: 122px !important;
    background-position: 62% center !important;
  }

  body.about-page .about-company-copy {
    padding: 0 !important;
  }

  body.about-page .about-company-copy h1 {
    font-size: clamp(28px, 8vw, 38px) !important;
  }

  body.about-page .about-company-text p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  body.about-page .about-video-stage {
    padding-top: 118px !important;
  }

  body.about-page .floating-social-dock.about-social-dock {
    left: 50% !important;
    right: auto !important;
    bottom: calc(18px + var(--nizo-mobile-bottom)) !important;
    transform: translateX(-50%) !important;
    width: min(calc(100vw - 28px), 390px) !important;
  }
}

/* Contacts page. */
@media (max-width: 980px) {
  body.contact-page .contact-compact-hero {
    min-height: 100svh !important;
    padding: 120px var(--nizo-mobile-x) 48px !important;
    align-items: center !important;
    overflow-y: auto !important;
  }

  body.contact-page .contact-compact-grid {
    width: min(100%, 760px) !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    align-items: stretch !important;
  }

  body.contact-page .contact-details-card,
  body.contact-page .contact-location-card {
    min-height: 0 !important;
  }

  body.contact-page .contact-map {
    min-height: 360px !important;
  }
}

@media (max-width: 620px) {
  body.contact-page::before {
    background-position: 50% center !important;
  }

  body.contact-page .contact-compact-hero {
    padding-top: 126px !important;
    padding-bottom: 30px !important;
  }

  body.contact-page .contact-compact-grid {
    gap: 14px !important;
  }

  body.contact-page .contact-details-card {
    padding: 18px !important;
  }

  body.contact-page .contact-details-list {
    gap: 10px !important;
  }

  body.contact-page .contact-details-list dt {
    font-size: 10.5px !important;
    letter-spacing: 0.08em !important;
  }

  body.contact-page .contact-details-list dd {
    font-size: 13.5px !important;
    line-height: 1.42 !important;
  }

  body.contact-page .contact-map {
    min-height: 300px !important;
  }

  body.contact-page .contact-map-link {
    font-size: 13px !important;
  }
}

/* Auth screens: login, registration, password reset. */
@media (max-width: 900px) {
  body.auth-page-shell .auth-page {
    min-height: 100svh !important;
    padding: calc(24px + var(--nizo-mobile-top)) var(--nizo-mobile-x) calc(36px + var(--nizo-mobile-bottom)) !important;
    align-content: start !important;
    justify-items: center !important;
    overflow-y: auto !important;
  }

  body.auth-page-shell .auth-page-brand {
    margin: 0 auto clamp(18px, 4svh, 36px) !important;
    transform: none !important;
  }

  body.auth-page-shell .auth-page-panel {
    width: min(100%, 720px) !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 620px) {
  body.auth-page-shell .auth-page {
    padding-inline: 14px !important;
  }

  body.auth-page-shell .auth-page-brand .brand-logo {
    width: min(140px, 42vw) !important;
    height: auto !important;
  }

  body.auth-page-shell .auth-page-panel {
    border-radius: 22px !important;
    padding: 20px 16px !important;
  }

  body.auth-page-shell .auth-page-toolbar {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
  }

  body.auth-page-shell .auth-mode-tabs {
    min-width: 0 !important;
  }

  body.auth-page-shell .auth-mode-tabs a {
    min-height: 40px !important;
    padding-inline: 12px !important;
    font-size: 14px !important;
  }

  body.auth-page-shell .auth-toolbar-actions {
    gap: 8px !important;
  }

  body.auth-page-shell .auth-language-control select {
    max-width: 118px !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }

  body.auth-page-shell .auth-exit-link {
    font-size: 13px !important;
  }

  body.auth-page-shell .auth-page-form {
    gap: 14px !important;
  }

  body.auth-page-shell .auth-page-form input,
  body.auth-page-shell .phone-input-shell {
    min-height: 52px !important;
    font-size: 16px !important;
  }

  body.auth-page-shell .primary-button.full-width {
    min-height: 52px !important;
    font-size: 17px !important;
  }

  body.auth-page-shell .auth-legal-note,
  body.auth-page-shell .auth-page-links {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 430px) {
  body.auth-page-shell .auth-page-toolbar {
    grid-template-columns: 1fr !important;
  }

  body.auth-page-shell .auth-toolbar-actions {
    justify-content: space-between !important;
  }
}

/* Cabinet. Keep real controls alive, only make the scene usable on narrow screens. */
@media (max-width: 1180px) {
  .cabinet-page .cabinet-chat-app {
    grid-template-columns: 300px minmax(0, 1fr) !important;
  }

  .cabinet-page .cabinet-chat-sidebar,
  .cabinet-page .cabinet-chat-sidebar.is-collapsed,
  .cabinet-page .cabinet-chat-sidebar.is-expanded {
    width: 300px !important;
    padding: 20px 14px 16px !important;
  }

  .cabinet-page .cabinet-court-brand__text {
    font-size: clamp(24px, 2.3vw, 31px) !important;
  }

  .cabinet-page .cabinet-sidebar-nav button,
  .cabinet-page .cabinet-profile-trigger {
    font-size: 15px !important;
  }

  .cabinet-page .cabinet-chat-center {
    padding-inline: clamp(18px, 4vw, 56px) !important;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] {
    grid-template-columns: 300px minmax(0, 1fr) !important;
  }

  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar[data-cabinet-sidebar],
  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar.is-collapsed[data-cabinet-sidebar],
  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar.is-expanded[data-cabinet-sidebar] {
    width: 300px !important;
  }
}

@media (max-width: 860px) {
  .cabinet-page .cabinet-chat-app {
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }

  .cabinet-page .cabinet-chat-sidebar,
  .cabinet-page .cabinet-chat-sidebar.is-collapsed,
  .cabinet-page .cabinet-chat-sidebar.is-expanded {
    width: 82px !important;
    padding: 16px 10px !important;
  }

  .cabinet-page .cabinet-court-brand__text,
  .cabinet-page .cabinet-sidebar-nav span,
  .cabinet-page .cabinet-sidebar-dialogs,
  .cabinet-page .cabinet-case-nav-list,
  .cabinet-page .cabinet-profile-meta,
  .cabinet-page .cabinet-profile-chevron {
    display: none !important;
  }

  .cabinet-page .cabinet-sidebar-head {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    margin-bottom: 24px !important;
  }

  .cabinet-page .cabinet-sidebar-controls {
    justify-self: center !important;
  }

  .cabinet-page .cabinet-sidebar-nav button {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    padding-inline: 8px !important;
  }

  .cabinet-page .cabinet-chat-center {
    padding: 86px 16px 138px !important;
  }

  .cabinet-page .cabinet-chat-composer,
  .cabinet-page .cabinet-dialog-thread,
  .cabinet-page .cabinet-cases-panel,
  .cabinet-page .cabinet-profile-panel {
    width: min(680px, calc(100vw - 118px)) !important;
  }

  .cabinet-page .cabinet-empty-state h1 {
    font-size: clamp(34px, 6.2vw, 48px) !important;
    white-space: normal !important;
  }
}

@media (max-width: 640px) {
  .cabinet-page.cabinet-chat-page {
    overflow: hidden !important;
  }

  .cabinet-page .cabinet-chat-app {
    display: block !important;
    min-height: 100svh !important;
  }

  .cabinet-page .cabinet-chat-workspace {
    width: 100vw !important;
    min-height: 100svh !important;
    background-position: center top !important;
  }

  .cabinet-page .cabinet-chat-workspace::before {
    background:
      radial-gradient(ellipse at 50% 43%, rgba(255, 239, 214, 0.84) 0%, rgba(255, 239, 214, 0.62) 38%, rgba(255, 239, 214, 0.18) 72%, transparent 88%),
      linear-gradient(180deg, rgba(255, 248, 236, 0.12), rgba(66, 39, 14, 0.12)) !important;
  }

  .cabinet-page .cabinet-chat-sidebar,
  .cabinet-page .cabinet-chat-sidebar.is-collapsed,
  .cabinet-page .cabinet-chat-sidebar.is-expanded {
    position: fixed !important;
    inset: auto 10px calc(10px + var(--nizo-mobile-bottom)) 10px !important;
    z-index: 30 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border: 1px solid rgba(82, 52, 23, 0.16) !important;
    border-radius: 22px !important;
    background: rgba(255, 246, 234, 0.92) !important;
    padding: 8px !important;
    backdrop-filter: blur(18px) saturate(1.04) !important;
  }

  .cabinet-page .cabinet-sidebar-head,
  .cabinet-page .cabinet-sidebar-spacer,
  .cabinet-page .cabinet-sidebar-bottom {
    display: none !important;
  }

  .cabinet-page .cabinet-sidebar-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }

  .cabinet-page .cabinet-sidebar-nav button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 44px !important;
    border-radius: 16px !important;
    padding: 8px 4px !important;
  }

  .cabinet-page .cabinet-sidebar-nav button svg {
    width: 22px !important;
    height: 22px !important;
  }

  .cabinet-page .cabinet-top-actions {
    top: calc(12px + var(--nizo-mobile-top)) !important;
    right: 12px !important;
    gap: 8px !important;
  }

  .cabinet-page .cabinet-tool-button,
  .cabinet-page .language-trigger {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  .cabinet-page .cabinet-top-language .language-trigger {
    min-width: 58px !important;
    padding-inline: 8px !important;
  }

  .cabinet-page .cabinet-chat-center {
    min-height: 100svh !important;
    padding: calc(58px + var(--nizo-mobile-top)) 14px calc(218px + var(--nizo-mobile-bottom)) !important;
    gap: 14px !important;
  }

  .cabinet-page .cabinet-empty-state h1 {
    max-width: 340px !important;
    font-size: clamp(27px, 8.4vw, 38px) !important;
    line-height: 1.1 !important;
    text-shadow: 0 2px 18px rgba(255, 238, 210, 0.92), 0 1px 0 rgba(255, 248, 236, 0.58) !important;
  }

  .cabinet-page .cabinet-empty-state h1::after {
    margin-top: 12px !important;
  }

  .cabinet-page .cabinet-chat-composer {
    grid-template-columns: 38px minmax(0, 1fr) 38px 48px !important;
    width: min(100%, 390px) !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    padding: 8px 9px !important;
  }

  .cabinet-page .cabinet-chat-composer textarea {
    font-size: 14.5px !important;
    padding-inline: 6px !important;
  }

  .cabinet-page .cabinet-model-pill {
    display: none !important;
  }

  .cabinet-page .cabinet-composer-icon {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .cabinet-page .cabinet-send-button {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
  }

  .cabinet-page .cabinet-dialog-thread,
  .cabinet-page .cabinet-cases-panel,
  .cabinet-page .cabinet-profile-panel {
    width: 100% !important;
    max-height: calc(100svh - 172px) !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 420px) {
  .cabinet-page .cabinet-chat-composer {
    width: calc(100vw - 24px) !important;
  }

  .cabinet-page .cabinet-empty-state h1 {
    font-size: clamp(28px, 9.6vw, 36px) !important;
  }
}

/* Cabinet mobile hard override: old cabinet rules have very specific !important
   declarations, so this block intentionally uses the real DOM path. */
@media (max-width: 640px) {
  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] {
    display: block !important;
    grid-template-columns: none !important;
    width: 100vw !important;
    min-height: 100svh !important;
  }

  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > main.cabinet-chat-workspace {
    width: 100vw !important;
    min-width: 100vw !important;
    min-height: 100svh !important;
    margin: 0 !important;
    transform: none !important;
  }

  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar[data-cabinet-sidebar],
  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar.is-collapsed[data-cabinet-sidebar],
  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar.is-expanded[data-cabinet-sidebar] {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: calc(10px + var(--nizo-mobile-bottom)) !important;
    top: auto !important;
    z-index: 30 !important;
    display: block !important;
    width: calc(100vw - 20px) !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border: 1px solid rgba(82, 52, 23, 0.16) !important;
    border-radius: 22px !important;
    background: rgba(255, 246, 234, 0.92) !important;
    padding: 8px !important;
    overflow: visible !important;
    backdrop-filter: blur(18px) saturate(1.04) !important;
  }

  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar[data-cabinet-sidebar] .cabinet-sidebar-head,
  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar[data-cabinet-sidebar] .cabinet-sidebar-spacer,
  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar[data-cabinet-sidebar] .cabinet-sidebar-bottom {
    display: none !important;
  }

  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar[data-cabinet-sidebar] .cabinet-sidebar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }

  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar[data-cabinet-sidebar] .cabinet-sidebar-nav button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    min-height: 44px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    place-items: center !important;
    border-radius: 16px !important;
    padding: 8px 4px !important;
  }

  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar[data-cabinet-sidebar] .cabinet-sidebar-nav span,
  html body.cabinet-page.cabinet-chat-page > div.cabinet-chat-app[data-cabinet-page] > aside.cabinet-chat-sidebar[data-cabinet-sidebar] .cabinet-nav-chevron {
    display: none !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-center {
    width: 100vw !important;
    min-width: 0 !important;
    padding: calc(58px + var(--nizo-mobile-top)) 14px calc(218px + var(--nizo-mobile-bottom)) !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer {
    width: min(calc(100vw - 24px), 390px) !important;
  }
}

/* 2026-06-24 final premium corrections: keep functionality, fix visual layer. */
:root {
  --nizo-ink-premium: #2d1b0d;
  --nizo-brown-premium: #4a2708;
  --nizo-gold-premium: #c78b43;
  --nizo-cream-premium: #fff3df;
}

body.home-page > .site-header .header-theme-toggle,
body.about-page > .site-header .header-theme-toggle,
body.contact-page > .site-header .header-theme-toggle,
body.home-page .chat-stage-tool-right,
body.cabinet-page .cabinet-top-theme {
  display: none !important;
}

body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
body.about-page > .site-header,
body.contact-page > .site-header {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .nav-links a,
body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .header-login-button,
body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .language-trigger {
  color: rgba(48, 29, 13, 0.94) !important;
  text-shadow: 0 1px 12px rgba(255, 242, 220, 0.7) !important;
}

body.about-page > .site-header .nav-links a,
body.contact-page > .site-header .nav-links a,
body.about-page > .site-header .header-login-button,
body.contact-page > .site-header .header-login-button,
body.about-page > .site-header .language-trigger,
body.contact-page > .site-header .language-trigger {
  color: rgba(255, 240, 210, 0.96) !important;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.72) !important;
}

body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .header-login-button,
body.about-page > .site-header .header-login-button,
body.contact-page > .site-header .header-login-button,
body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .language-trigger,
body.about-page > .site-header .language-trigger,
body.contact-page > .site-header .language-trigger {
  min-width: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding-inline: 6px !important;
}

body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .header-login-button:hover,
body.about-page > .site-header .header-login-button:hover,
body.contact-page > .site-header .header-login-button:hover,
body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .language-trigger:hover,
body.about-page > .site-header .language-trigger:hover,
body.contact-page > .site-header .language-trigger:hover {
  color: var(--nizo-gold-premium) !important;
  transform: translateY(-1px) !important;
}

.site-header .nav-links a::after,
.site-header .nav-links a[aria-current="page"]::after {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-intake-shell {
  transform: translateY(18px) !important;
}

body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(30px, 4.2vw, 58px) !important;
  line-height: 1.05 !important;
  color: rgba(48, 29, 13, 0.96) !important;
  text-shadow: 0 2px 20px rgba(255, 238, 210, 0.92) !important;
}

body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-notice {
  margin-top: clamp(10px, 1.25vw, 18px) !important;
}

body.home-page .privacy-consent-notice .privacy-consent-text a {
  text-decoration: underline !important;
  text-decoration-color: rgba(70, 42, 18, 0.62) !important;
  text-underline-offset: 4px !important;
  transition: color 150ms ease, text-decoration-color 150ms ease !important;
}

body.home-page .privacy-consent-notice .privacy-consent-text a:hover,
body.home-page .privacy-consent-notice .privacy-consent-text a:focus-visible {
  color: #3f2208 !important;
  text-decoration-color: var(--nizo-gold-premium) !important;
}

body.home-page .case-materials-popover {
  width: min(92vw, 440px) !important;
  margin-top: 6px !important;
  border: 1px solid rgba(141, 91, 39, 0.28) !important;
  background: rgba(255, 246, 232, 0.9) !important;
  color: rgba(57, 35, 16, 0.82) !important;
  box-shadow: 0 20px 55px rgba(78, 42, 13, 0.18) !important;
  backdrop-filter: blur(14px) saturate(1.06) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.06) !important;
}

body.home-page .file-upload-button,
body.home-page .composer-file-picker {
  border-color: rgba(104, 57, 18, 0.38) !important;
  background: linear-gradient(180deg, rgba(105, 57, 18, 0.96), rgba(67, 35, 9, 0.98)) !important;
  color: #fff2dc !important;
  box-shadow: 0 14px 30px rgba(73, 38, 10, 0.22) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  letter-spacing: 0 !important;
}

body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer .footer-legal {
  color: rgba(61, 36, 15, 0.84) !important;
  text-shadow: 0 1px 10px rgba(255, 238, 210, 0.8) !important;
}

body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock,
body.cabinet-page .floating-social-dock.is-cabinet {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link,
body.cabinet-page .floating-social-dock.is-cabinet .floating-social-link {
  color: rgba(58, 34, 13, 0.94) !important;
  background: rgba(255, 242, 221, 0.18) !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:hover,
body.cabinet-page .floating-social-dock.is-cabinet .floating-social-link:hover {
  background: rgba(255, 238, 207, 0.44) !important;
  color: #4a2708 !important;
}

body.cabinet-page .cabinet-top-actions {
  top: clamp(16px, 2.2vw, 28px) !important;
  right: clamp(16px, 2.4vw, 34px) !important;
  left: auto !important;
}

body.cabinet-page .cabinet-top-language .language-trigger {
  background: rgba(255, 239, 214, 0.34) !important;
  border: 0 !important;
  color: #321d0c !important;
  box-shadow: none !important;
}

@media (min-width: 921px) {
  body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-expanded) {
    grid-template-columns: clamp(236px, 22vw, 300px) minmax(0, 1fr) !important;
  }

  body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-collapsed) {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed {
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    padding-inline: 10px !important;
  }

  body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded {
    width: clamp(236px, 22vw, 300px) !important;
    min-width: clamp(236px, 22vw, 300px) !important;
    max-width: clamp(236px, 22vw, 300px) !important;
  }

  body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-court-brand__text,
  body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-sidebar-nav span,
  body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-profile-meta,
  body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-profile-chevron,
  body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-case-nav-list,
  body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-sidebar-dialogs {
    display: none !important;
  }

  body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-sidebar-head {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }

  body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-sidebar-nav button,
  body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-profile-trigger {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    padding-inline: 8px !important;
  }
}

@media (max-width: 1120px) {
  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-intake-shell {
    width: min(760px, calc(100vw - 44px)) !important;
    transform: translateY(12px) !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
    font-size: clamp(28px, 5vw, 46px) !important;
  }
}

@media (max-width: 760px) {
  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
  body.about-page > .site-header,
  body.contact-page > .site-header {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
    padding: calc(10px + var(--nizo-mobile-top, 0px)) 14px 8px !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .nav-links,
  body.about-page > .site-header .nav-links,
  body.contact-page > .site-header .nav-links {
    grid-column: 1 / -1 !important;
    justify-content: center !important;
    gap: clamp(18px, 7vw, 34px) !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-intake-shell {
    width: min(430px, calc(100vw - 26px)) !important;
    transform: translateY(6px) !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
    font-size: clamp(25px, 8vw, 38px) !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
    min-height: 66px !important;
    border-radius: 22px !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__textarea {
    font-size: 15px !important;
  }

  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    max-width: 94vw !important;
  }
}

@media (max-width: 640px) {
  body.cabinet-page .cabinet-top-actions {
    top: calc(12px + var(--nizo-mobile-top, 0px)) !important;
    right: 12px !important;
  }

  body.cabinet-page .cabinet-top-language .language-trigger {
    min-width: 48px !important;
  }

  body.cabinet-page .floating-social-dock.is-cabinet {
    display: none !important;
  }
}
/* EOF marker for final responsive premium override placement. */

/* REAL FINAL RESPONSIVE OVERRIDE 2026-06-24. */
body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
  transform: translateY(18px) !important;
}

@media (max-width: 1120px) {
  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    width: min(760px, calc(100vw - 44px)) !important;
    transform: translateY(12px) !important;
  }
}

@media (max-width: 760px) {
  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    width: min(430px, calc(100vw - 26px)) !important;
    transform: translateY(6px) !important;
  }
}

@media (max-width: 420px) {
  body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    width: calc(100vw - 22px) !important;
    transform: translateY(4px) !important;
  }
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .header-theme-toggle,
html body.about-page > .site-header .header-theme-toggle,
html body.contact-page > .site-header .header-theme-toggle,
html body.cabinet-page .cabinet-top-theme {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* FINAL READABILITY PASS 2026-06-24. */
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .header-login-button,
html body.about-page > .site-header .header-login-button,
html body.contact-page > .site-header .header-login-button {
  color: #fff2d8 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92), 0 0 2px rgba(0, 0, 0, 0.9) !important;
  font-weight: 700 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .header-login-button:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .header-login-button:focus-visible,
html body.about-page > .site-header .header-login-button:hover,
html body.about-page > .site-header .header-login-button:focus-visible,
html body.contact-page > .site-header .header-login-button:hover,
html body.contact-page > .site-header .header-login-button:focus-visible {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 7px !important;
}

html body.about-page .about-practice-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, rgba(19, 10, 4, 0.66) 0%, rgba(19, 10, 4, 0.34) 34%, rgba(19, 10, 4, 0.06) 68%) !important;
  z-index: 0 !important;
}

html body.about-page .about-practice-hero > * {
  position: relative !important;
  z-index: 1 !important;
}

html body.about-page .about-intro-copy {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.78) !important;
}

html body.about-page .about-intro-copy p {
  color: rgba(255, 243, 220, 0.94) !important;
}

@media (min-width: 641px) and (max-width: 1180px) {
  html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded .cabinet-sidebar-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded .cabinet-sidebar-brand {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    justify-content: flex-start !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded .cabinet-court-brand__text {
    max-width: 170px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-controls {
    position: relative !important;
    z-index: 6 !important;
    justify-self: end !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-toggle {
    position: relative !important;
    z-index: 7 !important;
    pointer-events: auto !important;
  }
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer [data-cabinet-chat-file-input] {
  display: none !important;
}

@media (max-width: 760px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .header-login-button,
  html body.about-page > .site-header .header-login-button,
  html body.contact-page > .site-header .header-login-button {
    font-size: 14px !important;
  }
}

/* Visual audit lock 2026-06-24: keep the premium artwork as background, keep controls clickable. */
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
html body.about-page > .site-header,
html body.contact-page > .site-header {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-theme-toggle,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .chat-stage-tool-right,
html body.about-page .header-theme-toggle,
html body.contact-page .header-theme-toggle,
html body.legal-document-page .legal-theme-toggle,
html body.legal-pdf-page .legal-theme-toggle,
html body.legal-reader-page .legal-theme-toggle,
html body.cabinet-page .cabinet-top-theme {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .nav-links,
html body.about-page > .site-header .nav-links,
html body.contact-page > .site-header .nav-links {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .nav-links a,
html body.about-page > .site-header .nav-links a,
html body.contact-page > .site-header .nav-links a,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .header-login-button,
html body.about-page > .site-header .header-login-button,
html body.contact-page > .site-header .header-login-button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(255, 238, 210, 0.98) !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.78), 0 0 2px rgba(0, 0, 0, 0.72) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .nav-links a::after,
html body.about-page > .site-header .nav-links a::after,
html body.contact-page > .site-header .nav-links a::after {
  left: 0 !important;
  right: 0 !important;
  bottom: 3px !important;
  width: auto !important;
  background: rgba(255, 220, 160, 0.92) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .language-trigger,
html body.about-page > .site-header .language-trigger,
html body.contact-page > .site-header .language-trigger {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(255, 238, 210, 0.98) !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .language-trigger:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header .language-trigger:focus-visible,
html body.about-page > .site-header .language-trigger:hover,
html body.about-page > .site-header .language-trigger:focus-visible,
html body.contact-page > .site-header .language-trigger:hover,
html body.contact-page > .site-header .language-trigger:focus-visible {
  background: rgba(255, 235, 198, 0.13) !important;
  outline: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
  transform: translateY(calc(9svh + 10px)) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
  font-size: clamp(32px, 3.7vw, 52px) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-notice .privacy-consent-text a {
  border-bottom: 1px solid rgba(64, 36, 12, 0.52) !important;
  text-decoration: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-notice .privacy-consent-text a:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-notice .privacy-consent-text a:focus-visible {
  border-bottom-color: rgba(87, 46, 12, 0.96) !important;
  color: #2b1708 !important;
  outline: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer .footer-legal {
  color: rgba(255, 234, 202, 0.9) !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.76), 0 0 2px rgba(0, 0, 0, 0.72) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock,
html body.cabinet-page .floating-social-dock.is-cabinet {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link,
html body.cabinet-page .floating-social-dock.is-cabinet .floating-social-link {
  background: transparent !important;
  border-color: rgba(255, 222, 172, 0.24) !important;
  color: rgba(255, 232, 198, 0.98) !important;
  opacity: 1 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-app {
  display: grid !important;
  grid-template-columns: clamp(270px, 21vw, 310px) minmax(0, 1fr) !important;
  width: 100vw !important;
  min-height: 100svh !important;
  overflow: hidden !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-collapsed) {
  grid-template-columns: 82px minmax(0, 1fr) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded {
  position: relative !important;
  inset: auto !important;
  z-index: 20 !important;
  display: flex !important;
  flex-direction: column !important;
  width: clamp(270px, 21vw, 310px) !important;
  min-width: clamp(270px, 21vw, 310px) !important;
  max-width: clamp(270px, 21vw, 310px) !important;
  height: 100svh !important;
  min-height: 100svh !important;
  padding: clamp(18px, 2vw, 30px) clamp(14px, 1.6vw, 22px) !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  padding-inline: 12px !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded .cabinet-court-brand__text,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded .cabinet-sidebar-nav span,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded .cabinet-profile-meta,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded .cabinet-profile-chevron,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded .cabinet-sidebar-dialogs {
  display: initial !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded .cabinet-case-nav-list:not([hidden]) {
  display: grid !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded .cabinet-sidebar-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 42px !important;
  align-items: center !important;
  gap: 8px !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded .cabinet-sidebar-nav button {
  grid-template-columns: 28px minmax(0, 1fr) 18px !important;
  justify-items: stretch !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-court-brand__text,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-sidebar-nav span,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-profile-meta,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-profile-chevron,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-case-nav-list,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-sidebar-dialogs {
  display: none !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-sidebar-head,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-sidebar-nav button,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-profile-trigger {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-workspace {
  min-width: 0 !important;
  min-height: 100svh !important;
  overflow: hidden !important;
  background-position: center !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-workspace::before {
  background:
    linear-gradient(180deg, rgba(255, 243, 225, 0.06), rgba(32, 15, 4, 0.08)) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-center {
  min-height: 100svh !important;
  padding: clamp(72px, 8svh, 104px) clamp(22px, 5vw, 86px) clamp(140px, 17svh, 210px) !important;
  justify-content: center !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer {
  width: min(820px, calc(100vw - clamp(370px, 31vw, 470px))) !important;
  max-width: 820px !important;
  transform: translateY(8svh) !important;
}

html body.cabinet-page.cabinet-chat-page .floating-social-dock.is-cabinet {
  position: fixed !important;
  left: calc(clamp(270px, 21vw, 310px) + (100vw - clamp(270px, 21vw, 310px)) / 2) !important;
  right: auto !important;
  bottom: clamp(68px, 8svh, 106px) !important;
  z-index: 12 !important;
  display: flex !important;
  flex-direction: row !important;
  gap: clamp(12px, 2vw, 24px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-collapsed) .floating-social-dock.is-cabinet {
  left: calc(82px + (100vw - 82px) / 2) !important;
}

@media (min-width: 641px) and (max-width: 1180px) {
  html body.cabinet-page.cabinet-chat-page .cabinet-chat-app {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-collapsed) {
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar,
  html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded {
    width: min(300px, 34vw) !important;
    min-width: min(300px, 34vw) !important;
    max-width: min(300px, 34vw) !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer {
    width: min(700px, calc(100vw - min(300px, 34vw) - 56px)) !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    transform: translateY(6svh) !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-collapsed) .cabinet-chat-composer {
    width: min(700px, calc(100vw - 132px)) !important;
  }

  html body.cabinet-page.cabinet-chat-page .floating-social-dock.is-cabinet {
    left: calc(min(300px, 34vw) + (100vw - min(300px, 34vw)) / 2) !important;
    bottom: 54px !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-collapsed) .floating-social-dock.is-cabinet {
    left: calc(82px + (100vw - 82px) / 2) !important;
  }
}

@media (max-width: 760px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
  html body.about-page > .site-header,
  html body.contact-page > .site-header {
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    padding: calc(10px + var(--nizo-mobile-top, 0px)) 14px 8px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    transform: translateY(5svh) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
    font-size: clamp(24px, 7.4vw, 34px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .composer-submit-button span {
    display: none !important;
  }
}

@media (max-width: 640px) {
  html body.cabinet-page.cabinet-chat-page .cabinet-chat-app {
    display: block !important;
    width: 100vw !important;
    min-height: 100svh !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar,
  html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded,
  html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed {
    position: fixed !important;
    inset: auto 10px 10px 10px !important;
    z-index: 30 !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px !important;
    border-radius: 20px !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-head,
  html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-spacer,
  html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-bottom {
    display: none !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-nav button {
    flex: 1 1 0 !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 8px 4px !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-nav span,
  html body.cabinet-page.cabinet-chat-page .cabinet-nav-chevron,
  html body.cabinet-page.cabinet-chat-page .cabinet-case-nav-list {
    display: none !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-center {
    padding: calc(72px + var(--nizo-mobile-top, 0px)) 14px 144px !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer {
    grid-template-columns: 40px minmax(0, 1fr) 40px 50px !important;
    width: min(100%, 370px) !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    transform: translateY(6svh) !important;
  }

  html body.cabinet-page.cabinet-chat-page .floating-social-dock.is-cabinet {
    left: 50% !important;
    bottom: 74px !important;
    max-width: calc(100vw - 32px) !important;
    gap: 12px !important;
    transform: translateX(-50%) !important;
  }
}

/* NIZO final visual audit patch 2026-06-24: public pages, cabinet and responsive polish. */
html body.home-page .header-theme-toggle,
html body.home-page .chat-stage-tool-right,
html body.about-page .header-theme-toggle,
html body.contact-page .header-theme-toggle,
html body.legal-document-page .legal-theme-toggle,
html body.legal-pdf-page .legal-theme-toggle,
html body.legal-reader-page .legal-theme-toggle,
html body.cabinet-page .cabinet-top-theme {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
html body.about-page > .site-header,
html body.contact-page > .site-header {
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr) !important;
  align-items: center !important;
  min-height: 76px !important;
  padding: 15px clamp(24px, 4vw, 64px) 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand,
html body.about-page .home-premium-brand,
html body.contact-page .home-premium-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  color: #ffe7bd !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.68) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__icon,
html body.about-page .home-premium-brand__icon,
html body.contact-page .home-premium-brand__icon {
  width: clamp(32px, 2.7vw, 42px) !important;
  height: clamp(32px, 2.7vw, 42px) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__text,
html body.about-page .home-premium-brand__text,
html body.contact-page .home-premium-brand__text {
  font-size: clamp(28px, 2.25vw, 39px) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links,
html body.about-page .nav-links,
html body.contact-page .nav-links {
  justify-self: center !important;
  gap: clamp(34px, 5vw, 72px) !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a,
html body.about-page .nav-links a,
html body.contact-page .nav-links a {
  min-width: max-content !important;
  padding: 7px 0 8px !important;
  color: #ffe7bd !important;
  font-size: clamp(14px, 1vw, 17px) !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.68) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a::after,
html body.about-page .nav-links a::after,
html body.contact-page .nav-links a::after {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 2px !important;
  transform: none !important;
  background: currentColor !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-actions,
html body.about-page .header-actions,
html body.contact-page .header-actions {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: clamp(12px, 1.6vw, 20px) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button,
html body.about-page .header-login-button,
html body.contact-page .header-login-button,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .language-trigger,
html body.about-page .language-trigger,
html body.contact-page .language-trigger {
  min-width: auto !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffe7bd !important;
  box-shadow: none !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72) !important;
  filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button:focus-visible,
html body.about-page .header-login-button:hover,
html body.about-page .header-login-button:focus-visible,
html body.contact-page .header-login-button:hover,
html body.contact-page .header-login-button:focus-visible {
  text-decoration: underline !important;
  text-underline-offset: 5px !important;
  transform: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .chat-home-stage::before,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero::before {
  background-position: center center !important;
  background-size: cover !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
  transform: translateY(clamp(12px, 4.2svh, 38px)) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
  margin-bottom: clamp(20px, 3.2svh, 34px) !important;
  color: #2b1808 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(32px, 5.3vw, 70px) !important;
  font-weight: 520 !important;
  line-height: 1.08 !important;
  text-align: center !important;
  text-shadow: 0 2px 1px rgba(255, 245, 224, 0.7), 0 16px 36px rgba(92, 50, 12, 0.14) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
  width: min(720px, calc(100vw - 48px)) !important;
  min-height: 64px !important;
  border-color: rgba(94, 53, 19, 0.28) !important;
  border-radius: 18px !important;
  background: rgba(255, 250, 242, 0.88) !important;
  box-shadow: 0 22px 58px rgba(68, 37, 10, 0.18), inset 0 1px 0 rgba(255,255,255,0.72) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__textarea {
  min-height: 0 !important;
  height: 32px !important;
  padding: 18px 18px 0 !important;
  color: #281706 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__bar {
  min-height: 36px !important;
  padding: 0 13px 9px !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .intake-voice-button,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-attach-button {
  color: #5a3718 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button {
  min-height: 40px !important;
  padding: 0 20px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #5b3513, #351b06) !important;
  color: #fff3da !important;
  box-shadow: 0 10px 24px rgba(55, 28, 7, 0.22), inset 0 1px 0 rgba(255, 231, 188, 0.18) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .case-materials-popover {
  margin-top: 4px !important;
  border: 1px solid rgba(99, 58, 19, 0.26) !important;
  border-radius: 20px !important;
  background: rgba(255, 247, 235, 0.92) !important;
  box-shadow: 0 24px 54px rgba(55, 30, 9, 0.24) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .case-materials-popover .file-upload-button,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .case-materials-popover .composer-file-picker {
  border-color: rgba(103, 63, 25, 0.32) !important;
  background: linear-gradient(180deg, rgba(116, 73, 32, 0.12), rgba(255, 244, 225, 0.72)) !important;
  color: #5c3614 !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .case-materials-popover p {
  color: rgba(58, 39, 23, 0.64) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-notice {
  width: min(660px, calc(100vw - 48px)) !important;
  margin-top: clamp(12px, 2svh, 20px) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text {
  color: rgba(48, 30, 11, 0.7) !important;
  font-size: clamp(12px, 1vw, 15px) !important;
  line-height: 1.45 !important;
  text-align: center !important;
  text-shadow: 0 1px 10px rgba(255, 248, 236, 0.62) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a {
  color: #271707 !important;
  text-decoration-line: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px !important;
  cursor: pointer !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a:focus-visible {
  color: #6d3f16 !important;
  text-decoration-thickness: 2px !important;
  outline: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer {
  position: fixed !important;
  left: clamp(16px, 3vw, 52px) !important;
  right: auto !important;
  bottom: clamp(14px, 2.6svh, 30px) !important;
  z-index: 20 !important;
  display: block !important;
  width: min(430px, 38vw) !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer .footer-context,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer > nav:not(.floating-social-dock) {
  display: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer .footer-legal {
  margin: 0 !important;
  color: rgba(43, 26, 9, 0.82) !important;
  font-size: clamp(10px, 0.88vw, 13px) !important;
  line-height: 1.35 !important;
  text-shadow: 0 1px 8px rgba(255, 244, 224, 0.7) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock,
html body.about-page .floating-social-dock,
html body.cabinet-page .floating-social-dock.is-cabinet {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link,
html body.about-page .floating-social-link,
html body.cabinet-page .floating-social-link {
  width: 38px !important;
  height: 38px !important;
  color: #2f1b08 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 1px 7px rgba(255, 235, 197, 0.55)) drop-shadow(0 7px 14px rgba(54, 28, 8, 0.18)) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-telegram,
html body.about-page .floating-social-link.is-telegram,
html body.cabinet-page .floating-social-link.is-telegram {
  color: #1f78a7 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link svg,
html body.about-page .floating-social-link svg,
html body.cabinet-page .floating-social-link svg {
  width: 23px !important;
  height: 23px !important;
  stroke-width: 1.9 !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-top-actions {
  top: calc(20px + env(safe-area-inset-top, 0px)) !important;
  right: clamp(18px, 3vw, 44px) !important;
  left: auto !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-top-language .language-trigger {
  border: 0 !important;
  background: rgba(255, 238, 209, 0.16) !important;
  color: #ffe5b8 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar {
  font-size: 15px !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-brand.cabinet-court-brand {
  color: #221608 !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-court-brand__mark {
  width: 34px !important;
  height: 34px !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-toggle {
  position: static !important;
  transform: none !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-workspace {
  background-size: cover !important;
  background-position: center center !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  border-radius: 18px !important;
}

@media (min-width: 761px) and (max-width: 1180px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .chat-home-stage::before,
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero::before {
    background-position: 43% center !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
    font-size: clamp(34px, 6vw, 58px) !important;
  }
}

@media (max-width: 760px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
  html body.about-page > .site-header,
  html body.contact-page > .site-header {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    row-gap: 6px !important;
    min-height: auto !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 0 !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links,
  html body.about-page .nav-links,
  html body.contact-page .nav-links {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-content: center !important;
    gap: clamp(22px, 8vw, 44px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-actions,
  html body.about-page .header-actions,
  html body.contact-page .header-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    gap: 10px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .chat-home-stage::before,
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero::before {
    background-position: 34% center !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    transform: translateY(16px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
    font-size: clamp(29px, 8.6vw, 42px) !important;
    width: min(92vw, 620px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
    width: min(92vw, 620px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button span {
    display: inline !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer {
    left: 12px !important;
    right: 12px !important;
    bottom: 6px !important;
    width: auto !important;
    text-align: center !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock {
    bottom: 32px !important;
    gap: 12px !important;
  }
}

@media (max-width: 520px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button {
    display: inline-flex !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    color: #ffe7bd !important;
    font-size: 14px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .language-trigger {
    width: auto !important;
    min-width: auto !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__text,
  html body.about-page .home-premium-brand__text,
  html body.contact-page .home-premium-brand__text {
    font-size: 25px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a,
  html body.about-page .nav-links a,
  html body.contact-page .nav-links a {
    font-size: 13px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
    min-height: 62px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button {
    min-height: 38px !important;
    padding: 0 14px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text {
    font-size: 11px !important;
  }
}

/* NIZO visual audit polish 2026-06-24.
   This layer keeps existing JS behavior intact and only normalizes the premium skin. */
html body.home-page .header-theme-toggle,
html body.home-page .chat-stage-tool-right,
html body.about-page .header-theme-toggle,
html body.contact-page .header-theme-toggle,
html body.cabinet-page .cabinet-top-theme,
html body.legal-document-page .legal-theme-toggle,
html body.legal-pdf-page .legal-theme-toggle,
html body.legal-reader-page .legal-theme-toggle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
  transform: translateY(28px) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
  font-size: clamp(36px, 4.65vw, 72px) !important;
  line-height: 1.05 !important;
  max-width: min(880px, calc(100vw - 48px)) !important;
  text-wrap: balance !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
  width: min(760px, calc(100vw - 44px)) !important;
  min-height: 62px !important;
  border-color: rgba(92, 58, 23, 0.28) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__textarea {
  font-size: clamp(14px, 1.05vw, 17px) !important;
  color: #211306 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-notice {
  margin-top: 12px !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text {
  color: rgba(34, 20, 7, 0.86) !important;
  text-shadow: 0 1px 8px rgba(255, 236, 202, 0.78) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a {
  color: #1f1307 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px !important;
  cursor: pointer !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a:focus-visible {
  color: #6b3d12 !important;
  text-decoration-thickness: 2px !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button {
  min-width: 112px !important;
  background: linear-gradient(180deg, #61380f, #3b1f08) !important;
  color: #fff3dd !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 10px 24px rgba(42,19,2,0.26) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button span {
  display: inline !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .intake-voice-button {
  display: inline-flex !important;
  color: #3d2109 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button,
html body.about-page .header-login-button,
html body.contact-page .header-login-button {
  color: #fff1d6 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.72), 0 0 10px rgba(255,216,151,0.42) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button:focus-visible,
html body.about-page .header-login-button:hover,
html body.about-page .header-login-button:focus-visible,
html body.contact-page .header-login-button:hover,
html body.contact-page .header-login-button:focus-visible {
  color: #fff8eb !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 6px !important;
  outline: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .language-trigger,
html body.about-page .language-trigger,
html body.contact-page .language-trigger {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff1d6 !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.62) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a,
html body.about-page .nav-links a,
html body.contact-page .nav-links a {
  padding-bottom: 7px !important;
  color: rgba(255, 239, 211, 0.94) !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.62) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a::after,
html body.about-page .nav-links a::after,
html body.contact-page .nav-links a::after {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  transform: none !important;
  background: currentColor !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer {
  left: clamp(18px, 3vw, 48px) !important;
  bottom: clamp(14px, 2.3svh, 26px) !important;
  width: min(520px, 42vw) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer .footer-legal {
  color: rgba(255, 238, 207, 0.88) !important;
  font-weight: 500 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 0 8px rgba(84,39,5,0.35) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock,
html body.about-page .floating-social-dock,
html body.cabinet-page .floating-social-dock.is-cabinet {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock {
  bottom: clamp(22px, 3.6svh, 40px) !important;
  gap: clamp(16px, 2vw, 30px) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link,
html body.about-page .floating-social-link,
html body.cabinet-page .floating-social-link {
  opacity: 1 !important;
  width: 42px !important;
  height: 42px !important;
  color: #2a1706 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 1px 9px rgba(255, 239, 208, 0.95)) drop-shadow(0 8px 18px rgba(31,13,0,0.46)) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link svg,
html body.about-page .floating-social-link svg,
html body.cabinet-page .floating-social-link svg {
  width: 25px !important;
  height: 25px !important;
  stroke-width: 2 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-telegram,
html body.about-page .floating-social-link.is-telegram,
html body.cabinet-page .floating-social-link.is-telegram {
  color: #1687c9 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-youtube,
html body.about-page .floating-social-link.is-youtube,
html body.cabinet-page .floating-social-link.is-youtube {
  color: #b72116 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-app-store,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-google-play {
  width: auto !important;
  min-width: auto !important;
  color: #1d1207 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .case-materials-popover {
  border-color: rgba(115, 72, 24, 0.34) !important;
  background: rgba(255, 244, 226, 0.9) !important;
  box-shadow: 0 24px 56px rgba(44, 22, 4, 0.22) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .case-materials-popover .case-materials-button {
  border-color: rgba(105, 62, 18, 0.34) !important;
  background: linear-gradient(180deg, rgba(255, 247, 232, 0.96), rgba(238, 219, 190, 0.92)) !important;
  color: #543110 !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-main,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-panel,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-card,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-center,
html body.cabinet-page.cabinet-chat-page .cabinet-stage-panel,
html body.cabinet-page.cabinet-chat-page .cabinet-project-main,
html body.cabinet-page.cabinet-chat-page .cabinet-home-panel,
html body.cabinet-page.cabinet-chat-page .cabinet-empty-state {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-workspace::before,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-workspace::after,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-center::before,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-center::after {
  content: none !important;
  display: none !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-workspace {
  background-position: center center !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-top-actions {
  top: calc(24px + env(safe-area-inset-top, 0px)) !important;
  right: clamp(18px, 3vw, 44px) !important;
  left: auto !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-top-language .language-trigger {
  background: transparent !important;
  border: 0 !important;
  color: #fff1d6 !important;
  box-shadow: none !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.72) !important;
}

html body.cabinet-page.cabinet-chat-page .floating-social-dock.is-cabinet {
  bottom: clamp(54px, 8svh, 86px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  gap: clamp(18px, 2vw, 30px) !important;
}

html body.cabinet-page.cabinet-chat-page .floating-social-link {
  color: #2b1706 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 1px 8px rgba(255,239,208,0.9)) drop-shadow(0 6px 14px rgba(32,12,0,0.42)) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer {
  width: min(820px, calc(100vw - var(--cabinet-sidebar-width, 86px) - 96px)) !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
}

@media (min-width: 761px) and (max-width: 1180px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
  html body.about-page > .site-header,
  html body.contact-page > .site-header {
    grid-template-columns: auto 1fr auto !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links,
  html body.about-page .nav-links,
  html body.contact-page .nav-links {
    grid-column: 2 !important;
    justify-content: center !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-actions,
  html body.about-page .header-actions,
  html body.contact-page .header-actions {
    grid-column: 3 !important;
    justify-content: end !important;
  }
}

@media (max-width: 760px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    transform: translateY(18px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
    font-size: clamp(27px, 8.4vw, 40px) !important;
    width: min(92vw, 620px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
    width: min(92vw, 620px) !important;
    min-height: 60px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button {
    min-width: 88px !important;
    padding: 0 12px !important;
    gap: 6px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button span {
    display: inline !important;
    font-size: 13px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock {
    bottom: 52px !important;
    gap: 10px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link {
    width: 30px !important;
    height: 30px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link svg {
    width: 19px !important;
    height: 19px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-app-store,
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-google-play {
    width: 30px !important;
    min-width: 30px !important;
    font-size: 0 !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer {
    width: min(92vw, 680px) !important;
  }
}

/* Last-mile visibility polish for links and social actions. */
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a {
  border-bottom: 1px solid currentColor !important;
  text-decoration: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a:focus-visible {
  border-bottom-width: 2px !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link::before,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link::after {
  display: none !important;
  content: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(1) {
  color: #1687c9 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(2) {
  color: #b82e72 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(3) {
  color: #c41c12 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(4) {
  color: #201307 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(5),
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(6) {
  width: auto !important;
  min-width: 112px !important;
  padding: 0 6px !important;
  gap: 7px !important;
  color: #201307 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(5) span,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(6) span {
  display: inline !important;
  color: #201307 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 8px rgba(255, 240, 211, 0.86) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(6) svg {
  color: #18a95c !important;
}

html body.about-page .floating-social-link:nth-child(1),
html body.cabinet-page .floating-social-link:nth-child(1) {
  color: #1687c9 !important;
}

html body.about-page .floating-social-link:nth-child(2),
html body.cabinet-page .floating-social-link:nth-child(2) {
  color: #b82e72 !important;
}

html body.about-page .floating-social-link:nth-child(3),
html body.cabinet-page .floating-social-link:nth-child(3) {
  color: #c41c12 !important;
}

html body.about-page .floating-social-link:nth-child(4),
html body.cabinet-page .floating-social-link:nth-child(4),
html body.about-page .floating-social-link:nth-child(5),
html body.cabinet-page .floating-social-link:nth-child(5),
html body.about-page .floating-social-link:nth-child(6),
html body.cabinet-page .floating-social-link:nth-child(6) {
  color: #201307 !important;
}

@media (max-width: 760px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(360px, calc(100vw - 24px)) !important;
    justify-content: center !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(5),
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(6) {
    width: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(5) span,
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(6) span {
    display: none !important;
  }
}

/* NIZO visual correction pass 2026-06-24: stable premium shell across desktop, tablet and mobile. */
html body.home-page .header-theme-toggle,
html body.home-page .chat-stage-tool-right,
html body.about-page .header-theme-toggle,
html body.contact-page .header-theme-toggle,
html body.cabinet-page .cabinet-top-theme {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
html body.about-page > .site-header,
html body.contact-page > .site-header {
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr) !important;
  align-items: center !important;
  gap: clamp(16px, 3vw, 46px) !important;
  min-height: 74px !important;
  padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(20px, 4vw, 64px) 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand,
html body.about-page .home-premium-brand,
html body.contact-page .home-premium-brand {
  justify-self: start !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  min-width: max-content !important;
  color: #ffe6b8 !important;
  text-decoration: none !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72), 0 0 14px rgba(221, 155, 72, 0.35) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__icon,
html body.about-page .home-premium-brand__icon,
html body.contact-page .home-premium-brand__icon {
  width: clamp(32px, 2.8vw, 44px) !important;
  height: clamp(32px, 2.8vw, 44px) !important;
  color: currentColor !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__text,
html body.about-page .home-premium-brand__text,
html body.contact-page .home-premium-brand__text {
  display: inline-block !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(28px, 2.4vw, 42px) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  color: currentColor !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links,
html body.about-page .nav-links,
html body.contact-page .nav-links {
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(30px, 5vw, 74px) !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a,
html body.about-page .nav-links a,
html body.contact-page .nav-links a,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button,
html body.about-page .header-login-button,
html body.contact-page .header-login-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: max-content !important;
  min-height: 34px !important;
  padding: 6px 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 238, 205, 0.98) !important;
  font-size: clamp(15px, 1vw, 18px) !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.76), 0 0 12px rgba(255, 203, 125, 0.42) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a::after,
html body.about-page .nav-links a::after,
html body.contact-page .nav-links a::after,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button::after,
html body.about-page .header-login-button::after,
html body.contact-page .header-login-button::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 1px !important;
  transform: scaleX(0) !important;
  transform-origin: center !important;
  border-radius: 999px !important;
  background: currentColor !important;
  opacity: 0.9 !important;
  transition: transform 180ms ease !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a[aria-current="page"]::after,
html body.about-page .nav-links a[aria-current="page"]::after,
html body.contact-page .nav-links a[aria-current="page"]::after,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a:hover::after,
html body.about-page .nav-links a:hover::after,
html body.contact-page .nav-links a:hover::after,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button:hover::after,
html body.about-page .header-login-button:hover::after,
html body.contact-page .header-login-button:hover::after,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button:focus-visible::after,
html body.about-page .header-login-button:focus-visible::after,
html body.contact-page .header-login-button:focus-visible::after {
  transform: scaleX(1) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-actions,
html body.about-page .header-actions,
html body.contact-page .header-actions {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(13px, 1.8vw, 22px) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .language-trigger,
html body.about-page .language-trigger,
html body.contact-page .language-trigger {
  display: inline-grid !important;
  place-items: center !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 238, 205, 0.98) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.74) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .language-trigger:hover,
html body.about-page .language-trigger:hover,
html body.contact-page .language-trigger:hover {
  background: rgba(255, 230, 187, 0.12) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
  transform: translateY(calc(9svh + 22px)) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
  width: min(820px, calc(100vw - 42px)) !important;
  margin: 0 auto 22px !important;
  color: #221305 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(31px, 3.4vw, 49px) !important;
  font-weight: 520 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-shadow: 0 1px 0 rgba(255, 240, 215, 0.8), 0 8px 28px rgba(62, 29, 5, 0.14) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
  width: min(760px, calc(100vw - 44px)) !important;
  min-height: 62px !important;
  max-height: 74px !important;
  border-color: rgba(91, 54, 16, 0.34) !important;
  background: rgba(255, 249, 238, 0.76) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 22px 52px rgba(58, 26, 4, 0.16) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__textarea {
  min-height: 34px !important;
  font-size: clamp(14px, 1vw, 17px) !important;
  color: #221305 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__bar {
  align-items: center !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .intake-voice-button,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-attach-button {
  display: inline-flex !important;
  color: #3a2009 !important;
  opacity: 1 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button {
  min-width: 112px !important;
  min-height: 46px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #62370f, #3a1e07) !important;
  color: #fff2dc !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-notice {
  width: min(740px, calc(100vw - 42px)) !important;
  margin: 11px auto 0 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text {
  color: rgba(38, 22, 7, 0.88) !important;
  font-size: clamp(12px, 0.92vw, 14px) !important;
  line-height: 1.42 !important;
  text-align: center !important;
  text-shadow: 0 1px 8px rgba(255, 238, 209, 0.84) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a {
  color: #1f1207 !important;
  text-decoration-line: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px !important;
  border-bottom: 0 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a:focus-visible {
  color: #704212 !important;
  text-decoration-thickness: 2px !important;
  outline: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .case-materials-popover {
  top: calc(100% + 6px) !important;
  left: 0 !important;
  width: min(360px, calc(100vw - 42px)) !important;
  padding: 14px !important;
  border: 1px solid rgba(117, 73, 24, 0.34) !important;
  border-radius: 18px !important;
  background: rgba(255, 242, 220, 0.94) !important;
  color: #4d2b0d !important;
  box-shadow: 0 22px 52px rgba(50, 22, 4, 0.22) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .case-materials-popover .file-upload-button {
  border-color: rgba(108, 64, 18, 0.38) !important;
  background: linear-gradient(180deg, #f5dfbd, #c9924a) !important;
  color: #3f2108 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer {
  position: fixed !important;
  left: clamp(16px, 3vw, 48px) !important;
  right: auto !important;
  bottom: clamp(13px, 2svh, 26px) !important;
  z-index: 8 !important;
  width: min(560px, 43vw) !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer .footer-context,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer > nav:not(.floating-social-dock) {
  display: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer .footer-legal {
  margin: 0 !important;
  color: rgba(255, 235, 202, 0.9) !important;
  font-size: clamp(11px, 0.82vw, 14px) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.76), 0 0 10px rgba(98, 49, 7, 0.44) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock,
html body.about-page .floating-social-dock,
html body.cabinet-page .floating-social-dock.is-cabinet {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: clamp(18px, 3svh, 34px) !important;
  z-index: 9 !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(15px, 2vw, 30px) !important;
  width: auto !important;
  padding: 0 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link,
html body.about-page .floating-social-link,
html body.cabinet-page .floating-social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #241405 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 1px 8px rgba(255, 238, 203, 0.95)) drop-shadow(0 8px 18px rgba(28, 11, 0, 0.46)) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-telegram,
html body.about-page .floating-social-link.is-telegram,
html body.cabinet-page .floating-social-link.is-telegram {
  color: #1188c7 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(2),
html body.about-page .floating-social-link:nth-child(2),
html body.cabinet-page .floating-social-link:nth-child(2) {
  color: #b72b6f !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link:nth-child(3),
html body.about-page .floating-social-link:nth-child(3),
html body.cabinet-page .floating-social-link:nth-child(3) {
  color: #c32117 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-app-store,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-google-play,
html body.about-page .floating-social-link.is-app-store,
html body.about-page .floating-social-link.is-google-play {
  width: auto !important;
  min-width: 112px !important;
  gap: 7px !important;
  color: #201207 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link svg,
html body.about-page .floating-social-link svg,
html body.cabinet-page .floating-social-link svg {
  width: 24px !important;
  height: 24px !important;
  stroke-width: 2 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-google-play svg,
html body.about-page .floating-social-link.is-google-play svg {
  color: #18a95c !important;
}

body.auth-page-shell .auth-page {
  padding-top: clamp(28px, 7svh, 68px) !important;
}

body.auth-page-shell .auth-page-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: clamp(8px, 2svh, 20px) !important;
  color: #ffe6b8 !important;
  text-decoration: none !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72) !important;
}

body.auth-page-shell .auth-page-brand .brand-logo {
  display: none !important;
}

body.auth-page-shell .auth-page-brand::before {
  content: "" !important;
  width: clamp(34px, 2.8vw, 44px) !important;
  height: clamp(34px, 2.8vw, 44px) !important;
  background: url("./assets/nizo-book-logo.svg") center / contain no-repeat !important;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4)) !important;
}

body.auth-page-shell .auth-page-brand::after {
  content: "Nizo.UZ" !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(28px, 2.5vw, 42px) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: currentColor !important;
}

body.auth-page-shell .auth-page-panel {
  transform: translateY(-8px) !important;
}

body.auth-page-shell .auth-page-panel,
body.auth-page-shell .auth-page-panel label span,
body.auth-page-shell .auth-step-title,
body.auth-page-shell .auth-step-note,
body.auth-page-shell .auth-page-links,
body.auth-page-shell .auth-legal-note {
  font-family: Georgia, "Times New Roman", serif !important;
  letter-spacing: 0 !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-workspace::before,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-workspace::after,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-center::before,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-center::after {
  content: none !important;
  display: none !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-app {
  grid-template-columns: clamp(270px, 21vw, 310px) minmax(0, 1fr) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-collapsed) {
  grid-template-columns: 82px minmax(0, 1fr) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-toggle {
  display: inline-grid !important;
  place-items: center !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-top-actions {
  top: calc(22px + env(safe-area-inset-top, 0px)) !important;
  right: clamp(18px, 3vw, 42px) !important;
  left: auto !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-top-language .language-trigger {
  width: 42px !important;
  height: 42px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff0d0 !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer {
  width: min(820px, calc(100vw - clamp(372px, 31vw, 472px))) !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  transform: translateY(7.5svh) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-collapsed) .cabinet-chat-composer {
  width: min(820px, calc(100vw - 160px)) !important;
}

html body.cabinet-page.cabinet-chat-page .floating-social-dock.is-cabinet {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.contact-page .contact-location-card,
body.contact-page .contact-map-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.contact-page .contact-map-visual {
  min-height: clamp(280px, 42vh, 460px) !important;
  border: 1px solid rgba(255, 220, 158, 0.28) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
}

body.contact-page .contact-map-visual iframe {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(280px, 42vh, 460px) !important;
  border: 0 !important;
}

body.contact-page .contact-map-link {
  display: inline-flex !important;
  margin-top: 12px !important;
  color: #ffe5b5 !important;
  text-decoration: underline !important;
  text-underline-offset: 5px !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72) !important;
}

@media (max-width: 1180px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
  html body.about-page > .site-header,
  html body.contact-page > .site-header {
    grid-template-columns: auto 1fr auto !important;
    gap: 18px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links,
  html body.about-page .nav-links,
  html body.contact-page .nav-links {
    gap: clamp(22px, 4vw, 48px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    transform: translateY(calc(7svh + 18px)) !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer {
    width: min(700px, calc(100vw - min(300px, 34vw) - 54px)) !important;
  }
}

@media (max-width: 760px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
  html body.about-page > .site-header,
  html body.contact-page > .site-header {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    min-height: auto !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 0 !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__text,
  html body.about-page .home-premium-brand__text,
  html body.contact-page .home-premium-brand__text {
    font-size: clamp(25px, 8vw, 34px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links,
  html body.about-page .nav-links,
  html body.contact-page .nav-links {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-content: center !important;
    gap: clamp(18px, 8vw, 34px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-actions,
  html body.about-page .header-actions,
  html body.contact-page .header-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    gap: 12px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    transform: translateY(30px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
    font-size: clamp(24px, 7.4vw, 34px) !important;
    margin-bottom: 16px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
    width: min(92vw, 620px) !important;
    min-height: 60px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer {
    left: 14px !important;
    bottom: 12px !important;
    width: min(48vw, 260px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer .footer-legal {
    font-size: 10px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock {
    bottom: 44px !important;
    width: min(360px, calc(100vw - 24px)) !important;
    gap: 9px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link,
  html body.about-page .floating-social-link,
  html body.cabinet-page .floating-social-link {
    width: 30px !important;
    height: 30px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-app-store,
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-google-play,
  html body.about-page .floating-social-link.is-app-store,
  html body.about-page .floating-social-link.is-google-play {
    min-width: 30px !important;
    width: 30px !important;
    gap: 0 !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-app-store span,
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-google-play span,
  html body.about-page .floating-social-link.is-app-store span,
  html body.about-page .floating-social-link.is-google-play span {
    display: none !important;
  }

  body.about-page .about-company-copy {
    left: 18px !important;
    right: 18px !important;
    bottom: 42px !important;
    width: auto !important;
  }

  body.contact-page .contact-compact-hero {
    align-items: end !important;
    padding: 110px 14px 24px !important;
  }

  body.contact-page .contact-compact-grid {
    grid-template-columns: 1fr !important;
    width: min(100%, 520px) !important;
    gap: 16px !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer {
    width: min(92vw, 620px) !important;
    transform: translateY(5svh) !important;
  }
}

/* NIZO final visual audit, 2026-06-24: premium image shell without theme toggles. */
html body.home-page .header-theme-toggle,
html body.home-page .chat-stage-tool[data-theme-toggle],
html body.about-page .header-theme-toggle,
html body.contact-page .header-theme-toggle,
html body.cabinet-page .cabinet-top-theme,
html body.legal-document-page .legal-theme-toggle,
html body.legal-pdf-page .legal-theme-toggle,
html body.legal-reader-page .legal-theme-toggle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
html body.about-page > .site-header,
html body.contact-page > .site-header {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) !important;
  align-items: center !important;
  min-height: 82px !important;
  padding: calc(22px + env(safe-area-inset-top, 0px)) clamp(34px, 4.6vw, 72px) 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand,
html body.about-page .home-premium-brand,
html body.contact-page .home-premium-brand,
html body.auth-page-shell .auth-page-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #2d1607 !important;
  text-decoration: none !important;
  text-shadow: 0 2px 12px rgba(255, 239, 213, 0.38) !important;
}

html body.about-page .home-premium-brand,
html body.contact-page .home-premium-brand {
  color: #fff0d0 !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.62) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__icon,
html body.about-page .home-premium-brand__icon,
html body.contact-page .home-premium-brand__icon,
html body.auth-page-shell .home-premium-brand__icon {
  display: inline-grid !important;
  width: clamp(30px, 3vw, 40px) !important;
  height: clamp(30px, 3vw, 40px) !important;
  color: currentColor !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__icon svg,
html body.about-page .home-premium-brand__icon svg,
html body.contact-page .home-premium-brand__icon svg,
html body.auth-page-shell .home-premium-brand__icon svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__text,
html body.about-page .home-premium-brand__text,
html body.contact-page .home-premium-brand__text,
html body.auth-page-shell .home-premium-brand__text {
  display: inline !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(30px, 3.2vw, 44px) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links,
html body.about-page .nav-links,
html body.contact-page .nav-links {
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  gap: clamp(38px, 5vw, 76px) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a,
html body.about-page .nav-links a,
html body.contact-page .nav-links a {
  position: relative !important;
  display: inline-block !important;
  padding: 6px 0 10px !important;
  border: 0 !important;
  background: transparent !important;
  color: #2f1907 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(15px, 1.1vw, 18px) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  text-shadow: 0 2px 12px rgba(255, 239, 213, 0.52) !important;
}

html body.about-page .nav-links a,
html body.contact-page .nav-links a {
  color: rgba(255, 239, 213, 0.94) !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a::after,
html body.about-page .nav-links a::after,
html body.contact-page .nav-links a::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 3px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  opacity: 0 !important;
  transform: scaleX(0.45) !important;
  transform-origin: center !important;
  transition: opacity 0.18s ease, transform 0.18s ease !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a:hover::after,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a:focus-visible::after,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a[aria-current="page"]::after,
html body.about-page .nav-links a:hover::after,
html body.about-page .nav-links a:focus-visible::after,
html body.about-page .nav-links a[aria-current="page"]::after,
html body.contact-page .nav-links a:hover::after,
html body.contact-page .nav-links a:focus-visible::after,
html body.contact-page .nav-links a[aria-current="page"]::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-actions,
html body.about-page .header-actions,
html body.contact-page .header-actions {
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: clamp(16px, 2.2vw, 30px) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button,
html body.about-page .header-login-button,
html body.contact-page .header-login-button {
  display: inline-flex !important;
  align-items: center !important;
  min-height: auto !important;
  padding: 6px 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #2e1707 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(15px, 1.1vw, 18px) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  text-shadow: 0 2px 12px rgba(255, 239, 213, 0.52) !important;
}

html body.about-page .header-login-button,
html body.contact-page .header-login-button {
  color: rgba(255, 239, 213, 0.95) !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button:focus-visible,
html body.about-page .header-login-button:hover,
html body.about-page .header-login-button:focus-visible,
html body.contact-page .header-login-button:hover,
html body.contact-page .header-login-button:focus-visible {
  outline: none !important;
  text-decoration: underline !important;
  text-underline-offset: 8px !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .language-trigger,
html body.about-page .language-trigger,
html body.contact-page .language-trigger {
  display: inline-grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .language-trigger:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .language-trigger:focus-visible,
html body.about-page .language-trigger:hover,
html body.about-page .language-trigger:focus-visible,
html body.contact-page .language-trigger:hover,
html body.contact-page .language-trigger:focus-visible {
  outline: none !important;
  filter: drop-shadow(0 0 10px rgba(255, 218, 150, 0.5)) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
  width: min(760px, 72vw) !important;
  transform: translateY(calc(8.5svh + 34px)) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
  width: min(660px, 90vw) !important;
  margin: 0 auto 24px !important;
  color: #2c1506 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(30px, 3.4vw, 50px) !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-shadow: 0 2px 20px rgba(255, 238, 210, 0.62) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-intake-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
  width: min(740px, 72vw) !important;
  min-height: 64px !important;
  height: 64px !important;
  padding: 0 8px 0 18px !important;
  border: 1px solid rgba(88, 50, 19, 0.28) !important;
  border-radius: 20px !important;
  background: rgba(255, 249, 238, 0.9) !important;
  box-shadow: 0 18px 44px rgba(54, 26, 6, 0.18) !important;
  backdrop-filter: blur(7px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(7px) saturate(1.05) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__textarea {
  min-height: 64px !important;
  height: 64px !important;
  padding: 21px 198px 12px 42px !important;
  color: #2b1608 !important;
  font-size: clamp(14px, 1vw, 16px) !important;
  line-height: 1.35 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__bar {
  inset: 0 8px 0 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  pointer-events: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__tools,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__actions {
  pointer-events: auto !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .voice-button,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-attach-button {
  width: 34px !important;
  height: 34px !important;
  color: #44301c !important;
  opacity: 0.92 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button {
  min-width: 116px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #63350e, #3b1d05) !important;
  color: #fff0d7 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: 0 12px 26px rgba(48, 23, 4, 0.22) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-notice {
  margin-top: 14px !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text {
  max-width: 760px !important;
  margin: 0 auto !important;
  color: rgba(45, 25, 11, 0.82) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(11px, 0.9vw, 14px) !important;
  line-height: 1.55 !important;
  text-align: center !important;
  text-shadow: 0 2px 12px rgba(255, 239, 215, 0.62) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a {
  color: #2a1506 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a:focus-visible {
  color: #6c3d13 !important;
  outline: none !important;
  text-decoration-thickness: 2px !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .case-materials-popover {
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: auto !important;
  width: min(360px, 86vw) !important;
  border: 1px solid rgba(98, 55, 19, 0.28) !important;
  border-radius: 22px !important;
  background: rgba(255, 246, 230, 0.95) !important;
  box-shadow: 0 24px 54px rgba(61, 31, 8, 0.26) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .file-upload-button {
  border-color: rgba(117, 68, 25, 0.32) !important;
  background: rgba(122, 72, 24, 0.08) !important;
  color: #5a3515 !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer {
  position: fixed !important;
  left: clamp(24px, 3.4vw, 54px) !important;
  right: auto !important;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 5 !important;
  width: min(430px, 40vw) !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer > *:not(.footer-legal) {
  display: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer .footer-legal {
  margin: 0 !important;
  color: rgba(255, 237, 206, 0.92) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(10px, 0.82vw, 13px) !important;
  line-height: 1.35 !important;
  text-align: left !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.76) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock,
html body.about-page .floating-social-dock,
html body.cabinet-page .floating-social-dock.is-cabinet {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(18px, 3vw, 42px) !important;
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link,
html body.about-page .floating-social-link,
html body.cabinet-page .floating-social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff0d0 !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.72)) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-telegram,
html body.about-page .floating-social-link.is-telegram,
html body.cabinet-page .floating-social-link.is-telegram {
  color: #28a8ea !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-app-store,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-google-play {
  width: auto !important;
  min-width: auto !important;
  gap: 8px !important;
  color: #fff0d0 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 14px !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link svg,
html body.about-page .floating-social-link svg,
html body.cabinet-page .floating-social-link svg {
  width: 24px !important;
  height: 24px !important;
  stroke-width: 2.2 !important;
}

html body.auth-page-shell .auth-page-brand::before,
html body.auth-page-shell .auth-page-brand::after {
  content: none !important;
  display: none !important;
}

html body.auth-page-shell .auth-page {
  padding-top: clamp(30px, 6.5svh, 62px) !important;
}

html body.auth-page-shell .auth-page-brand {
  justify-content: center !important;
  color: #fff0d0 !important;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55) !important;
}

html body.auth-page-shell .auth-page-panel {
  transform: translateY(-28px) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-app {
  background:
    linear-gradient(90deg, rgba(40, 21, 6, 0.2), rgba(40, 21, 6, 0.02) 44%, rgba(40, 21, 6, 0.2)),
    url("./assets/nizo-cabinet-exact-reference-20260623.png") center / cover no-repeat fixed !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-center,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-center::before,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-center::after {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-top-actions {
  top: calc(28px + env(safe-area-inset-top, 0px)) !important;
  right: clamp(26px, 4vw, 58px) !important;
  left: auto !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-expanded {
  width: clamp(260px, 23vw, 330px) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed {
  width: 82px !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-court-brand__text,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-sidebar-nav span,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-nav-chevron,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-case-nav-list,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-sidebar-dialogs,
html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-user-meta {
  display: none !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-toggle {
  position: relative !important;
  display: inline-grid !important;
  flex: 0 0 auto !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 20 !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer {
  left: 50% !important;
  right: auto !important;
  width: min(740px, calc(100vw - clamp(360px, 31vw, 470px))) !important;
  height: 64px !important;
  min-height: 64px !important;
  transform: translate(-50%, 6.5svh) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-collapsed) .cabinet-chat-composer {
  width: min(760px, calc(100vw - 150px)) !important;
}

@media (max-width: 1100px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
  html body.about-page > .site-header,
  html body.contact-page > .site-header {
    grid-template-columns: auto 1fr auto !important;
    padding-inline: clamp(20px, 3.2vw, 42px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    transform: translateY(calc(7svh + 34px)) !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-app {
    grid-template-columns: minmax(240px, 30vw) minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode),
  html body.about-page,
  html body.contact-page {
    min-height: 100svh !important;
    overflow-x: hidden !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
  html body.about-page > .site-header,
  html body.contact-page > .site-header {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    row-gap: 8px !important;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 0 !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__text,
  html body.about-page .home-premium-brand__text,
  html body.contact-page .home-premium-brand__text {
    font-size: clamp(26px, 8vw, 36px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links,
  html body.about-page .nav-links,
  html body.contact-page .nav-links {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-content: center !important;
    gap: clamp(18px, 8vw, 36px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-actions,
  html body.about-page .header-actions,
  html body.contact-page .header-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    gap: 14px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    width: min(92vw, 520px) !important;
    transform: translateY(54px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
    font-size: clamp(26px, 8vw, 38px) !important;
    margin-bottom: 18px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
    width: min(92vw, 520px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__textarea {
    padding-right: 164px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button {
    min-width: 98px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer {
    left: 14px !important;
    bottom: 12px !important;
    width: min(52vw, 260px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock,
  html body.about-page .floating-social-dock {
    bottom: 40px !important;
    gap: 12px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-app-store span,
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-google-play span {
    display: none !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-app {
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar {
    width: 76px !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-court-brand__text,
  html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-nav span,
  html body.cabinet-page.cabinet-chat-page .cabinet-nav-chevron,
  html body.cabinet-page.cabinet-chat-page .cabinet-case-nav-list,
  html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-dialogs,
  html body.cabinet-page.cabinet-chat-page .cabinet-user-meta {
    display: none !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer,
  html body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-collapsed) .cabinet-chat-composer {
    width: min(88vw, calc(100vw - 96px)) !important;
    transform: translate(-50%, 6svh) !important;
  }

  html body.cabinet-page.cabinet-chat-page .floating-social-dock.is-cabinet {
    bottom: 24px !important;
    gap: 14px !important;
  }
}

/* Final launch pass, 2026-06-24: premium legal surfaces, consistent controls and responsive layout. */
html body [data-theme-toggle],
html body .header-theme-toggle,
html body .legal-theme-toggle,
html body .cabinet-top-theme,
html body .cabinet-sidebar-theme,
html body .cabinet-theme-toggle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode),
html body.about-page,
html body.contact-page,
html body.auth-page-shell,
html body.legal-page:not(.contact-page) {
  font-family: Georgia, "Times New Roman", serif !important;
  background-color: #1d1209 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero {
  min-height: 100svh !important;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 239, 208, 0.26), rgba(255, 239, 208, 0) 34%),
    linear-gradient(90deg, rgba(22, 11, 4, 0.11), rgba(255, 229, 189, 0.08) 50%, rgba(22, 11, 4, 0.14)),
    url("./assets/nizo-main-premium-bg-20260624.jpg") center / cover no-repeat fixed !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
html body.about-page > .site-header,
html body.contact-page > .site-header,
html body.legal-page:not(.contact-page) > .legal-simple-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 1000 !important;
  display: grid !important;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr) !important;
  align-items: center !important;
  min-height: 86px !important;
  padding: calc(20px + env(safe-area-inset-top, 0px)) clamp(24px, 4vw, 64px) 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand,
html body.about-page .home-premium-brand,
html body.contact-page .home-premium-brand,
html body.legal-page:not(.contact-page) .legal-simple-header .brand {
  grid-column: 1 !important;
  justify-self: start !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  width: auto !important;
  min-width: max-content !important;
  color: #fff0cf !important;
  text-decoration: none !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.66) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__icon,
html body.about-page .home-premium-brand__icon,
html body.contact-page .home-premium-brand__icon {
  width: clamp(34px, 2.65vw, 46px) !important;
  height: clamp(34px, 2.65vw, 46px) !important;
  color: #f7d69c !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55)) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__text,
html body.about-page .home-premium-brand__text,
html body.contact-page .home-premium-brand__text,
html body.legal-page:not(.contact-page) .legal-simple-header .brand {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(28px, 2.35vw, 42px) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  color: #fff0cf !important;
}

html body.legal-page:not(.contact-page) .legal-simple-header .brand::before,
html body.legal-page:not(.contact-page) .legal-simple-header .brand::after {
  display: none !important;
  content: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links,
html body.about-page .nav-links,
html body.contact-page .nav-links {
  grid-column: 2 !important;
  justify-self: center !important;
  position: static !important;
  display: flex !important;
  align-items: center !important;
  gap: clamp(42px, 5.7vw, 82px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a,
html body.about-page .nav-links a,
html body.contact-page .nav-links a,
html body.legal-page:not(.contact-page) .legal-simple-header a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  min-width: max-content !important;
  padding: 7px 0 10px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff0cf !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(15px, 1.04vw, 18px) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  text-shadow: 0 2px 11px rgba(0, 0, 0, 0.72) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a::after,
html body.about-page .nav-links a::after,
html body.contact-page .nav-links a::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  transform: scaleX(0) !important;
  transform-origin: center !important;
  opacity: 0.72 !important;
  transition: transform 160ms ease, opacity 160ms ease !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a:hover::after,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a[aria-current="page"]::after,
html body.about-page .nav-links a:hover::after,
html body.about-page .nav-links a[aria-current="page"]::after,
html body.contact-page .nav-links a:hover::after,
html body.contact-page .nav-links a[aria-current="page"]::after {
  transform: scaleX(1) !important;
  opacity: 1 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-actions,
html body.about-page .header-actions,
html body.contact-page .header-actions {
  grid-column: 3 !important;
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: clamp(16px, 2.2vw, 30px) !important;
  min-width: 0 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .language-trigger,
html body.about-page .header-login-button,
html body.about-page .language-trigger,
html body.contact-page .header-login-button,
html body.contact-page .language-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 8px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff0cf !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(15px, 1.04vw, 18px) !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.78) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .language-trigger:hover,
html body.about-page .header-login-button:hover,
html body.about-page .language-trigger:hover,
html body.contact-page .header-login-button:hover,
html body.contact-page .language-trigger:hover {
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  transform: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .flag-circle,
html body.about-page .flag-circle,
html body.contact-page .flag-circle {
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 22px !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .language-options,
html body.about-page .language-options,
html body.contact-page .language-options,
html body.legal-page:not(.contact-page) .language-options {
  border: 1px solid rgba(248, 218, 162, 0.34) !important;
  border-radius: 16px !important;
  background: rgba(35, 18, 7, 0.9) !important;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.38) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
  width: min(720px, calc(100vw - 64px)) !important;
  margin: 0 auto !important;
  transform: translateY(calc(3.8svh + 20px)) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
  max-width: 760px !important;
  margin: 0 auto 18px !important;
  color: #2e1a08 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(26px, 3.1vw, 47px) !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-shadow: 0 2px 18px rgba(255, 246, 224, 0.45) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-intake-panel {
  width: min(680px, 100%) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer {
  width: 100% !important;
  min-height: 62px !important;
  height: 62px !important;
  border: 1px solid rgba(90, 48, 17, 0.34) !important;
  border-radius: 18px !important;
  background: rgba(255, 252, 245, 0.88) !important;
  box-shadow:
    0 22px 58px rgba(65, 31, 9, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(8px) saturate(1.04) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.04) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__textarea {
  min-height: 62px !important;
  height: 62px !important;
  padding: 18px 176px 14px 56px !important;
  color: #2b2119 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(15px, 1.12vw, 18px) !important;
  line-height: 1.35 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__textarea::placeholder {
  color: rgba(55, 43, 33, 0.52) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__bar {
  inset: 0 !important;
  align-items: center !important;
  padding: 0 10px 0 12px !important;
  pointer-events: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__bar button {
  pointer-events: auto !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-icon-button {
  width: 42px !important;
  height: 42px !important;
  color: #442507 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-icon-button:hover,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-icon-button:focus-visible {
  color: #8b5a1f !important;
  background: rgba(101, 60, 20, 0.08) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button {
  min-width: 118px !important;
  height: 46px !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #5b300b, #341905) !important;
  color: #fff2d8 !important;
  box-shadow: 0 12px 28px rgba(54, 26, 6, 0.28) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .case-materials-popover {
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: auto !important;
  width: min(430px, calc(100vw - 44px)) !important;
  padding: 16px !important;
  border: 1px solid rgba(255, 219, 156, 0.28) !important;
  border-radius: 20px !important;
  background: rgba(46, 25, 10, 0.91) !important;
  color: #ffe6bd !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .file-upload-button {
  border: 1px solid rgba(251, 213, 146, 0.36) !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, rgba(116, 70, 23, 0.9), rgba(60, 31, 9, 0.95)) !important;
  color: #ffe8be !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .file-upload-note {
  color: rgba(255, 237, 202, 0.82) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-panel > .privacy-consent-notice {
  position: static !important;
  width: min(720px, calc(100vw - 54px)) !important;
  margin: 12px auto 0 !important;
  color: rgba(52, 33, 17, 0.86) !important;
  text-align: center !important;
  text-shadow: 0 1px 14px rgba(255, 249, 236, 0.72) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(12px, 0.92vw, 15px) !important;
  line-height: 1.45 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .privacy-consent-text a {
  color: #2e1b0a !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer,
html body.about-page .site-footer {
  position: fixed !important;
  left: clamp(18px, 3.6vw, 58px) !important;
  right: auto !important;
  bottom: clamp(12px, 2.6vh, 28px) !important;
  z-index: 900 !important;
  display: block !important;
  width: min(560px, calc(100vw - 40px)) !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer .footer-context,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer nav:not(.floating-social-dock),
html body.about-page .site-footer .footer-context,
html body.about-page .site-footer nav:not(.floating-social-dock) {
  display: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .footer-legal,
html body.about-page .footer-legal {
  margin: 0 !important;
  color: rgba(255, 236, 198, 0.94) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(11px, 0.9vw, 14px) !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.78) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock,
html body.about-page .floating-social-dock,
html body.cabinet-page .floating-social-dock.is-cabinet {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: clamp(15px, 3vh, 34px) !important;
  z-index: 920 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(16px, 2.5vw, 34px) !important;
  transform: translateX(-50%) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link,
html body.about-page .floating-social-link,
html body.cabinet-page .floating-social-dock.is-cabinet .floating-social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff0cf !important;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.76)) !important;
  opacity: 1 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link svg,
html body.about-page .floating-social-link svg,
html body.cabinet-page .floating-social-dock.is-cabinet .floating-social-link svg {
  width: 25px !important;
  height: 25px !important;
  stroke-width: 2.15 !important;
}

html body .floating-social-link.is-telegram {
  color: #2eb5f0 !important;
}

html body .floating-social-link.is-instagram {
  color: #f1b17d !important;
}

html body .floating-social-link.is-youtube {
  color: #ff6a5f !important;
}

html body .floating-social-link.is-x {
  color: #fff0cf !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-app-store,
html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-google-play,
html body.about-page .floating-social-link.is-app-store,
html body.about-page .floating-social-link.is-google-play {
  gap: 8px !important;
  min-width: auto !important;
  color: #fff0cf !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-app-store svg,
html body.about-page .floating-social-link.is-app-store svg {
  fill: rgba(255, 240, 207, 0.9) !important;
}

html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-google-play svg,
html body.about-page .floating-social-link.is-google-play svg {
  color: #57d56d !important;
}

html body.auth-page-shell {
  min-height: 100svh !important;
  background:
    linear-gradient(90deg, rgba(30, 15, 5, 0.34), rgba(30, 15, 5, 0.14)),
    url("./assets/nizo-legal-desk-hero-20260623.jpg") center / cover no-repeat fixed !important;
}

html body.auth-page-shell .auth-page {
  min-height: 100svh !important;
  padding: clamp(18px, 4.2svh, 42px) 20px 28px !important;
}

html body.auth-page-shell .auth-page-brand {
  margin: 0 auto clamp(14px, 2.2svh, 24px) !important;
  color: #fff0cf !important;
  transform: none !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72) !important;
}

html body.auth-page-shell .auth-page-panel {
  width: min(760px, calc(100vw - 42px)) !important;
  margin: 0 auto !important;
  padding: clamp(24px, 3vw, 38px) !important;
  border: 1px solid rgba(255, 225, 174, 0.22) !important;
  border-radius: 22px !important;
  background: rgba(255, 251, 242, 0.88) !important;
  box-shadow: 0 34px 90px rgba(30, 15, 5, 0.34) !important;
  transform: none !important;
}

html body.auth-page-shell .auth-mode-tabs {
  gap: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.auth-page-shell .auth-mode-tabs a {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #2f2118 !important;
  text-decoration: none !important;
}

html body.auth-page-shell .auth-mode-tabs a.is-active {
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
}

html body.auth-page-shell .primary-button {
  background: linear-gradient(145deg, #5b300b, #341905) !important;
  color: #fff2d8 !important;
  border: 0 !important;
}

html body.legal-page:not(.contact-page) {
  background:
    linear-gradient(90deg, rgba(14, 8, 5, 0.34), rgba(14, 8, 5, 0.12)),
    url("./assets/nizo-documents-premium-bg-20260624.jpg") center / cover no-repeat fixed !important;
}

html body.legal-page:not(.contact-page) .legal-main {
  min-height: 100svh !important;
  padding-top: 120px !important;
  background: transparent !important;
}

html body.legal-page:not(.contact-page) .legal-docs-hero,
html body.legal-page:not(.contact-page) .legal-document-shell,
html body.legal-page:not(.contact-page) .legal-pdf-layout {
  animation: legalDocsRiseFinal 850ms ease 3s both !important;
}

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

html body.legal-page:not(.contact-page) .legal-docs-hero h1,
html body.legal-page:not(.contact-page) .legal-document-title,
html body.legal-page:not(.contact-page) .legal-documents-sidebar h2,
html body.legal-page:not(.contact-page) .legal-reader-title,
html body.legal-page:not(.contact-page) .legal-reader-scroll {
  font-family: Georgia, "Times New Roman", serif !important;
}

html body.legal-page:not(.contact-page) .legal-reader-scroll {
  max-height: calc(100svh - 250px) !important;
  overflow: auto !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-app {
  min-height: 100svh !important;
  grid-template-columns: clamp(250px, 21vw, 318px) minmax(0, 1fr) !important;
  background:
    linear-gradient(90deg, rgba(49, 24, 7, 0.18), rgba(49, 24, 7, 0.02) 48%, rgba(49, 24, 7, 0.2)),
    url("./assets/nizo-cabinet-exact-reference-20260623.png") center / cover no-repeat fixed !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-top-actions {
  top: calc(22px + env(safe-area-inset-top, 0px)) !important;
  right: clamp(20px, 3.5vw, 54px) !important;
  left: auto !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar {
  background: linear-gradient(180deg, rgba(255, 247, 232, 0.9), rgba(255, 247, 232, 0.78)) !important;
  box-shadow: 12px 0 42px rgba(43, 20, 4, 0.14) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed {
  width: 82px !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-sidebar-nav button {
  justify-content: center !important;
  padding-inline: 0 !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar.is-collapsed .cabinet-court-brand__mark {
  width: 42px !important;
  height: 42px !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-toggle {
  display: inline-grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: auto !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer {
  width: min(720px, calc(100vw - clamp(350px, 30vw, 460px))) !important;
  height: 62px !important;
  min-height: 62px !important;
  transform: translate(-50%, 5.5svh) !important;
  border-radius: 18px !important;
  background: rgba(255, 250, 241, 0.88) !important;
}

html body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-collapsed) .cabinet-chat-composer {
  width: min(760px, calc(100vw - 132px)) !important;
}

html body.contact-page {
  min-height: 100svh !important;
  background:
    linear-gradient(90deg, rgba(15, 8, 4, 0.32), rgba(15, 8, 4, 0.08) 52%, rgba(15, 8, 4, 0.26)),
    url("./assets/nizo-contact-premium-bg-20260624-v2.png") center / cover no-repeat fixed !important;
}

html body.contact-page .contact-compact-hero {
  align-items: end !important;
  min-height: 100svh !important;
  padding: 112px clamp(22px, 6vw, 86px) clamp(38px, 7vh, 74px) !important;
}

html body.contact-page .contact-compact-grid {
  width: min(1160px, calc(100vw - 88px)) !important;
  grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 0.98fr) !important;
  align-items: stretch !important;
  gap: clamp(28px, 4.5vw, 68px) !important;
  animation: contactRiseInFinal 860ms cubic-bezier(0.2, 0.84, 0.24, 1) 3.2s both !important;
}

html body.contact-page .contact-details-card {
  padding: clamp(20px, 2.7vw, 32px) !important;
  border: 1px solid rgba(255, 218, 156, 0.24) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, rgba(30, 16, 8, 0.76), rgba(64, 35, 16, 0.48)) !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36) !important;
}

html body.contact-page .contact-location-card,
html body.contact-page .contact-map-card {
  min-height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.contact-page .contact-map-card {
  display: grid !important;
  grid-template-rows: 1fr auto !important;
  gap: 12px !important;
  align-content: stretch !important;
}

html body.contact-page .contact-map-visual,
html body.contact-page .contact-map-live iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(360px, 46vh, 520px) !important;
  border: 0 !important;
  border-radius: 20px !important;
}

html body.contact-page .contact-map-visual {
  overflow: hidden !important;
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.34) !important;
}

html body.contact-page .contact-map-link {
  color: #ffe3ad !important;
  font-family: Georgia, "Times New Roman", serif !important;
  text-decoration: underline !important;
  text-underline-offset: 5px !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.78) !important;
}

@media (max-width: 1120px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
  html body.about-page > .site-header,
  html body.contact-page > .site-header,
  html body.legal-page:not(.contact-page) > .legal-simple-header {
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr) !important;
    padding-inline: clamp(18px, 3.2vw, 42px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links,
  html body.about-page .nav-links,
  html body.contact-page .nav-links {
    gap: clamp(26px, 4vw, 48px) !important;
  }

  html body.contact-page .contact-compact-grid {
    width: min(100%, 980px) !important;
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 820px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode),
  html body.about-page,
  html body.contact-page,
  html body.legal-page:not(.contact-page) {
    overflow-x: hidden !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero,
  html body.about-page,
  html body.contact-page,
  html body.auth-page-shell,
  html body.legal-page:not(.contact-page) {
    background-attachment: scroll !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) > .site-header,
  html body.about-page > .site-header,
  html body.contact-page > .site-header,
  html body.legal-page:not(.contact-page) > .legal-simple-header {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    row-gap: 8px !important;
    min-height: 92px !important;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 0 !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-premium-brand__text,
  html body.about-page .home-premium-brand__text,
  html body.contact-page .home-premium-brand__text {
    font-size: clamp(25px, 7.2vw, 34px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links,
  html body.about-page .nav-links,
  html body.contact-page .nav-links {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-content: center !important;
    gap: clamp(22px, 8vw, 42px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-actions,
  html body.about-page .header-actions,
  html body.contact-page .header-actions {
    grid-column: 2 !important;
    grid-row: 1 !important;
    gap: 12px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    width: min(92vw, 560px) !important;
    transform: translateY(58px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-platform-kicker {
    font-size: clamp(24px, 7.2vw, 36px) !important;
    margin-bottom: 14px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__textarea {
    padding-right: 144px !important;
    padding-left: 50px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button {
    min-width: 90px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer,
  html body.about-page .site-footer {
    left: 14px !important;
    bottom: 10px !important;
    width: min(58vw, 300px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-dock,
  html body.about-page .floating-social-dock,
  html body.cabinet-page .floating-social-dock.is-cabinet {
    bottom: 44px !important;
    gap: 12px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-app-store span,
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .floating-social-link.is-google-play span,
  html body.about-page .floating-social-link.is-app-store span,
  html body.about-page .floating-social-link.is-google-play span {
    display: none !important;
  }

  html body.contact-page .contact-compact-hero {
    align-items: start !important;
    padding: 112px 16px 28px !important;
  }

  html body.contact-page .contact-compact-grid {
    width: min(100%, 640px) !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  html body.about-page .about-company-hero {
    background-position: 62% center !important;
  }

  html body.about-page .about-company-copy {
    left: 18px !important;
    right: 18px !important;
    bottom: 34px !important;
    width: auto !important;
  }

  html body.auth-page-shell .auth-page-panel {
    width: min(100%, 560px) !important;
    padding: 22px !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-app {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    background-position: center !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-sidebar {
    width: 78px !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-court-brand__text,
  html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-nav span,
  html body.cabinet-page.cabinet-chat-page .cabinet-nav-chevron,
  html body.cabinet-page.cabinet-chat-page .cabinet-case-nav-list,
  html body.cabinet-page.cabinet-chat-page .cabinet-sidebar-dialogs,
  html body.cabinet-page.cabinet-chat-page .cabinet-user-meta {
    display: none !important;
  }

  html body.cabinet-page.cabinet-chat-page .cabinet-chat-composer,
  html body.cabinet-page.cabinet-chat-page .cabinet-chat-app:has(.cabinet-chat-sidebar.is-collapsed) .cabinet-chat-composer {
    width: min(86vw, calc(100vw - 104px)) !important;
    transform: translate(-50%, 6svh) !important;
  }
}

@media (max-width: 520px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links,
  html body.about-page .nav-links,
  html body.contact-page .nav-links {
    gap: 18px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .nav-links a,
  html body.about-page .nav-links a,
  html body.contact-page .nav-links a,
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .header-login-button,
  html body.about-page .header-login-button,
  html body.contact-page .header-login-button {
    font-size: 14px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    transform: translateY(44px) !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .legal-composer__textarea {
    padding-right: 124px !important;
    font-size: 14px !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .voice-button.intake-voice-button {
    display: inline-flex !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button {
    min-width: 48px !important;
    width: 48px !important;
    padding: 0 !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .composer-submit-button span:not(.button-icon) {
    display: none !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .site-footer {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 8px !important;
    width: auto !important;
  }

  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .footer-legal {
    font-size: 10.5px !important;
    max-width: 44vw !important;
  }

  html body.auth-page-shell .auth-page-toolbar {
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

/* Final desktop nudge requested for the main premium hero. */
@media (min-width: 821px) {
  html body.home-page:not(.is-intake-question-mode):not(.is-intake-result-mode) .home-intake-hero .legal-intake-shell {
    transform: translateY(-14px) !important;
  }
}

/* Final "О нас" readability layer. This file is loaded last. */
@media (min-width: 821px) {
  html body.about-page .about-company-copy {
    left: clamp(34px, 5.4vw, 76px) !important;
    right: auto !important;
    top: auto !important;
    bottom: clamp(226px, 26svh, 258px) !important;
    width: min(440px, 34vw) !important;
    max-width: 440px !important;
    max-height: 38svh !important;
    overflow: hidden !important;
    color: rgba(255, 242, 216, 0.97) !important;
    text-shadow:
      0 4px 18px rgba(0, 0, 0, 0.82),
      0 1px 2px rgba(0, 0, 0, 0.78) !important;
  }

  html body.about-page .about-company-copy h1 {
    max-width: 430px !important;
    font-size: clamp(2rem, 2.8vw, 2.78rem) !important;
    line-height: 1.03 !important;
    margin: 0 0 10px !important;
  }

  html body.about-page .about-company-text {
    gap: 5px !important;
  }

  html body.about-page .about-company-text p,
  html body.about-page .about-company-text p:first-child {
    max-width: 440px !important;
    font-size: clamp(0.79rem, 0.86vw, 0.88rem) !important;
    line-height: 1.23 !important;
  }

  html body.about-page .site-footer {
    position: fixed !important;
    left: clamp(30px, 4.4vw, 64px) !important;
    right: auto !important;
    bottom: 22px !important;
    width: auto !important;
    max-width: 34vw !important;
    z-index: 8 !important;
  }

  html body.about-page .floating-social-dock,
  html body.about-page .floating-social-dock.about-social-dock {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 30px !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    z-index: 12 !important;
  }
}
