/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-duration: initial;
      --tw-ease: initial;
      --tw-scale-x: 1;
      --tw-scale-y: 1;
      --tw-scale-z: 1;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-red-500: oklch(63.7% .237 25.331);
    --color-blue-500: oklch(62.3% .214 259.815);
    --color-gray-100: oklch(96.7% .003 264.542);
    --color-gray-200: oklch(92.8% .006 264.531);
    --color-gray-400: oklch(70.7% .022 261.325);
    --color-gray-500: oklch(55.1% .027 264.364);
    --color-gray-700: oklch(37.3% .034 259.733);
    --color-gray-800: oklch(27.8% .033 256.848);
    --color-gray-900: oklch(21% .034 264.665);
    --color-black: #000;
    --color-white: #fff;
    --spacing: .25rem;
    --breakpoint-xl: 80rem;
    --container-xs: 20rem;
    --container-sm: 24rem;
    --container-md: 28rem;
    --text-xs: .75rem;
    --text-xs--line-height: calc(1 / .75);
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --tracking-tight: -.025em;
    --tracking-wide: .025em;
    --tracking-wider: .05em;
    --tracking-widest: .1em;
    --leading-tight: 1.25;
    --leading-relaxed: 1.625;
    --radius-sm: .25rem;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --radius-xl: .75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --animate-spin: spin 1s linear infinite;
    --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .pointer-events-none {
    pointer-events: none;
  }

  .collapse {
    visibility: collapse;
  }

  .invisible {
    visibility: hidden;
  }

  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .inset-0 {
    inset: calc(var(--spacing) * 0);
  }

  .start {
    inset-inline-start: var(--spacing);
  }

  .end {
    inset-inline-end: var(--spacing);
  }

  .-top-1\.5 {
    top: calc(var(--spacing) * -1.5);
  }

  .-top-3 {
    top: calc(var(--spacing) * -3);
  }

  .top-0 {
    top: calc(var(--spacing) * 0);
  }

  .top-0\.5 {
    top: calc(var(--spacing) * .5);
  }

  .top-1\/2 {
    top: 50%;
  }

  .top-2 {
    top: calc(var(--spacing) * 2);
  }

  .top-4 {
    top: calc(var(--spacing) * 4);
  }

  .top-full {
    top: 100%;
  }

  .-right-1\.5 {
    right: calc(var(--spacing) * -1.5);
  }

  .-right-3 {
    right: calc(var(--spacing) * -3);
  }

  .right-0 {
    right: calc(var(--spacing) * 0);
  }

  .right-2 {
    right: calc(var(--spacing) * 2);
  }

  .right-2\.5 {
    right: calc(var(--spacing) * 2.5);
  }

  .right-3 {
    right: calc(var(--spacing) * 3);
  }

  .right-4 {
    right: calc(var(--spacing) * 4);
  }

  .bottom-0 {
    bottom: calc(var(--spacing) * 0);
  }

  .bottom-4 {
    bottom: calc(var(--spacing) * 4);
  }

  .left-0 {
    left: calc(var(--spacing) * 0);
  }

  .left-1\/2 {
    left: 50%;
  }

  .left-3 {
    left: calc(var(--spacing) * 3);
  }

  .left-4 {
    left: calc(var(--spacing) * 4);
  }

  .isolate {
    isolation: isolate;
  }

  .z-10 {
    z-index: 10;
  }

  .z-20 {
    z-index: 20;
  }

  .z-40 {
    z-index: 40;
  }

  .z-50 {
    z-index: 50;
  }

  .z-100 {
    z-index: 100;
  }

  .z-9999 {
    z-index: 9999;
  }

  .z-\[-1\] {
    z-index: -1;
  }

  .z-\[200\] {
    z-index: 200;
  }

  .z-\[2000\] {
    z-index: 2000;
  }

  .float-right {
    float: right;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .mx-4 {
    margin-inline: calc(var(--spacing) * 4);
  }

  .mx-5 {
    margin-inline: calc(var(--spacing) * 5);
  }

  .mx-auto {
    margin-inline: auto;
  }

  .my-2 {
    margin-block: calc(var(--spacing) * 2);
  }

  .mt-0\.5 {
    margin-top: calc(var(--spacing) * .5);
  }

  .mt-1 {
    margin-top: calc(var(--spacing) * 1);
  }

  .mt-1\.5 {
    margin-top: calc(var(--spacing) * 1.5);
  }

  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }

  .mt-3 {
    margin-top: calc(var(--spacing) * 3);
  }

  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }

  .mt-5 {
    margin-top: calc(var(--spacing) * 5);
  }

  .mr-1 {
    margin-right: calc(var(--spacing) * 1);
  }

  .mb-0\.5 {
    margin-bottom: calc(var(--spacing) * .5);
  }

  .mb-1 {
    margin-bottom: calc(var(--spacing) * 1);
  }

  .mb-1\.5 {
    margin-bottom: calc(var(--spacing) * 1.5);
  }

  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }

  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }

  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }

  .mb-5 {
    margin-bottom: calc(var(--spacing) * 5);
  }

  .mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
  }

  .mb-8 {
    margin-bottom: calc(var(--spacing) * 8);
  }

  .-ml-1 {
    margin-left: calc(var(--spacing) * -1);
  }

  .ml-1 {
    margin-left: calc(var(--spacing) * 1);
  }

  .ml-auto {
    margin-left: auto;
  }

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

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

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .inline-block {
    display: inline-block;
  }

  .inline-flex {
    display: inline-flex;
  }

  .table {
    display: table;
  }

  .aspect-square {
    aspect-ratio: 1;
  }

  .h-0\.5 {
    height: calc(var(--spacing) * .5);
  }

  .h-1\.5 {
    height: calc(var(--spacing) * 1.5);
  }

  .h-2 {
    height: calc(var(--spacing) * 2);
  }

  .h-4 {
    height: calc(var(--spacing) * 4);
  }

  .h-5 {
    height: calc(var(--spacing) * 5);
  }

  .h-6 {
    height: calc(var(--spacing) * 6);
  }

  .h-7 {
    height: calc(var(--spacing) * 7);
  }

  .h-8 {
    height: calc(var(--spacing) * 8);
  }

  .h-9 {
    height: calc(var(--spacing) * 9);
  }

  .h-10 {
    height: calc(var(--spacing) * 10);
  }

  .h-11 {
    height: calc(var(--spacing) * 11);
  }

  .h-12 {
    height: calc(var(--spacing) * 12);
  }

  .h-14 {
    height: calc(var(--spacing) * 14);
  }

  .h-16 {
    height: calc(var(--spacing) * 16);
  }

  .h-auto {
    height: auto;
  }

  .h-full {
    height: 100%;
  }

  .max-h-72 {
    max-height: calc(var(--spacing) * 72);
  }

  .min-h-0 {
    min-height: calc(var(--spacing) * 0);
  }

  .min-h-\[28px\] {
    min-height: 28px;
  }

  .min-h-\[44px\] {
    min-height: 44px;
  }

  .w-0\.5 {
    width: calc(var(--spacing) * .5);
  }

  .w-1\.5 {
    width: calc(var(--spacing) * 1.5);
  }

  .w-2 {
    width: calc(var(--spacing) * 2);
  }

  .w-4 {
    width: calc(var(--spacing) * 4);
  }

  .w-5 {
    width: calc(var(--spacing) * 5);
  }

  .w-6 {
    width: calc(var(--spacing) * 6);
  }

  .w-7 {
    width: calc(var(--spacing) * 7);
  }

  .w-8 {
    width: calc(var(--spacing) * 8);
  }

  .w-9 {
    width: calc(var(--spacing) * 9);
  }

  .w-10 {
    width: calc(var(--spacing) * 10);
  }

  .w-11 {
    width: calc(var(--spacing) * 11);
  }

  .w-12 {
    width: calc(var(--spacing) * 12);
  }

  .w-14 {
    width: calc(var(--spacing) * 14);
  }

  .w-16 {
    width: calc(var(--spacing) * 16);
  }

  .w-fit {
    width: fit-content;
  }

  .w-full {
    width: 100%;
  }

  .max-w-\[120px\] {
    max-width: 120px;
  }

  .max-w-md {
    max-width: var(--container-md);
  }

  .max-w-screen-xl {
    max-width: var(--breakpoint-xl);
  }

  .max-w-sm {
    max-width: var(--container-sm);
  }

  .max-w-xs {
    max-width: var(--container-xs);
  }

  .min-w-0 {
    min-width: calc(var(--spacing) * 0);
  }

  .flex-1 {
    flex: 1;
  }

  .shrink {
    flex-shrink: 1;
  }

  .shrink-0 {
    flex-shrink: 0;
  }

  .flex-grow, .grow {
    flex-grow: 1;
  }

  .-translate-x-1\/2 {
    --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }

  .-translate-y-1\/2 {
    --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .animate-pulse {
    animation: var(--animate-pulse);
  }

  .animate-spin {
    animation: var(--animate-spin);
  }

  .cursor-pointer {
    cursor: pointer;
  }

  .cursor-zoom-in {
    cursor: zoom-in;
  }

  .resize {
    resize: both;
  }

  .resize-none {
    resize: none;
  }

  .resize-y {
    resize: vertical;
  }

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

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

  .flex-col {
    flex-direction: column;
  }

  .flex-col-reverse {
    flex-direction: column-reverse;
  }

  .flex-row {
    flex-direction: row;
  }

  .flex-row-reverse {
    flex-direction: row-reverse;
  }

  .flex-nowrap {
    flex-wrap: nowrap;
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

  .items-baseline {
    align-items: baseline;
  }

  .items-center {
    align-items: center;
  }

  .items-end {
    align-items: flex-end;
  }

  .items-start {
    align-items: flex-start;
  }

  .items-stretch {
    align-items: stretch;
  }

  .justify-between {
    justify-content: space-between;
  }

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

  .justify-end {
    justify-content: flex-end;
  }

  .gap-0\.5 {
    gap: calc(var(--spacing) * .5);
  }

  .gap-1 {
    gap: calc(var(--spacing) * 1);
  }

  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }

  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }

  .gap-2\.5 {
    gap: calc(var(--spacing) * 2.5);
  }

  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }

  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }

  .gap-5 {
    gap: calc(var(--spacing) * 5);
  }

  .gap-\[2\.5px\] {
    gap: 2.5px;
  }

  .self-end {
    align-self: flex-end;
  }

  .self-start {
    align-self: flex-start;
  }

  .truncate {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .overflow-auto {
    overflow: auto;
  }

  .overflow-hidden {
    overflow: hidden;
  }

  .overflow-x-auto {
    overflow-x: auto;
  }

  .overflow-y-auto {
    overflow-y: auto;
  }

  .rounded {
    border-radius: .25rem;
  }

  .rounded-2xl {
    border-radius: var(--radius-2xl);
  }

  .rounded-3xl {
    border-radius: var(--radius-3xl);
  }

  .rounded-full {
    border-radius: 3.40282e38px;
  }

  .rounded-lg {
    border-radius: var(--radius-lg);
  }

  .rounded-md {
    border-radius: var(--radius-md);
  }

  .rounded-xl {
    border-radius: var(--radius-xl);
  }

  .rounded-t-2xl {
    border-top-left-radius: var(--radius-2xl);
    border-top-right-radius: var(--radius-2xl);
  }

  .rounded-tl-sm {
    border-top-left-radius: var(--radius-sm);
  }

  .rounded-r {
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
  }

  .rounded-tr-sm {
    border-top-right-radius: var(--radius-sm);
  }

  .rounded-br-md {
    border-bottom-right-radius: var(--radius-md);
  }

  .rounded-bl-md {
    border-bottom-left-radius: var(--radius-md);
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }

  .border-gray-200 {
    border-color: var(--color-gray-200);
  }

  .border-transparent {
    border-color: #0000;
  }

  .bg-black\/0 {
    background-color: #0000;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-black\/0 {
      background-color: color-mix(in oklab, var(--color-black) 0%, transparent);
    }
  }

  .bg-blue-500 {
    background-color: var(--color-blue-500);
  }

  .bg-gray-100 {
    background-color: var(--color-gray-100);
  }

  .bg-red-500\/20 {
    background-color: #fb2c3633;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-red-500\/20 {
      background-color: color-mix(in oklab, var(--color-red-500) 20%, transparent);
    }
  }

  .bg-transparent {
    background-color: #0000;
  }

  .bg-white {
    background-color: var(--color-white);
  }

  .object-cover {
    object-fit: cover;
  }

  .p-0 {
    padding: calc(var(--spacing) * 0);
  }

  .p-0\.5 {
    padding: calc(var(--spacing) * .5);
  }

  .p-2 {
    padding: calc(var(--spacing) * 2);
  }

  .p-3 {
    padding: calc(var(--spacing) * 3);
  }

  .p-3\.5 {
    padding: calc(var(--spacing) * 3.5);
  }

  .p-4 {
    padding: calc(var(--spacing) * 4);
  }

  .p-5 {
    padding: calc(var(--spacing) * 5);
  }

  .p-6 {
    padding: calc(var(--spacing) * 6);
  }

  .p-7 {
    padding: calc(var(--spacing) * 7);
  }

  .p-8 {
    padding: calc(var(--spacing) * 8);
  }

  .px-1 {
    padding-inline: calc(var(--spacing) * 1);
  }

  .px-1\.5 {
    padding-inline: calc(var(--spacing) * 1.5);
  }

  .px-2 {
    padding-inline: calc(var(--spacing) * 2);
  }

  .px-2\.5 {
    padding-inline: calc(var(--spacing) * 2.5);
  }

  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }

  .px-3\.5 {
    padding-inline: calc(var(--spacing) * 3.5);
  }

  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }

  .px-5 {
    padding-inline: calc(var(--spacing) * 5);
  }

  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }

  .py-0\.5 {
    padding-block: calc(var(--spacing) * .5);
  }

  .py-1 {
    padding-block: calc(var(--spacing) * 1);
  }

  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }

  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }

  .py-2\.5 {
    padding-block: calc(var(--spacing) * 2.5);
  }

  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }

  .py-4 {
    padding-block: calc(var(--spacing) * 4);
  }

  .py-5 {
    padding-block: calc(var(--spacing) * 5);
  }

  .py-6 {
    padding-block: calc(var(--spacing) * 6);
  }

  .py-8 {
    padding-block: calc(var(--spacing) * 8);
  }

  .py-10 {
    padding-block: calc(var(--spacing) * 10);
  }

  .py-12 {
    padding-block: calc(var(--spacing) * 12);
  }

  .py-14 {
    padding-block: calc(var(--spacing) * 14);
  }

  .py-20 {
    padding-block: calc(var(--spacing) * 20);
  }

  .pt-1 {
    padding-top: calc(var(--spacing) * 1);
  }

  .pt-1\.5 {
    padding-top: calc(var(--spacing) * 1.5);
  }

  .pt-2 {
    padding-top: calc(var(--spacing) * 2);
  }

  .pt-3 {
    padding-top: calc(var(--spacing) * 3);
  }

  .pt-4 {
    padding-top: calc(var(--spacing) * 4);
  }

  .pt-5 {
    padding-top: calc(var(--spacing) * 5);
  }

  .pt-8 {
    padding-top: calc(var(--spacing) * 8);
  }

  .pr-2 {
    padding-right: calc(var(--spacing) * 2);
  }

  .pr-9 {
    padding-right: calc(var(--spacing) * 9);
  }

  .pb-1 {
    padding-bottom: calc(var(--spacing) * 1);
  }

  .pb-2 {
    padding-bottom: calc(var(--spacing) * 2);
  }

  .pb-3 {
    padding-bottom: calc(var(--spacing) * 3);
  }

  .pb-4 {
    padding-bottom: calc(var(--spacing) * 4);
  }

  .pl-2 {
    padding-left: calc(var(--spacing) * 2);
  }

  .pl-7 {
    padding-left: calc(var(--spacing) * 7);
  }

  .pl-9 {
    padding-left: calc(var(--spacing) * 9);
  }

  .text-center {
    text-align: center;
  }

  .text-left {
    text-align: left;
  }

  .text-right {
    text-align: right;
  }

  .text-base {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
  }

  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }

  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }

  .text-\[10px\] {
    font-size: 10px;
  }

  .text-\[11px\] {
    font-size: 11px;
  }

  .leading-none {
    --tw-leading: 1;
    line-height: 1;
  }

  .leading-relaxed {
    --tw-leading: var(--leading-relaxed);
    line-height: var(--leading-relaxed);
  }

  .leading-tight {
    --tw-leading: var(--leading-tight);
    line-height: var(--leading-tight);
  }

  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }

  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }

  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }

  .tracking-tight {
    --tw-tracking: var(--tracking-tight);
    letter-spacing: var(--tracking-tight);
  }

  .tracking-wide {
    --tw-tracking: var(--tracking-wide);
    letter-spacing: var(--tracking-wide);
  }

  .tracking-wider {
    --tw-tracking: var(--tracking-wider);
    letter-spacing: var(--tracking-wider);
  }

  .tracking-widest {
    --tw-tracking: var(--tracking-widest);
    letter-spacing: var(--tracking-widest);
  }

  .break-words {
    overflow-wrap: break-word;
  }

  .break-all {
    word-break: break-all;
  }

  .text-\[var\(--text-1\)\] {
    color: var(--text-1);
  }

  .text-\[var\(--text-2\)\] {
    color: var(--text-2);
  }

  .text-blue-500 {
    color: var(--color-blue-500);
  }

  .text-gray-400 {
    color: var(--color-gray-400);
  }

  .text-gray-500 {
    color: var(--color-gray-500);
  }

  .text-gray-900 {
    color: var(--color-gray-900);
  }

  .text-red-500 {
    color: var(--color-red-500);
  }

  .text-white {
    color: var(--color-white);
  }

  .capitalize {
    text-transform: capitalize;
  }

  .lowercase {
    text-transform: lowercase;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .italic {
    font-style: italic;
  }

  .tabular-nums {
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
  }

  .underline {
    text-decoration-line: underline;
  }

  .placeholder-gray-400::placeholder {
    color: var(--color-gray-400);
  }

  .opacity-0 {
    opacity: 0;
  }

  .opacity-25 {
    opacity: .25;
  }

  .opacity-30 {
    opacity: .3;
  }

  .opacity-60 {
    opacity: .6;
  }

  .opacity-75 {
    opacity: .75;
  }

  .opacity-\[0\.04\] {
    opacity: .04;
  }

  .mix-blend-overlay {
    mix-blend-mode: overlay;
  }

  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .shadow-lg {
    --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, #0000001a), 0 4px 6px -4px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .ring {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .drop-shadow {
    --tw-drop-shadow-size: drop-shadow(0 1px 2px var(--tw-drop-shadow-color, #0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color, #0000000f));
    --tw-drop-shadow: drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .backdrop-filter {
    -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
    backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .transition-opacity {
    transition-property: opacity;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .transition-transform {
    transition-property: transform, translate, scale, rotate;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .duration-100 {
    --tw-duration: .1s;
    transition-duration: .1s;
  }

  .duration-150 {
    --tw-duration: .15s;
    transition-duration: .15s;
  }

  .duration-200 {
    --tw-duration: .2s;
    transition-duration: .2s;
  }

  .duration-300 {
    --tw-duration: .3s;
    transition-duration: .3s;
  }

  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }

  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }

  .outline-none {
    --tw-outline-style: none;
    outline-style: none;
  }

  .select-none {
    -webkit-user-select: none;
    user-select: none;
  }

  @media (hover: hover) {
    .group-hover\:bg-black\/30:is(:where(.group):hover *) {
      background-color: #0000004d;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .group-hover\:bg-black\/30:is(:where(.group):hover *) {
        background-color: color-mix(in oklab, var(--color-black) 30%, transparent);
      }
    }

    .group-hover\:opacity-100:is(:where(.group):hover *), .group-hover\/img\:opacity-100:is(:where(.group\/img):hover *) {
      opacity: 1;
    }

    .hover\:bg-gray-100:hover {
      background-color: var(--color-gray-100);
    }

    .hover\:text-\[var\(--text-1\)\]:hover {
      color: var(--text-1);
    }

    .hover\:underline:hover {
      text-decoration-line: underline;
    }

    .hover\:opacity-70:hover {
      opacity: .7;
    }

    .hover\:opacity-80:hover {
      opacity: .8;
    }

    .hover\:opacity-85:hover {
      opacity: .85;
    }

    .hover\:opacity-90:hover {
      opacity: .9;
    }
  }

  .focus\:border-blue-500:focus {
    border-color: var(--color-blue-500);
  }

  .active\:scale-90:active {
    --tw-scale-x: 90%;
    --tw-scale-y: 90%;
    --tw-scale-z: 90%;
    scale: var(--tw-scale-x) var(--tw-scale-y);
  }

  .active\:scale-95:active {
    --tw-scale-x: 95%;
    --tw-scale-y: 95%;
    --tw-scale-z: 95%;
    scale: var(--tw-scale-x) var(--tw-scale-y);
  }

  .active\:cursor-grabbing:active {
    cursor: grabbing;
  }

  .active\:opacity-70:active {
    opacity: .7;
  }

  .disabled\:cursor-default:disabled {
    cursor: default;
  }

  .disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
  }

  .disabled\:opacity-30:disabled {
    opacity: .3;
  }

  .disabled\:opacity-40:disabled {
    opacity: .4;
  }

  .disabled\:opacity-50:disabled {
    opacity: .5;
  }

  @media (min-width: 40rem) {
    .sm\:block {
      display: block;
    }

    .sm\:flex {
      display: flex;
    }

    .sm\:hidden {
      display: none;
    }

    .sm\:max-w-md {
      max-width: var(--container-md);
    }

    .sm\:items-center {
      align-items: center;
    }

    .sm\:gap-6 {
      gap: calc(var(--spacing) * 6);
    }

    .sm\:rounded-2xl {
      border-radius: var(--radius-2xl);
    }

    .sm\:p-4 {
      padding: calc(var(--spacing) * 4);
    }

    .sm\:px-5 {
      padding-inline: calc(var(--spacing) * 5);
    }
  }

  @media (min-width: 48rem) {
    .md\:block {
      display: block;
    }
  }

  @media (prefers-color-scheme: dark) {
    .dark\:border-gray-700 {
      border-color: var(--color-gray-700);
    }

    .dark\:bg-gray-800 {
      background-color: var(--color-gray-800);
    }

    .dark\:bg-gray-900 {
      background-color: var(--color-gray-900);
    }

    .dark\:text-gray-100 {
      color: var(--color-gray-100);
    }

    .dark\:text-gray-400 {
      color: var(--color-gray-400);
    }

    .dark\:placeholder-gray-500::placeholder {
      color: var(--color-gray-500);
    }

    @media (hover: hover) {
      .dark\:hover\:bg-gray-800:hover {
        background-color: var(--color-gray-800);
      }
    }
  }
}

:root {
  --bg: #080c16;
  --surface-1: #0e1219;
  --surface-2: #141a26;
  --surface-3: #1b2235;
  --surface-4: #232c42;
  --border: #ffffff0f;
  --border-md: #ffffff1a;
  --border-hi: #ffffff2e;
  --text-1: #eef0ff;
  --text-2: #7b82a8;
  --text-3: #3d4464;
  --accent: #5b7cf6;
  --accent-hi: #7b96f8;
  --accent-lo: #5b7cf624;
  --accent-glow: #5b7cf647;
  --sent-bg: #2b4edb;
  --recv-bg: #1b2235;
  --online: #22c55e;
  --danger: #f87171;
  --warning: #fbbf24;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --font-display: "Syne", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg-2: #0b1020;
  --shadow-sm: 0 1px 3px #0006;
  --shadow: 0 4px 16px #00000080;
  --shadow-lg: 0 8px 32px #0009;
  --shadow-accent: 0 0 24px var(--accent-glow);
  --fs-msg: 14px;
  --lh-msg: 1.4;
  --fs-list-name: 15px;
  --fs-list-preview: 13px;
  --fs-list-time: 12px;
  --fs-header-name: 16px;
  --fs-header-status: 13px;
  --fs-bubble-time: 11px;
  --fs-service: 12px;
  --fs-section: 12px;
  --fs-caption: 14px;
  --fs-input: 15px;
  --avatar-list: 48px;
  --avatar-header: 36px;
  --bubble-radius: 16px;
}

@media (max-width: 767px) {
  :root {
    --fs-msg: 16px;
    --lh-msg: 1.35;
    --fs-list-name: 17px;
    --fs-list-preview: 14px;
    --fs-list-time: 13px;
    --fs-header-name: 17px;
    --fs-header-status: 13px;
    --fs-bubble-time: 12px;
    --fs-service: 13px;
    --fs-section: 12px;
    --fs-caption: 15px;
    --fs-input: 16px;
    --avatar-list: 52px;
    --avatar-header: 36px;
  }
}

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

html {
  background: var(--bg);
  height: 100%;
}

body {
  touch-action: pan-y;
  background: var(--bg);
  height: 100dvh;
  max-height: 100dvh;
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: var(--fs-msg);
  line-height: var(--lh-msg);
  font-feature-settings: "kern", "liga", "calt";
  font-variant-numeric: tabular-nums;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#root {
  background: var(--bg);
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  overflow: hidden;
}

.h-viewport {
  height: 100dvh;
}

.min-h-viewport {
  min-height: 100dvh;
}

.max-h-viewport {
  max-height: 100dvh;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: none;
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-4);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-3);
}

::selection {
  background: var(--accent-lo);
  color: var(--text-1);
}

.font-display {
  font-family: var(--font-display);
}

.font-ui {
  font-family: var(--font-ui);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-enter {
  animation: .22s cubic-bezier(.22, 1, .36, 1) both fadeUp;
}

@keyframes drift {
  0%, 100% {
    transform: translate(0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 15px) scale(.97);
  }
}

.orb {
  filter: blur(80px);
  opacity: .18;
  pointer-events: none;
  border-radius: 50%;
  position: absolute;
}

.orb-1 {
  animation: 14s ease-in-out infinite drift;
}

.orb-2 {
  animation: 18s ease-in-out infinite reverse drift;
}

.orb-3 {
  animation: 22s ease-in-out 4s infinite drift;
}

@media (max-width: 767px) {
  .orb {
    filter: blur(50px);
    animation: none !important;
  }

  .liquid-glass {
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  }

  .noise:after {
    mix-blend-mode: normal;
    opacity: .18;
  }
}

.noise:after {
  content: "";
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
  position: absolute;
  inset: 0;
}

.glass {
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border-md);
  background: #0e1219bf;
}

.avatar-a {
  background: linear-gradient(135deg, #5b7cf6, #818cf8);
}

.avatar-b {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.avatar-c {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.avatar-d {
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
}

.avatar-e {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}

.avatar-f {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.bubble-sent {
  background: linear-gradient(145deg, #2b4edb, #3b62f0);
  box-shadow: 0 2px 12px #2b4edb59;
}

.bubble-recv {
  background: var(--recv-bg);
  border: 1px solid var(--border);
}

.bubble-text {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: none;
}

@media (hover: none) and (pointer: coarse) {
  .bubble-text {
    -webkit-user-select: none;
    user-select: none;
  }
}

.msg-row {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none) and (pointer: coarse) {
  .msg-row {
    -webkit-user-select: none;
    user-select: none;
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes voice-shimmer {
  0% {
    background-position: 200%;
  }

  100% {
    background-position: -200%;
  }
}

.voice-cancel-shimmer {
  background: linear-gradient(90deg, var(--text-3) 0%, var(--text-2) 45%, var(--text-3) 100%);
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: 2.2s ease-in-out infinite voice-shimmer;
}

.skeleton {
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

.skeleton:after {
  content: "";
  will-change: transform;
  pointer-events: none;
  background: linear-gradient(90deg, #0000 0%, #ffffff09 40%, #7b96f814 55%, #ffffff09 70%, #0000 100%);
  animation: 1.6s cubic-bezier(.4, 0, .2, 1) infinite skeleton-sweep;
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
}

@keyframes skeleton-sweep {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton:after {
    animation: none;
  }
}

@keyframes msgHighlight {
  0% {
    background-color: #0000;
  }

  15% {
    background-color: #eab30838;
  }

  70% {
    background-color: #eab3081f;
  }

  100% {
    background-color: #0000;
  }
}

.msg-highlight {
  border-radius: 12px;
  animation: 2s ease-out forwards msgHighlight;
}

@keyframes fabItemIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.88);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  input, textarea, select {
    font-size: 16px !important;
  }

  .chat-layout-track {
    background: var(--bg) !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .chat-layout-sidebar {
    z-index: 1;
    will-change: transform, opacity;
    overscroll-behavior: contain;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .3s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    flex-direction: column !important;
    width: 100% !important;
    display: flex !important;
    position: absolute !important;
    inset: 0 !important;
  }

  .chat-layout-track.is-chat-open .chat-layout-sidebar {
    opacity: 0 !important;
    pointer-events: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    transform: translateX(-22%) !important;
  }

  .chat-layout-pane {
    z-index: 2;
    will-change: transform;
    background: var(--bg);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    flex-direction: column !important;
    width: 100% !important;
    display: flex !important;
    position: absolute !important;
    inset: 0 !important;
    overflow: hidden !important;
    transform: translateX(100%) !important;
  }

  .chat-layout-track.is-chat-open .chat-layout-pane {
    transform: translateX(0) !important;
  }

  .chat-layout-track.no-slide .chat-layout-sidebar, .chat-layout-track.no-slide .chat-layout-pane {
    transition: none !important;
  }
}

.chat-layout-resizer {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .msg-hover-actions, .post-hover-actions {
    display: none !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .list-row-hover:not(.list-row-active):hover {
    background: var(--surface-2) !important;
  }
}

.input-base {
  background: var(--surface-2);
  width: 100%;
  color: var(--text-1);
  font-family: var(--font-ui);
  border: 1px solid #ffffff24;
  border-radius: 12px;
  outline: none;
  padding: 12px 14px;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.input-base::placeholder {
  color: var(--text-3);
}

@media (hover: hover) and (pointer: fine) {
  .input-base:not(:focus):hover {
    border-color: #ffffff38;
  }
}

.input-base:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-lo);
}

@media (max-width: 767px) {
  .pane-nav {
    z-index: 1;
    transition: transform .42s cubic-bezier(.32, .72, 0, 1), opacity .42s cubic-bezier(.32, .72, 0, 1);
    position: absolute;
    inset: 0;
    overflow-y: auto;
  }

  .pane-nav.is-receded {
    opacity: .5;
    transform: translateX(-30%);
  }

  .pane-content {
    z-index: 2;
    background: var(--bg);
    transition: transform .42s cubic-bezier(.32, .72, 0, 1);
    position: absolute;
    inset: 0;
    overflow-y: auto;
    transform: translateX(100%);
  }

  .pane-content.is-foreground {
    transform: translateX(0);
  }
}

@media (min-width: 768px) {
  .chat-layout-track {
    display: flex !important;
  }

  .chat-layout-sidebar {
    width: var(--sidebar-w, 288px) !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    display: flex !important;
  }

  .chat-layout-resizer {
    cursor: col-resize;
    z-index: 5;
    -webkit-user-select: none;
    user-select: none;
    background: none;
    width: 6px;
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: -3px;
  }

  .chat-layout-resizer:after {
    content: "";
    background: none;
    width: 1px;
    transition: background .12s, width .12s;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .chat-layout-resizer:hover:after, .chat-layout-resizer.is-active:after {
    background: var(--accent, #3390ec);
    width: 2px;
  }

  .chat-layout-pane {
    background: var(--bg) !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    overflow: hidden !important;
  }
}

@property --tw-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-translate-z {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-leading {
  syntax: "*";
  inherits: false
}

@property --tw-font-weight {
  syntax: "*";
  inherits: false
}

@property --tw-tracking {
  syntax: "*";
  inherits: false
}

@property --tw-ordinal {
  syntax: "*";
  inherits: false
}

@property --tw-slashed-zero {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-figure {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-duration {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}

@property --tw-scale-x {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-scale-y {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-scale-z {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

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

@keyframes pulse {
  50% {
    opacity: .5;
  }
}
pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em
}
code.hljs {
  padding: 3px 5px
}
/*!
  Theme: GitHub Dark
  Description: Dark theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-dark
  Current colors taken from GitHub's CSS
*/
.hljs {
  color: #c9d1d9;
  background: #0d1117
}
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  /* prettylights-syntax-keyword */
  color: #ff7b72
}
.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  /* prettylights-syntax-entity */
  color: #d2a8ff
}
.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
  /* prettylights-syntax-constant */
  color: #79c0ff
}
.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
  /* prettylights-syntax-string */
  color: #a5d6ff
}
.hljs-built_in,
.hljs-symbol {
  /* prettylights-syntax-variable */
  color: #ffa657
}
.hljs-comment,
.hljs-code,
.hljs-formula {
  /* prettylights-syntax-comment */
  color: #8b949e
}
.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
  /* prettylights-syntax-entity-tag */
  color: #7ee787
}
.hljs-subst {
  /* prettylights-syntax-storage-modifier-import */
  color: #c9d1d9
}
.hljs-section {
  /* prettylights-syntax-markup-heading */
  color: #1f6feb;
  font-weight: bold
}
.hljs-bullet {
  /* prettylights-syntax-markup-list */
  color: #f2cc60
}
.hljs-emphasis {
  /* prettylights-syntax-markup-italic */
  color: #c9d1d9;
  font-style: italic
}
.hljs-strong {
  /* prettylights-syntax-markup-bold */
  color: #c9d1d9;
  font-weight: bold
}
.hljs-addition {
  /* prettylights-syntax-markup-inserted */
  color: #aff5b4;
  background-color: #033a16
}
.hljs-deletion {
  /* prettylights-syntax-markup-deleted */
  color: #ffdcd7;
  background-color: #67060c
}
.hljs-char.escape_,
.hljs-link,
.hljs-params,
.hljs-property,
.hljs-punctuation,
.hljs-tag {
  /* purposely ignored */
  
}/* ───────────────────────────────────────────────────────────────────────
   About page — scoped styles.
   Every rule is nested under `.about-page` so the heavy use of generic
   class names (.nav, .hero, .bento, .cell, .footer …) cannot leak into
   the rest of the app. Tokens come from index.css — `--bg`, `--surface-*`,
   `--border-*`, `--text-*`, `--accent*`, `--online`, `--font-*`.
   ─────────────────────────────────────────────────────────────────────── */

.about-page {
  color: var(--text-1); font-family: var(--font-ui); -webkit-font-smoothing: antialiased;
  /* Hard-clip any horizontal overflow on the page itself. Some inner
     content (e.g. the giant `142` stat with its Russian unit beside it)
     can briefly intrinsic-size wider than its grid column on narrow
     viewports — without this, the entire page scrolls sideways and
     `justify-content: space-between` rows like the realtime endpoints
     get their right item pushed off-screen. */
  overflow-x: hidden;
}
.about-page a { color: inherit; text-decoration: none; }
.about-page ::selection { background: var(--accent); color: #fff; }

/* ── Ambient backdrop ──────────────────────────────────────────────── */
.about-page .page-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 18% 22%, rgba(91, 124, 246, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 14%, rgba(123, 150, 248, 0.10) 0%, transparent 60%),
    var(--bg);
}
.about-page .page-content {
  position: relative; z-index: 1;
  /* Compensate for the fixed nav (out of flow) — keeps the hero from
     starting underneath the glass bar. Mirrors the nav's vertical
     padding (16+16) plus content height (~24px) plus 1px border, with
     a small safety margin for line-height/font-fallback variance.
     Per-breakpoint overrides below mirror the nav padding overrides. */
  padding-top: 64px;
}

/* ── Nav ───────────────────────────────────────────────────────────── */
/* The global <Header /> is suppressed on /about (see Header.jsx), so this
   marketing nav owns the top of the page on its own.

   `position: fixed` (not `sticky`) is deliberate: `.about-page` is a
   non-root scroll container (`overflow-y-auto`), and desktop Chromium
   silently no-ops `backdrop-filter` on `position: sticky` children of
   non-root scroll containers — content scrolls under the bar with
   sharp edges. Mobile WebKit/Blink composites the sticky case fine,
   which is why the blur worked on phone but not PC. `position: fixed`
   anchors the nav to the viewport, taking it out of the broken sticky
   subtree entirely; the backdrop sample then comes from the standard
   "fixed element over scrolling content" path that all engines handle
   correctly. `.page-bg` is also fixed and unaffected, since no
   ancestor of either has a containing-block-creating transform. */
.about-page .nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(8, 12, 22, 0.70);
  border-bottom: 1px solid var(--border-md);
}
.about-page .brand {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.02em; font-size: 19px;
}
.about-page .nav-right { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.about-page .nav-right a {
  padding: 8px 14px; border-radius: 9px; color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.about-page .nav-right a:hover { color: var(--text-1); background: var(--surface-2); }
.about-page .nav-right .lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--border-md); border-radius: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-2);
  margin-right: 4px;
}
.about-page .nav-right .lang .pip { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.about-page .nav-right .cta {
  color: #fff; background: var(--accent); font-weight: 600;
  box-shadow: 0 0 24px var(--accent-glow);
}
.about-page .nav-right .cta:hover { background: var(--accent-hi); color: #fff; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.about-page .hero {
  max-width: 1280px; margin: 0 auto;
  padding: 80px 32px 100px;
  display: grid; gap: 56px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
@media (max-width: 980px) {
  .about-page .hero { grid-template-columns: 1fr; padding: 56px 24px 80px; gap: 48px; }
}
.about-page .hero-copy { max-width: 600px; }
.about-page .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--border-md); background: rgba(91, 124, 246, 0.08);
  font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--accent-hi); margin-bottom: 28px;
}
.about-page .hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}
.about-page .hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04;
  letter-spacing: -0.025em; color: var(--text-1);
}
.about-page .hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-hi) 60%, #c5d2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-page .hero .vs-list {
  margin: 0 0 32px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-2);
}
.about-page .hero .vs-list li { display: flex; align-items: center; gap: 10px; }
.about-page .hero .vs-list .gt { color: var(--accent); font-weight: 600; }
.about-page .hero .vs-list b { color: var(--text-1); font-weight: 600; }

.about-page .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 11px; font-weight: 600; font-size: 14px;
  font-family: var(--font-ui); transition: all 0.15s ease; cursor: pointer; border: none;
}
.about-page .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 28px var(--accent-glow); }
.about-page .btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); color: #fff; }
.about-page .btn-ghost { color: var(--text-1); border: 1px solid var(--border-md); background: transparent; }
.about-page .btn-ghost:hover { border-color: var(--border-hi); background: var(--surface-2); color: var(--text-1); }
.about-page .hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.about-page .hero-actions .meta {
  margin-left: 4px; font-size: 12px; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.about-page .hero-actions .meta b { color: var(--text-2); font-weight: 600; }

/* ── Live chat demo ────────────────────────────────────────────────── */
.about-page .chat-demo {
  position: relative;
  min-height: 580px;
  max-width: 480px;
  margin-left: auto;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.9), rgba(11, 15, 30, 0.95));
  border: 1px solid var(--border-md);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 80px -20px var(--accent-glow);
  overflow: hidden;
  padding: 22px 22px 18px;
  display: flex; flex-direction: column;
}
@media (max-width: 980px) { .about-page .chat-demo { margin: 0 auto; max-width: 420px; } }

.about-page .chat-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.about-page .chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  flex-shrink: 0;
}
.about-page .chat-head .who { display: flex; flex-direction: column; min-width: 0; }
.about-page .chat-head .name { font-weight: 600; font-size: 14px; color: var(--text-1); letter-spacing: -0.01em; }
.about-page .chat-head .status { font-size: 11px; color: var(--online); display: inline-flex; align-items: center; gap: 5px; }
.about-page .chat-head .status .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--online); box-shadow: 0 0 6px rgba(34, 197, 94, 0.8); }

.about-page .chat-body {
  flex: 1; display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 8px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 8px), transparent 100%);
}
.about-page .bubble {
  max-width: 78%; padding: 9px 13px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.45; letter-spacing: -0.005em;
  word-break: break-word;
  opacity: 0;
  animation: about-bubbleIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.about-page .bubble.them { background: var(--surface-3); color: var(--text-1); align-self: flex-start; border-bottom-left-radius: 6px; }
.about-page .bubble.me { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; box-shadow: 0 4px 14px rgba(91, 124, 246, 0.35); }
.about-page .bubble .time {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; opacity: 0.7; margin-left: 8px; vertical-align: 1px;
}
.about-page .bubble.me .time .ticks { color: rgba(255, 255, 255, 0.95); }
@keyframes about-bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.about-page .typing-row { display: inline-flex; align-self: flex-start; opacity: 0; animation: about-bubbleIn 0.4s 2.9s forwards; }
.about-page .typing {
  background: var(--surface-3); border-radius: 14px; border-bottom-left-radius: 6px;
  padding: 11px 14px; display: inline-flex; gap: 4px;
}
.about-page .typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-2);
  animation: about-typeBounce 1.2s infinite ease-in-out;
}
.about-page .typing span:nth-child(2) { animation-delay: 0.15s; }
.about-page .typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes about-typeBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-3px); opacity: 1; }
}

.about-page .chat-input {
  margin-top: 14px; display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border-md);
  color: var(--text-3); font-size: 13px;
}
.about-page .chat-input .send {
  margin-left: auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
}

/* Latency badge floating over chat */
.about-page .latency-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 6px 10px; border-radius: 100px;
  background: var(--bg-2); border: 1px solid var(--border-hi);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  color: var(--online); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.about-page .latency-badge .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--online);
  animation: about-pulse 1.6s infinite;
}
@keyframes about-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ── Section header ────────────────────────────────────────────────── */
.about-page .section { max-width: 1280px; margin: 0 auto; padding: 80px 32px; }
@media (max-width: 720px) { .about-page .section { padding: 64px 24px; } }
.about-page .section-head { margin-bottom: 56px; max-width: 720px; }
.about-page .section-eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.05em; margin: 0 0 14px;
}
.about-page .section-eyebrow::before { content: "// "; opacity: 0.6; }
.about-page .section-title {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.025em;
  line-height: 1.08; color: var(--text-1);
}
.about-page .section-sub { margin: 16px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.55; max-width: 560px; }

/* ── Product showcase (browser frame) ──────────────────────────────── */
.about-page .showcase {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border-md);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    0 0 100px -30px var(--accent-glow);
  background: var(--surface-1);
}
.about-page .browser-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.about-page .browser-dots { display: flex; gap: 7px; }
.about-page .browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.about-page .browser-dots span:nth-child(1) { background: #f87171; }
.about-page .browser-dots span:nth-child(2) { background: #fbbf24; }
.about-page .browser-dots span:nth-child(3) { background: #22c55e; }
.about-page .browser-url {
  flex: 1;
  /* min-width:0 lets the URL bar shrink below its intrinsic content
     width on narrow viewports — without this the unbreakable token
     "axon.app/chat/team-standup" would force the browser-bar wider
     than its parent, getting clipped by .showcase's overflow:hidden. */
  min-width: 0;
  padding: 6px 12px; border-radius: 7px;
  background: var(--bg); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.about-page .browser-url svg { width: 12px; height: 12px; color: var(--online); flex-shrink: 0; }
.about-page .browser-url .url-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}

.about-page .browser-spacer { width: 60px; flex-shrink: 0; }

.about-page .app {
  display: grid; grid-template-columns: 280px 1fr;
  height: 540px;
}
@media (max-width: 720px) {
  .about-page .app { grid-template-columns: 1fr; height: 480px; }
  .about-page .app .sidebar { display: none; }
}
.about-page .sidebar {
  border-right: 1px solid var(--border);
  background: var(--surface-1);
  display: flex; flex-direction: column;
  min-width: 0;
}
.about-page .sidebar-search { padding: 14px; }
.about-page .sidebar-search > div {
  padding: 8px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
  display: flex; align-items: center; gap: 8px;
}
.about-page .sidebar-search svg { width: 14px; height: 14px; }
.about-page .chat-list { flex: 1; overflow: hidden; padding: 4px; display: flex; flex-direction: column; gap: 2px; }
.about-page .chat-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  min-width: 0;
}
.about-page .chat-row.active { background: var(--accent-lo); }
.about-page .chat-row:hover:not(.active) { background: var(--surface-2); }
.about-page .chat-row .av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff;
}
.about-page .chat-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.about-page .chat-row .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.about-page .chat-row .name { font-size: 14px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about-page .chat-row .time { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.about-page .chat-row .preview { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about-page .chat-row .badge {
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600;
  padding: 1px 7px; border-radius: 100px; line-height: 1.5;
}

.about-page .thread {
  display: flex; flex-direction: column;
  min-width: 0;
  /* The grid cell sets a fixed height (540/480/440/380 by breakpoint).
     min-height:0 lets thread-body's `flex:1` actually shrink past its
     intrinsic content height instead of pushing thread-input out the
     bottom — without this the input row was being clipped on mobile
     because the bubble stack expanded the thread past .app. */
  min-height: 0;
  background: var(--bg);
}
.about-page .thread-head {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  background: rgba(14, 18, 25, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.about-page .thread-head .av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.about-page .thread-head .info { display: flex; flex-direction: column; gap: 2px; }
.about-page .thread-head .name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.about-page .thread-head .sub { font-size: 11.5px; color: var(--text-3); }
.about-page .thread-body {
  flex: 1;
  /* min-height:0 unlocks proper flex-shrink on this item — without it
     the bubble stack's intrinsic height would beat flex:1 and the
     thread-input below would be pushed out of .app's fixed height. */
  min-height: 0;
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
}
.about-page .thread-body .bubble { font-size: 13px; }
.about-page .day-divider {
  align-self: center; font-size: 11px; color: var(--text-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px;
  background: var(--surface-2); border-radius: 100px; margin-bottom: 4px;
}
.about-page .thread-input {
  margin: 16px 20px 18px; padding: 10px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 13px;
}
.about-page .thread-input .send-btn {
  margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff;
}

/* ── Bento ─────────────────────────────────────────────────────────── */
.about-page .bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
@media (max-width: 980px) { .about-page .bento { grid-template-columns: repeat(2, 1fr); } }
.about-page .cell {
  border: 1px solid var(--border-md);
  border-radius: 18px; padding: 28px;
  background: var(--surface-1);
  overflow: hidden; position: relative;
  /* Grid items default to `min-width: auto` (= intrinsic content width),
     which lets a too-wide child (e.g. the unwrapping `142 мс медианный
     RTT` stat) force the column wider than its 1fr share. min-width:0
     unlocks proper shrinking; the cell's own overflow:hidden then clips
     anything that's still too long. */
  min-width: 0;
  transition: border-color 0.2s, transform 0.2s;
}
.about-page .cell:hover { border-color: var(--border-hi); }
.about-page .cell h3 {
  margin: 0 0 8px; font-family: var(--font-display); font-weight: 700;
  font-size: 19px; letter-spacing: -0.015em; color: var(--text-1);
}
.about-page .cell p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }

.about-page .cell-realtime {
  grid-column: span 4; grid-row: span 2;
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, rgba(91, 124, 246, 0.18) 0%, transparent 60%),
    var(--surface-1);
  display: flex; flex-direction: column; justify-content: space-between;
}
.about-page .cell-realtime .top-stat {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(56px, 8vw, 96px); line-height: 0.95;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text-1), var(--accent-hi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-page .cell-realtime .top-stat .unit {
  font-size: 0.4em; color: var(--text-2); -webkit-text-fill-color: var(--text-2);
  margin-left: 4px; letter-spacing: -0.01em;
}
.about-page .cell-realtime .pipe-vis {
  position: relative; height: 40px; margin: 18px 0;
  border-top: 1px dashed var(--border-md);
}
.about-page .cell-realtime .pipe-vis::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: about-shoot 1.6s infinite linear;
}
@keyframes about-shoot {
  0%   { transform: translateX(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
.about-page .cell-realtime .endpoints {
  display: flex; justify-content: space-between;
  /* Allow wrapping so longer translations (e.g. RU "собеседник") don't
     get clipped by the cell's overflow:hidden on narrow viewports. */
  flex-wrap: wrap;
  gap: 4px 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
}
.about-page .cell-realtime .endpoints span:nth-child(1)::before { content: "↗ "; color: var(--accent); }
.about-page .cell-realtime .endpoints span:nth-child(2)::before { content: "↙ "; color: var(--online); }

.about-page .cell-encryption {
  grid-column: span 2; grid-row: span 2;
  border: 1px solid rgba(91, 124, 246, 0.32);
  background:
    linear-gradient(180deg, rgba(91, 124, 246, 0.10), transparent 50%),
    var(--surface-1);
  display: flex; flex-direction: column; justify-content: space-between;
}
.about-page .cell-encryption .lock-art {
  align-self: flex-end;
  width: 88px; height: 88px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 30%, rgba(123, 150, 248, 0.55) 0%, transparent 50%),
    linear-gradient(135deg, var(--accent), #1d2a6e);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 30px -10px var(--accent-glow);
}

.about-page .cell-groups { grid-column: span 2; grid-row: span 1; }
.about-page .cell-groups .stack { margin-top: 14px; display: flex; }
.about-page .cell-groups .stack .av {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--surface-1);
  margin-left: -10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 11px;
}
.about-page .cell-groups .stack .av:first-child { margin-left: 0; }
.about-page .cell-groups .stack .more {
  margin-left: -10px; padding: 0 12px; height: 32px; border-radius: 100px;
  background: var(--surface-3); border: 2px solid var(--surface-1);
  color: var(--text-2); font-size: 11px; font-weight: 600;
  display: flex; align-items: center;
}

.about-page .cell-files { grid-column: span 2; grid-row: span 1; }
.about-page .cell-files .pills { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.about-page .cell-files .pills span {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  padding: 4px 9px; border-radius: 6px;
  background: var(--surface-3); color: var(--text-2);
}

.about-page .cell-cross {
  grid-column: span 4; grid-row: span 1;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.about-page .cell-cross .copy { max-width: 240px; }
.about-page .cell-cross .devices { display: flex; align-items: flex-end; gap: 14px; opacity: 0.95; }
.about-page .device-frame { border: 1px solid var(--border-hi); border-radius: 8px; overflow: hidden; background: var(--bg); }
.about-page .device-frame.desk { width: 110px; height: 75px; border-radius: 6px; padding: 6px; }
.about-page .device-frame.tab  { width:  70px; height: 95px; border-radius: 7px; padding: 5px; }
.about-page .device-frame.phn  { width:  42px; height: 80px; border-radius: 8px; padding: 4px; }
.about-page .device-frame .scr { background: var(--surface-2); height: 100%; border-radius: 4px; position: relative; overflow: hidden; }
.about-page .device-frame .scr::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 4px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.about-page .device-frame .scr::after {
  content: ""; position: absolute; left: 4px; right: 35%; top: 9px;
  height: 2px; border-radius: 2px; background: var(--text-3);
}

.about-page .cell-channels { grid-column: span 2; }
.about-page .cell-channels .poll { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.about-page .cell-channels .poll .row {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 10px; background: var(--surface-2); border-radius: 8px;
}
.about-page .cell-channels .poll .row .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.about-page .cell-channels .poll .row .q { font-size: 12px; color: var(--text-1); flex: 1; }
.about-page .cell-channels .poll .row .votes { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.about-page .cell-channels .poll .bar {
  height: 4px; border-radius: 2px; background: var(--surface-2);
  position: relative; overflow: hidden;
}
.about-page .cell-channels .poll .bar > span {
  position: absolute; inset: 0; width: 68%; background: var(--accent); border-radius: 2px;
}

/* ── Privacy section ───────────────────────────────────────────────── */
.about-page .privacy { max-width: 1280px; margin: 0 auto; padding: 80px 32px; }
.about-page .privacy-card {
  border: 1px solid var(--border-md); border-radius: 22px;
  padding: 56px;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(91, 124, 246, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, var(--surface-1), var(--bg-2));
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 980px) {
  .about-page .privacy { padding: 64px 24px; }
  .about-page .privacy-card { grid-template-columns: 1fr; padding: 36px; gap: 36px; }
}
.about-page .privacy-card h2 {
  margin: 0 0 20px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -0.025em;
  line-height: 1.08;
}
.about-page .privacy-card h2 em { font-style: normal; color: var(--accent-hi); }
.about-page .privacy-card p { margin: 0 0 14px; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.about-page .privacy-card .footnote {
  margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
}
.about-page .privacy-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.about-page .privacy-bullets li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px;
  background: rgba(8, 12, 22, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.about-page .privacy-bullets .ico {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: var(--accent-lo); border: 1px solid rgba(91, 124, 246, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-hi);
}
.about-page .privacy-bullets .ico svg { width: 16px; height: 16px; }
.about-page .privacy-bullets b { display: block; font-size: 13.5px; color: var(--text-1); margin-bottom: 2px; font-weight: 600; }
.about-page .privacy-bullets span { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

/* ── 30-second strip ───────────────────────────────────────────────── */
.about-page .strip { max-width: 1280px; margin: 0 auto; padding: 64px 32px 96px; }
.about-page .strip-inner {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--border-md); border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-1), var(--bg-2));
}
@media (max-width: 880px) { .about-page .strip-inner { flex-direction: column; } }
.about-page .strip-step {
  flex: 1; padding: 28px;
  display: flex; align-items: center; gap: 18px;
  border-right: 1px solid var(--border);
  position: relative;
}
.about-page .strip-step:last-of-type { border-right: 0; }
@media (max-width: 880px) {
  .about-page .strip-step { border-right: 0; border-bottom: 1px solid var(--border); }
  .about-page .strip-step:last-of-type { border-bottom: 0; }
}
.about-page .strip-step .num {
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  color: var(--text-3); letter-spacing: -0.04em;
  flex-shrink: 0; line-height: 1;
}
.about-page .strip-step .label { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 2px; }
.about-page .strip-step .sub { font-size: 12px; color: var(--text-2); }
.about-page .strip-cta {
  padding: 28px 36px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px;
  transition: background 0.15s;
  cursor: pointer;
}
.about-page .strip-cta:hover { background: var(--accent-hi); color: #fff; }
.about-page .strip-cta svg { width: 18px; height: 18px; }

/* ── Footer ────────────────────────────────────────────────────────── */
.about-page .footer {
  border-top: 1px solid var(--border); margin-top: 0;
  padding: 56px 32px 36px;
  background: rgba(8, 12, 22, 0.6);
}
.about-page .footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 48px;
}
@media (max-width: 880px) { .about-page .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
.about-page .footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; margin-bottom: 12px; }
.about-page .footer-tag { color: var(--text-2); font-size: 13.5px; line-height: 1.55; max-width: 260px; }
.about-page .footer-col h4 {
  margin: 0 0 14px; font-family: var(--font-display); font-size: 12px; font-weight: 600;
  color: var(--text-1); letter-spacing: 0.04em; text-transform: uppercase;
}
.about-page .footer-col a { display: block; padding: 5px 0; color: var(--text-2); font-size: 13px; transition: color 0.15s; }
.about-page .footer-col a:hover { color: var(--text-1); }
.about-page .footer-bottom {
  max-width: 1280px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-3); font-family: var(--font-mono);
}
.about-page .footer-bottom .langs { display: flex; gap: 14px; }
.about-page .footer-bottom .langs a { color: var(--text-3); }
.about-page .footer-bottom .langs a.on { color: var(--accent); }
.about-page .footer-bottom .status { display: inline-flex; align-items: center; gap: 6px; }
.about-page .footer-bottom .status .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--online); box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }

/* ── Reveal-on-scroll ──────────────────────────────────────────────── */
.about-page .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-page .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .about-page .reveal,
  .about-page .reveal.in { transition: none; transform: none; opacity: 1; }
}

/* ───────────────────────────────────────────────────────────────────────
   Responsive refinements
   ─────────────────────────────────────────────────────────────────────── */

/* ── Tablet → mobile (≤ 720px) ─────────────────────────────────────────
   The existing 720px block above already collapses the showcase sidebar
   and tightens .section padding. This block extends it to the rest of
   the page: nav, hero actions, bento, cell internals, footer spacing. */
@media (max-width: 720px) {

  /* Nav — drop the in-page anchor links + lang chip; keep brand on the
     left and Sign in + Get AXON CTA on the right. Five items don't fit
     under ~600px without ugly wrapping or shrinking. */
  .about-page .nav { padding: 12px 18px; }
  .about-page .page-content { padding-top: 52px; }
  .about-page .nav-right { gap: 4px; }
  .about-page .nav-right > a[href^="#"] { display: none; }
  .about-page .nav-right .lang { display: none; }
  .about-page .nav-right .cta { padding: 8px 12px; font-size: 12.5px; }

  /* Hero — tighter padding, eyebrow + h1 spacing */
  .about-page .hero { padding: 40px 20px 64px; gap: 36px; }
  .about-page .hero-eyebrow { margin-bottom: 20px; }
  .about-page .hero h1 { margin-bottom: 18px; }

  /* Hero CTAs — stack full-width so "Create your account" doesn't get
     squished next to "Sign in" on a portrait phone. */
  .about-page .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .about-page .hero-actions .btn { width: 100%; justify-content: center; }
  .about-page .hero-actions .meta { margin: 4px auto 0; text-align: center; }

  /* Chat demo — 580px min-height was eating a whole phone screen */
  .about-page .chat-demo { min-height: 460px; padding: 18px 18px 14px; }

  /* Browser-frame app — sidebar already hidden by the existing rule;
     trim thread height so the showcase doesn't dominate. */
  .about-page .app { height: 440px; }

  /* Browser-bar at narrow widths: drop the right-side decorative
     spacer (it only existed to balance the dots visually on desktop)
     and tighten the bar's own padding/gap. With min-width:0 already
     on .browser-url the long URL token now ellipsis-truncates instead
     of pushing the showcase off the right edge. */
  .about-page .browser-bar { padding: 10px 12px; gap: 10px; }
  .about-page .browser-spacer { display: none; }

  /* Bento — stack to a single column with auto row heights. The desktop
     `grid-auto-rows: 200px` would otherwise crop content once each cell
     gets the full row. */
  .about-page .bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; }
  .about-page .cell { padding: 24px; }
  .about-page .cell-realtime,
  .about-page .cell-encryption,
  .about-page .cell-groups,
  .about-page .cell-files,
  .about-page .cell-cross,
  .about-page .cell-channels {
    grid-column: span 1;
    grid-row: auto;
  }

  /* Cell-realtime — `clamp(56px, 8vw, 96px)` floors at 56px which still
     dominates a narrow card. Allow a smaller minimum on phones. */
  .about-page .cell-realtime .top-stat { font-size: clamp(44px, 14vw, 72px); }

  /* Cell-cross — desktop is row layout (copy + devices side-by-side).
     Stack vertically so neither half gets crushed. */
  .about-page .cell-cross { flex-direction: column; align-items: flex-start; gap: 18px; }
  .about-page .cell-cross .copy { max-width: none; }

  /* Privacy bullets — slightly tighter so the icon + 2 lines of text
     don't push the card into a dominating block. */
  .about-page .privacy-bullets li { padding: 14px; gap: 12px; }

  /* Footer — give breathing room back, the 880px 2-col rule is correct
     for this width but its `gap: 32px` reads tight on portrait phones. */
  .about-page .footer { padding: 40px 20px 28px; }
  .about-page .footer-inner { gap: 28px; }
}

/* ── Tiny phones (≤ 480px) ──────────────────────────────────────────── */
@media (max-width: 480px) {

  /* Section/footer/strip padding — pull the gutters in to 16px so
     content gets the most width on a 360-380px viewport. */
  .about-page .section,
  .about-page .privacy { padding: 48px 16px; }
  .about-page .strip { padding: 32px 16px 56px; }
  .about-page .footer { padding: 36px 16px 24px; }

  /* Hero — tightest pass */
  .about-page .hero { padding: 28px 16px 56px; gap: 28px; }
  .about-page .hero-eyebrow { font-size: 10px; padding: 5px 10px; }

  /* Nav — minimal; just brand + CTA */
  .about-page .nav { padding: 10px 14px; }
  .about-page .page-content { padding-top: 48px; }
  .about-page .nav-right > a:not(.cta) { font-size: 12px; padding: 6px 10px; }
  .about-page .nav-right .cta { padding: 7px 11px; font-size: 12px; }

  /* Chat demo — trim further */
  .about-page .chat-demo { min-height: 420px; padding: 16px 16px 12px; }

  /* Browser frame — even shorter */
  .about-page .app { height: 380px; }

  /* Footer columns → single stack for legibility on narrow viewports */
  .about-page .footer-inner { grid-template-columns: 1fr; gap: 22px; }

  /* Footer-bottom — three pieces (copyright / status / langs) want their
     own line at this width; otherwise they overflow into each other. */
  .about-page .footer-bottom {
    flex-direction: column; align-items: flex-start; gap: 10px;
  }

  /* Strip — denser steps */
  .about-page .strip-step { padding: 20px; gap: 14px; }
  .about-page .strip-step .num { font-size: 26px; }
  .about-page .strip-cta { padding: 22px 24px; font-size: 14.5px; }

  /* Privacy card — pull padding in too */
  .about-page .privacy-card { padding: 28px 22px; gap: 28px; }
  .about-page .privacy-card h2 { margin-bottom: 14px; }

  /* Cell padding */
  .about-page .cell { padding: 22px; }

  /* Section title margin */
  .about-page .section-head { margin-bottom: 40px; }
}

/* ───────────────────────────────────────────────────────────────────────
   Auth shell — shared styles for /login and /register.
   All selectors nest under `.auth-shell` so generic class names
   (.shell, .field, .input-wrap, .check, .btn-submit, .divider …) cannot
   leak to the rest of the app. Both Login.jsx and Register.jsx import
   this file and use the same outer `.auth-shell` parent class — they
   only differ in the form fields and panel-art copy inside.
   ─────────────────────────────────────────────────────────────────────── */

.auth-shell {
  color: var(--text-1); font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  min-height: 100vh;
  /* Defensive: prevent any inner element from triggering horizontal scroll. */
  overflow-x: hidden;
}
.auth-shell a { color: inherit; text-decoration: none; }
.auth-shell ::selection { background: var(--accent); color: #fff; }

/* ── Shell: split grid (brand+art left, form right) ──────────────────── */
.auth-shell .shell {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 100vh;
}
/* ── Left panel: brand + ambient art ────────────────────────────────── */
.auth-shell .panel-art {
  position: relative;
  overflow: hidden;
  padding: 40px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(ellipse 70% 60% at 25% 30%, rgba(91, 124, 246, 0.28) 0%, rgba(91, 124, 246, 0.05) 40%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(123, 150, 248, 0.18) 0%, transparent 60%),
    var(--bg-2);
  border-right: 1px solid var(--border);
}
.auth-shell .panel-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -2px -2px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
}

.auth-shell .brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.04em; font-size: 22px; color: var(--text-1);
  z-index: 1; position: relative;
}
.auth-shell .brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
}

.auth-shell .art-center {
  position: relative; z-index: 1;
  max-width: 460px;
}
.auth-shell .art-eyebrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.04em; margin: 0 0 14px;
}
.auth-shell .art-eyebrow::before { content: "// "; opacity: 0.6; }
.auth-shell .art-headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1;
  letter-spacing: -0.025em; margin: 0 0 18px;
}
.auth-shell .art-headline em { font-style: normal; color: var(--accent-hi); }
.auth-shell .art-sub {
  color: var(--text-2); font-size: 15px; line-height: 1.6;
  max-width: 380px; margin: 0 0 32px;
}

.auth-shell .art-bubbles {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 360px;
}
.auth-shell .bubble {
  max-width: 84%; padding: 10px 14px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.45;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(8px);
  animation: login-bubbleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.auth-shell .bubble.them {
  background: rgba(27, 34, 53, 0.85); border: 1px solid var(--border);
  border-bottom-left-radius: 6px; align-self: flex-start;
}
.auth-shell .bubble.me {
  background: var(--accent); color: #fff;
  border-bottom-right-radius: 6px; align-self: flex-end;
  box-shadow: 0 8px 24px rgba(91, 124, 246, 0.35);
}
.auth-shell .bubble:nth-child(1) { animation-delay: 0.40s; }
.auth-shell .bubble:nth-child(2) { animation-delay: 0.95s; }
.auth-shell .bubble:nth-child(3) { animation-delay: 1.50s; }
.auth-shell .bubble .time { font-size: 10.5px; opacity: 0.75; margin-left: 6px; }
@keyframes login-bubbleIn {
  to { opacity: 1; transform: none; }
}

.auth-shell .typing-row {
  align-self: flex-start; opacity: 0;
  animation: login-bubbleIn 0.4s 2.0s forwards;
}
.auth-shell .typing {
  background: rgba(27, 34, 53, 0.85); border: 1px solid var(--border);
  border-radius: 14px; border-bottom-left-radius: 6px;
  padding: 11px 14px; display: inline-flex; gap: 4px;
}
.auth-shell .typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-2);
  animation: login-typeBounce 1.2s infinite ease-in-out;
}
.auth-shell .typing span:nth-child(2) { animation-delay: 0.15s; }
.auth-shell .typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes login-typeBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-3px); opacity: 1; }
}

.auth-shell .art-foot {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3);
}
.auth-shell .art-foot .stat { display: inline-flex; align-items: center; gap: 6px; }
.auth-shell .art-foot .pip-on {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--online); box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}
.auth-shell .art-foot b { color: var(--text-1); font-weight: 600; }

/* Below 1024px (every phone in any orientation, every tablet in portrait)
   the entire brand+art panel hides and the form takes the full viewport.
   Placed AFTER all the panel-art base rules — same-specificity selectors
   resolve by source order, so a media-query placed earlier would lose to
   later non-media-query rules. */
@media (max-width: 1024px) {
  .auth-shell .shell { grid-template-columns: 1fr; }
  .auth-shell .panel-art { display: none; }
}

/* ── Right panel: form ──────────────────────────────────────────────── */
.auth-shell .panel-form {
  display: flex; flex-direction: column;
  /* Top is 16px so the form-top row lands at the same vertical inset
     as About's sticky nav (`.about-page .nav { padding: 16px 32px }`).
     Bottom keeps the original 32px breathing room before form-foot. */
  padding: 16px 56px 32px;
  background: var(--bg);
  min-width: 0;
}
@media (max-width: 1024px) { .auth-shell .panel-form { padding: 16px 24px 28px; } }
@media (max-width: 480px)  { .auth-shell .panel-form { padding: 14px 18px 22px; } }

.auth-shell .form-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-2);
  margin-bottom: auto;
}
.auth-shell .form-top .brand-mobile {
  display: none;
  /* It's a <Link> to /about — color transition gives a hover affordance
     without making a marketing-style chip out of it. */
  transition: color 0.15s;
}
.auth-shell .form-top .brand-mobile:hover { color: var(--accent-hi); }
@media (max-width: 1024px) {
  .auth-shell .form-top .brand-mobile {
    display: inline-flex; align-items: center;
    font-family: var(--font-display); font-weight: 700;
    letter-spacing: -0.03em; font-size: 18px; color: var(--text-1);
  }
}
.auth-shell .form-top .lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--border-md); border-radius: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--text-2); cursor: pointer;
  background: transparent;
  transition: color 0.15s, border-color 0.15s;
}
.auth-shell .form-top .lang .pip {
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.auth-shell .form-top .lang:hover { color: var(--text-1); border-color: var(--border-hi); }

.auth-shell .form-wrap {
  width: 100%; max-width: 420px; margin: 0 auto;
  padding: 56px 0;
}
@media (max-width: 1024px) { .auth-shell .form-wrap { padding: 36px 0 24px; } }
@media (max-width: 480px) { .auth-shell .form-wrap { padding: 28px 0 20px; } }

.auth-shell .form-eyebrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.04em; margin: 0 0 12px;
}
.auth-shell .form-eyebrow::before { content: "// "; opacity: 0.6; }
.auth-shell .form-wrap h1 {
  margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 3.6vw, 42px); letter-spacing: -0.03em; line-height: 1.05;
  color: var(--text-1);
}
.auth-shell .form-sub { margin: 0 0 36px; color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* Field */
.auth-shell .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.auth-shell .field-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  letter-spacing: 0.02em;
}
.auth-shell .field-label .hint {
  font-size: 12px; color: var(--accent-hi); font-weight: 500;
  background: none; border: none; cursor: pointer; padding: 0;
}
.auth-shell .field-label .hint:hover { color: var(--accent); text-decoration: underline; }

.auth-shell .input-wrap {
  position: relative;
  display: flex; align-items: center;
  border: 1px solid var(--border-md); border-radius: 12px;
  background: var(--surface-1);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-shell .input-wrap:hover { border-color: var(--border-hi); }
.auth-shell .input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-lo);
}
.auth-shell .input-wrap.has-error { border-color: var(--danger); }
.auth-shell .input-wrap.has-error:focus-within {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15);
}
.auth-shell .input-wrap .leading {
  flex-shrink: 0; padding: 0 12px 0 16px; color: var(--text-3);
  display: flex; align-items: center;
}
.auth-shell .input-wrap input {
  flex: 1; min-width: 0;
  background: transparent;
  border: none; outline: none;
  padding: 14px 16px 14px 0;
  font-family: var(--font-ui); font-size: 14.5px; color: var(--text-1);
  letter-spacing: 0;
}
.auth-shell .input-wrap input::placeholder { color: var(--text-3); }
.auth-shell .input-wrap .trailing {
  padding: 0 14px; color: var(--text-3); cursor: pointer;
  background: none; border: none; display: flex; align-items: center;
  transition: color 0.15s;
}
.auth-shell .input-wrap .trailing:hover { color: var(--text-1); }

/* Caps-lock + validation row */
.auth-shell .field-meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 11.5px; color: var(--text-3);
  min-height: 14px;
}
.auth-shell .field-meta.warn { color: var(--warning, #fbbf24); }
.auth-shell .field-meta.warn svg { color: var(--warning, #fbbf24); }
.auth-shell .field-meta.error { color: var(--danger); }
.auth-shell .field-meta.error svg { color: var(--danger); }
.auth-shell .field-meta svg { width: 12px; height: 12px; }

/* Server error banner */
.auth-shell .form-error {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--danger); font-size: 13px; line-height: 1.45;
}
.auth-shell .form-error svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.auth-shell .form-error .reason { display: block; color: var(--text-2); margin-top: 4px; font-size: 12px; }

/* Remember-me row */
.auth-shell .form-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 8px 0 24px;
  font-size: 13px;
}
.auth-shell .check {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text-2); cursor: pointer; user-select: none;
  position: relative;
}
.auth-shell .check .box {
  width: 16px; height: 16px; border-radius: 5px;
  border: 1.5px solid var(--border-hi);
  background: var(--surface-1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.auth-shell .check input {
  position: absolute; opacity: 0; pointer-events: none;
  width: 0; height: 0;
}
.auth-shell .check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.auth-shell .check .box svg {
  width: 11px; height: 11px; color: #fff; opacity: 0;
  transition: opacity 0.15s;
}
.auth-shell .check input:checked + .box svg { opacity: 1; }
.auth-shell .check:hover .box { border-color: var(--accent); }

/* Buttons */
.auth-shell .btn-submit {
  width: 100%; padding: 14px 20px; border-radius: 12px;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: 14.5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 0 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s, background 0.15s, opacity 0.15s;
}
.auth-shell .btn-submit:hover:not(:disabled) {
  background: var(--accent-hi); transform: translateY(-1px);
}
.auth-shell .btn-submit:active:not(:disabled) { transform: translateY(0); }
.auth-shell .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.auth-shell .btn-submit svg { width: 16px; height: 16px; }

/* Divider */
.auth-shell .divider {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0;
  color: var(--text-3); font-size: 11.5px;
  font-family: var(--font-mono); letter-spacing: 0.05em;
}
.auth-shell .divider::before,
.auth-shell .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-md);
}

/* QR / passkey-style secondary button */
.auth-shell .btn-passkey {
  width: 100%; padding: 13px 20px; border-radius: 12px;
  background: transparent; color: var(--text-1);
  border: 1px solid var(--border-md);
  cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.auth-shell .btn-passkey:hover { border-color: var(--border-hi); background: var(--surface-1); }
.auth-shell .btn-passkey svg { width: 17px; height: 17px; color: var(--accent-hi); }

/* QR-mode container — keeps the existing QrLoginPanel inside the
   form-wrap so it inherits the same width/centering. */
.auth-shell .qr-mode {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 16px;
}
.auth-shell .qr-back {
  align-self: flex-start;
  background: none; border: none; cursor: pointer; padding: 6px 8px; margin-left: -8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: color 0.15s;
}
.auth-shell .qr-back:hover { color: var(--text-1); }
.auth-shell .qr-back svg { width: 14px; height: 14px; }

/* Foot links */
.auth-shell .form-foot {
  margin-top: auto; padding-top: 36px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-2);
  flex-wrap: wrap; gap: 10px;
}
.auth-shell .form-foot .register-link {
  color: var(--text-1); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.auth-shell .form-foot .register-link:hover { color: var(--accent-hi); }
.auth-shell .form-foot .register-link svg { width: 14px; height: 14px; transition: transform 0.15s; }
.auth-shell .form-foot .register-link:hover svg { transform: translateX(3px); }
.auth-shell .form-foot .legal {
  display: flex; gap: 14px;
  font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono);
}
.auth-shell .form-foot .legal a:hover { color: var(--text-2); }

/* ───────────────────────────────────────────────────────────────────────
   /forgot-password additions — multi-step UI
   These selectors live on the same `.auth-shell` parent as login/register.
   Only loaded paths are: panel-art .inbox, .progress, .pane, .code-grid,
   .strength, .reqs, .success-mark, .form-top .back, plus the
   `.panel-form.has-progress` modifier that disables the auto-margin
   centring trick used on /login and /register.
   ─────────────────────────────────────────────────────────────────────── */

/* When a progress strip sits between form-top and form-wrap, the
   form-top:margin-bottom:auto trick (used to vertically centre the
   form on /login and /register) would push the progress strip down
   and break the layout. The modifier turns the auto-margin off and
   lets progress + form-wrap stack naturally; form-foot's own
   margin-top:auto still pins it to the bottom. */
.auth-shell .panel-form.has-progress .form-top { margin-bottom: 0; }

/* Back link in form-top (replaces the brand-mobile slot for forgot). */
.auth-shell .form-top .back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); padding: 6px 10px; border-radius: 8px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-ui); font-size: 13px;
  transition: color 0.15s, background 0.15s;
}
.auth-shell .form-top .back:hover { color: var(--text-1); background: var(--surface-1); }
.auth-shell .form-top .back svg { width: 14px; height: 14px; transition: transform 0.15s; }
.auth-shell .form-top .back:hover svg { transform: translateX(-3px); }

/* ── Inbox preview (panel-art content) ─────────────────────────────── */
.auth-shell .inbox {
  position: relative;
  width: 100%; max-width: 380px;
  margin-top: 4px;
}
.auth-shell .inbox-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; gap: 14px; align-items: flex-start;
}
.auth-shell .inbox-card.peek {
  position: absolute; left: 18px; right: 18px;
  padding: 14px 18px;
  background: var(--surface-1);
  box-shadow: none;
}
.auth-shell .inbox-card.peek-1 { top: -10px; left: 14px; right: 14px; opacity: 0.45; }
.auth-shell .inbox-card.peek-2 { top: -22px; left: 28px; right: 28px; opacity: 0.22; }
.auth-shell .inbox-card.top {
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 2;
}
.auth-shell .inbox-card.top::before {
  content: ""; position: absolute; top: 14px; left: -1px;
  width: 3px; height: calc(100% - 28px);
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: auth-pulseBar 2.4s ease-in-out infinite;
}
@keyframes auth-pulseBar {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}
.auth-shell .inbox-avatar {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
}
.auth-shell .inbox-card.peek .inbox-avatar {
  background: var(--surface-3); box-shadow: none; color: var(--text-3);
}
.auth-shell .inbox-body { flex: 1; min-width: 0; }
.auth-shell .inbox-row1 {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 4px;
}
.auth-shell .inbox-from { font-weight: 600; font-size: 13.5px; color: var(--text-1); }
.auth-shell .inbox-time {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--accent);
  letter-spacing: 0.05em; flex-shrink: 0;
}
.auth-shell .inbox-card.peek .inbox-time { color: var(--text-3); }
.auth-shell .inbox-subj {
  font-size: 13px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 10px;
}
.auth-shell .inbox-subj b { color: var(--text-1); font-weight: 600; }
.auth-shell .inbox-code {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  background: var(--accent-lo);
  border: 1px dashed rgba(91, 124, 246, 0.35);
}
.auth-shell .inbox-code .lbl {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  color: var(--accent-hi); text-transform: uppercase;
}
.auth-shell .inbox-code .digits {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 17px; letter-spacing: 0.22em; color: var(--text-1);
}
.auth-shell .env-cap {
  margin-top: 18px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px;
}
.auth-shell .env-cap::before {
  content: ""; width: 14px; height: 1px; background: var(--text-3);
}

/* ── Progress strip (3 steps) ──────────────────────────────────────── */
.auth-shell .progress {
  margin: 36px auto 0; max-width: 460px; width: 100%;
  display: flex; align-items: center; gap: 10px;
}
.auth-shell .progress .step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.auth-shell .progress .step-bar {
  width: 100%; height: 3px; border-radius: 2px;
  background: var(--surface-2); overflow: hidden;
  position: relative;
}
.auth-shell .progress .step-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.auth-shell .progress .step.done .step-bar::after { transform: scaleX(1); }
.auth-shell .progress .step.active .step-bar::after {
  transform: scaleX(0.4);
  animation: auth-stepBreath 1.6s infinite;
}
@keyframes auth-stepBreath {
  0%, 100% { transform: scaleX(0.4); }
  50%      { transform: scaleX(0.7); }
}
.auth-shell .progress .step-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--text-3);
  width: 100%;
  transition: color 0.25s;
}
.auth-shell .progress .step.active .step-meta,
.auth-shell .progress .step.done .step-meta { color: var(--text-1); }
.auth-shell .progress .step-num {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--border-md);
  color: var(--text-3); font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.25s;
}
.auth-shell .progress .step.active .step-num {
  background: var(--accent-lo); border-color: var(--accent);
  color: var(--accent-hi);
  box-shadow: 0 0 0 3px rgba(91, 124, 246, 0.10);
}
.auth-shell .progress .step.done .step-num {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.auth-shell .progress .step.done .step-num svg { width: 10px; height: 10px; }

/* ── Adjacent form-wrap padding when a progress strip precedes it ───── */
.auth-shell .progress + .form-wrap { padding: 36px 0 24px; }

/* ── Pane (animated step transitions) ──────────────────────────────── */
.auth-shell .pane { display: none; flex-direction: column; }
.auth-shell .pane.on {
  display: flex;
  animation: auth-paneIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes auth-paneIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── Field-label badges (strength/match indicators) ────────────────── */
.auth-shell .field-label .badge {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.05em; padding: 2px 7px; border-radius: 5px;
  transition: all 0.2s;
}
.auth-shell .field-label .badge.ok {
  color: var(--online);
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.auth-shell .field-label .badge.warn {
  color: var(--warning, #fbbf24);
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.25);
}
.auth-shell .field-label .badge.err {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.10);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

/* ── Code grid (6-cell OTP) ────────────────────────────────────────── */
.auth-shell .code-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  margin: 6px 0 12px;
}
.auth-shell .code-grid input {
  width: 100%; min-width: 0;
  text-align: center;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 26px; color: var(--text-1);
  background: var(--surface-1);
  border: 1px solid var(--border-md);
  border-radius: 12px;
  height: 64px;
  outline: none;
  caret-color: var(--accent);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -moz-appearance: textfield;
}
.auth-shell .code-grid input::-webkit-outer-spin-button,
.auth-shell .code-grid input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.auth-shell .code-grid input:hover { border-color: var(--border-hi); }
.auth-shell .code-grid input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-lo);
}
.auth-shell .code-grid input.filled {
  background: var(--accent-lo);
  border-color: var(--accent);
}
.auth-shell .code-grid.shake { animation: auth-shake 0.4s; }
@keyframes auth-shake {
  0%, 100%  { transform: translateX(0); }
  20%, 60%  { transform: translateX(-6px); }
  40%, 80%  { transform: translateX(6px); }
}
.auth-shell .code-grid.error input {
  border-color: var(--danger); background: rgba(248, 113, 113, 0.08);
}
.auth-shell .code-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px; margin-bottom: 24px;
  font-size: 12.5px; color: var(--text-2);
  flex-wrap: wrap; gap: 6px;
}
.auth-shell .code-meta b { color: var(--text-1); }
.auth-shell .code-meta .resend {
  font-weight: 600; color: var(--accent-hi); cursor: pointer;
  background: none; border: none; padding: 0;
  font-family: var(--font-ui); font-size: 12.5px;
}
.auth-shell .code-meta .resend:hover:not(:disabled) {
  color: var(--accent); text-decoration: underline;
}
.auth-shell .code-meta .resend:disabled { color: var(--text-3); cursor: not-allowed; }

/* Mobile: single row of 6 cells gets cramped — shrink the cell height
   and the digit font so the whole grid fits a 320-360px viewport. */
@media (max-width: 480px) {
  .auth-shell .code-grid { gap: 6px; }
  .auth-shell .code-grid input { height: 52px; font-size: 22px; border-radius: 10px; }
}

/* ── Password strength meter ────────────────────────────────────────── */
.auth-shell .strength {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  margin-top: 4px;
}
.auth-shell .strength span {
  height: 3px; border-radius: 2px; background: var(--surface-3);
  transition: background 0.25s;
}
.auth-shell .strength[data-level="1"] span:nth-child(-n+1) { background: var(--danger); }
.auth-shell .strength[data-level="2"] span:nth-child(-n+2) { background: var(--warning, #fbbf24); }
.auth-shell .strength[data-level="3"] span:nth-child(-n+3) { background: var(--accent-hi); }
.auth-shell .strength[data-level="4"] span                  { background: var(--online); }

/* ── Password requirements list ────────────────────────────────────── */
.auth-shell .reqs {
  margin: 12px 0 18px; padding: 14px 16px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
  list-style: none;
}
.auth-shell .reqs li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-3);
  transition: color 0.2s;
}
.auth-shell .reqs li.ok { color: var(--online); }
.auth-shell .reqs li .dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--text-3);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.auth-shell .reqs li.ok .dot {
  background: var(--online); border-color: var(--online);
}
.auth-shell .reqs li.ok .dot::after {
  content: ""; width: 4px; height: 6px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
@media (max-width: 480px) {
  .auth-shell .reqs { grid-template-columns: 1fr; gap: 6px 0; padding: 12px 14px; }
}

/* ── Step 4: success ───────────────────────────────────────────────── */
.auth-shell .pane-done { text-align: center; padding-top: 16px; }
.auth-shell .success-mark {
  width: 80px; height: 80px; border-radius: 24px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
  animation: auth-popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.auth-shell .success-mark svg { width: 36px; height: 36px; }
@keyframes auth-popIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: none; }
}
.auth-shell .pane-done h1 { margin-bottom: 14px; }
.auth-shell .pane-done .form-sub { margin-bottom: 32px; }
.auth-shell .pane-done .summary {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  padding: 12px 18px; border-radius: 10px;
  background: var(--surface-1); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
  margin: 0 auto 28px; max-width: 100%;
  flex-wrap: wrap;
}
.auth-shell .pane-done .summary svg { width: 14px; height: 14px; color: var(--online); flex-shrink: 0; }
.auth-shell .pane-done .summary b { color: var(--text-1); font-weight: 600; }

/* Foot alt-link (used on /forgot-password — slightly different from
   the register-link; smaller ↦ inline arrow, no underline transform). */
.auth-shell .form-foot .alt-link {
  color: var(--text-1); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.15s;
}
.auth-shell .form-foot .alt-link:hover { color: var(--accent-hi); }

/* Multi-line agreement checkbox (used on /register). The base .check
   centers a single-line label; for an inline-link sentence that wraps
   we anchor the box to the first text line and let the rest flow. */
.auth-shell .check.check-agree {
  align-items: flex-start;
  font-size: 12.5px; line-height: 1.5;
  color: var(--text-2);
}
.auth-shell .check.check-agree .box { margin-top: 2px; }
.auth-shell .check.check-agree .agree-text { flex: 1; }
.auth-shell .check.check-agree .agree-text a {
  color: var(--accent-hi); font-weight: 500;
}
.auth-shell .check.check-agree .agree-text a:hover {
  color: var(--accent); text-decoration: underline;
}
.auth-shell .agree-error {
  margin: -10px 0 18px 26px;
  font-size: 11.5px; color: var(--danger);
  display: flex; align-items: center; gap: 6px;
}
.auth-shell .agree-error svg { width: 12px; height: 12px; }

/* Tiny phones — collapse foot legal under register link, tighten paddings. */
@media (max-width: 480px) {
  .auth-shell .form-foot {
    flex-direction: column; align-items: stretch; gap: 14px;
  }
  .auth-shell .form-foot .legal { justify-content: flex-start; }
  .auth-shell .form-wrap h1 { font-size: clamp(26px, 8vw, 32px); }
  .auth-shell .form-sub { margin-bottom: 24px; font-size: 14px; }
}
