    :root {
      --bg: #eef4fb;
      --bg-deep: #d7e6f7;
      --surface: rgba(255, 255, 255, 0.82);
      --surface-strong: #ffffff;
      --surface-soft: #f5f9ff;
      --text: #0d1b2a;
      --muted: #58708a;
      --line: rgba(41, 77, 115, 0.16);
      --primary: #0e4fa8;
      --primary-strong: #0a3f88;
      --primary-soft: rgba(14, 79, 168, 0.1);
      --accent: #23a6f0;
      --accent-soft: rgba(35, 166, 240, 0.12);
      --success: #1d8f5a;
      --success-soft: rgba(29, 143, 90, 0.12);
      --warning: #b7791f;
      --warning-soft: rgba(183, 121, 31, 0.12);
      --user: linear-gradient(135deg, #0e4fa8 0%, #1b75d0 100%);
      --shadow-lg: 0 28px 70px rgba(13, 27, 42, 0.12);
      --shadow-md: 0 16px 38px rgba(13, 27, 42, 0.08);
      --radius-xl: 30px;
      --radius-lg: 22px;
      --radius-md: 16px;
      --radius-sm: 12px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100dvh;
      color: var(--text);
      font-family: "Manrope", sans-serif;
      background:
        radial-gradient(circle at top left, rgba(35, 166, 240, 0.14), transparent 26%),
        radial-gradient(circle at 92% 12%, rgba(14, 79, 168, 0.18), transparent 18%),
        linear-gradient(180deg, #f6faff 0%, #eef4fb 46%, #e6eff9 100%);
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: radial-gradient(circle at center, black 42%, transparent 86%);
      opacity: 0.28;
    }

    .page {
      position: relative;
      max-width: 1240px;
      margin: 0 auto;
      padding: 26px 18px 34px;
      min-height: 100dvh;
      display: flex;
    }

    .shell {
      width: 100%;
      height: calc(100dvh - 60px);
      min-height: calc(100dvh - 60px);
      display: flex;
      flex-direction: column;
      border: 1px solid rgba(255, 255, 255, 0.5);
      background: rgba(255, 255, 255, 0.42);
      box-shadow: var(--shadow-lg);
      border-radius: 36px;
      backdrop-filter: blur(16px);
      overflow: hidden;
    }

    .topbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 18px;
      padding: 20px 24px;
      border-bottom: 1px solid rgba(41, 77, 115, 0.08);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.45));
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
    }

    .brand-logo {
      flex: 0 0 auto;
      width: 138px;
      height: 78px;
      padding: 10px;
      border-radius: 24px;
      display: grid;
      place-items: center;
      color: #fff;
      font-family: "Sora", sans-serif;
      font-size: 24px;
      font-weight: 800;
      background: rgba(255, 255, 255, 0.96);
      border: 1px solid rgba(41, 77, 115, 0.08);
      box-shadow: 0 18px 30px rgba(14, 79, 168, 0.14);
      overflow: hidden;
    }

    .brand-logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .brand-logo-fallback {
      display: none;
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: center;
    }

    .brand-copy h1,
    .hero-copy h2,
    .chat-title h3 {
      font-family: "Sora", sans-serif;
    }

    .brand-copy h1 {
      margin: 0;
      font-size: 22px;
      line-height: 1.05;
      letter-spacing: -0.03em;
    }

    .brand-copy p {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.4;
    }

    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .status-badge,
    .nav-link {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border-radius: 999px;
      padding: 11px 14px;
      text-decoration: none;
      font-size: 13px;
      font-weight: 700;
      transition: 0.2s ease;
    }

    .status-badge {
      color: var(--success);
      background: var(--success-soft);
      border: 1px solid rgba(29, 143, 90, 0.16);
    }

    .status-badge::before {
      content: "";
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: currentColor;
      box-shadow: 0 0 0 5px rgba(29, 143, 90, 0.12);
    }

    .nav-link {
      color: var(--primary);
      background: rgba(255, 255, 255, 0.75);
      border: 1px solid rgba(14, 79, 168, 0.1);
    }

    .nav-link:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-md);
      background: #fff;
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(360px, 0.94fr) minmax(400px, 1.08fr);
      gap: 22px;
      padding: 22px;
      align-items: stretch;
      flex: 1 1 auto;
      min-height: 0;
    }

    .info-card,
    .chat-card {
      background: var(--surface);
      border: 1px solid rgba(255, 255, 255, 0.62);
      border-radius: var(--radius-xl);
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow-md);
    }

    .info-card {
      padding: 28px;
      position: relative;
      overflow: auto;
      min-height: 0;
    }

    .info-card::after {
      content: "";
      position: absolute;
      inset: auto -60px -80px auto;
      width: 220px;
      height: 220px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(35, 166, 240, 0.18), transparent 68%);
      pointer-events: none;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border-radius: 999px;
      padding: 8px 12px;
      background: var(--accent-soft);
      color: var(--primary);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .hero-copy h2 {
      margin: 18px 0 12px;
      font-size: 42px;
      line-height: 1.02;
      letter-spacing: -0.05em;
      max-width: 11ch;
    }

    .hero-copy p {
      margin: 0;
      font-size: 14px;
      line-height: 1.75;
      color: var(--muted);
      max-width: 58ch;
    }

    .feature-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 22px;
    }

    .feature-pill {
      min-width: 0;
      border-radius: 18px;
      padding: 14px 14px 15px;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(41, 77, 115, 0.08);
    }

    .feature-pill strong {
      display: block;
      margin-bottom: 5px;
      font-family: "Sora", sans-serif;
      font-size: 14px;
      line-height: 1.2;
    }

    .feature-pill span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .insight-panel {
      margin-top: 20px;
      padding: 18px;
      border-radius: 24px;
      color: #fff;
      background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(140deg, #0a3f88 0%, #0f4fa8 52%, #1987d8 100%);
      box-shadow: 0 20px 34px rgba(14, 79, 168, 0.24);
    }

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

    .insight-top h3 {
      margin: 0;
      font-family: "Sora", sans-serif;
      font-size: 20px;
      line-height: 1.15;
    }

    .insight-top p {
      margin: 8px 0 0;
      max-width: 36ch;
      color: rgba(255, 255, 255, 0.84);
      font-size: 14px;
      line-height: 1.55;
    }

    .insight-tag {
      flex: 0 0 auto;
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 12px;
      font-weight: 800;
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .quick-grid {
      display: grid;
      gap: 12px;
      margin-top: 18px;
    }

    .quick-btn {
      position: relative;
      width: 100%;
      text-align: left;
      padding: 16px 18px 16px 54px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      color: #fff;
      background: rgba(255, 255, 255, 0.1);
      cursor: pointer;
      transition: 0.2s ease;
      overflow: hidden;
    }

    .quick-btn::before {
      content: attr(data-icon);
      position: absolute;
      left: 18px;
      top: 15px;
      width: 24px;
      height: 24px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.16);
      font-size: 13px;
      font-weight: 700;
    }

    .quick-btn:hover {
      transform: translateY(-1px);
      background: rgba(255, 255, 255, 0.16);
      box-shadow: 0 16px 24px rgba(6, 33, 69, 0.16);
    }

    .quick-btn strong {
      display: block;
      margin-bottom: 4px;
      font-size: 15px;
    }

    .quick-btn span {
      color: rgba(255, 255, 255, 0.82);
      font-size: 13px;
      line-height: 1.45;
    }

    .trust-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 16px;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 18px;
    }

    .contact-card {
      min-width: 0;
      padding: 14px 15px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.82);
      border: 1px solid rgba(41, 77, 115, 0.09);
    }

    .contact-card strong {
      display: block;
      margin-bottom: 5px;
      font-size: 13px;
      font-family: "Sora", sans-serif;
    }

    .contact-card span,
    .contact-card a {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      text-decoration: none;
      word-break: break-word;
    }

    .trust-card {
      padding: 14px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.78);
      border: 1px solid rgba(41, 77, 115, 0.08);
    }

    .trust-card strong {
      display: block;
      margin-bottom: 4px;
      font-size: 13px;
      font-family: "Sora", sans-serif;
    }

    .trust-card span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .chat-card {
      display: flex;
      flex-direction: column;
      min-height: 0;
      height: 100%;
      overflow: hidden;
    }

    .chat-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 18px;
      padding: 20px 22px 18px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 251, 255, 0.65));
    }

    .chat-title {
      display: flex;
      align-items: flex-start;
      gap: 13px;
      min-width: 0;
    }

    .chat-title-badge {
      flex: 0 0 auto;
      width: 46px;
      height: 46px;
      border-radius: 16px;
      color: #fff;
      display: grid;
      place-items: center;
      font-family: "Sora", sans-serif;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.08em;
      background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 32%),
        linear-gradient(135deg, #0a3f88 0%, #0f4fa8 58%, #24a0ed 100%);
      box-shadow: 0 16px 28px rgba(14, 79, 168, 0.2);
    }

    .chat-title h3 {
      margin: 0;
      font-size: 19px;
      line-height: 1.15;
      letter-spacing: -0.03em;
    }

    .chat-title p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
      max-width: 44ch;
    }

    .chat-header-side {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 10px;
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border-radius: 999px;
      padding: 8px 12px;
      background: var(--success-soft);
      color: var(--success);
      font-size: 12px;
      font-weight: 800;
      border: 1px solid rgba(29, 143, 90, 0.14);
    }

    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: currentColor;
    }

    .chat-tools {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .session-chip {
      justify-content: center;
      min-height: 38px;
    }

    .ghost-btn {
      border: 1px solid rgba(41, 77, 115, 0.12);
      background: rgba(255, 255, 255, 0.74);
      color: var(--text);
      border-radius: 999px;
      padding: 9px 12px;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .ghost-btn:hover {
      border-color: rgba(14, 79, 168, 0.2);
      color: var(--primary);
      background: #fff;
    }

    .chat-meta {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      padding: 12px 18px;
      border-bottom: 1px solid rgba(41, 77, 115, 0.08);
      background: rgba(244, 249, 255, 0.7);
    }

    .meta-chip {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      border-radius: 999px;
      padding: 8px 11px;
      font-size: 12px;
      font-weight: 700;
      color: var(--muted);
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(41, 77, 115, 0.08);
    }

    .meta-chip strong {
      color: var(--text);
      font-weight: 800;
    }

    .chat-messages {
      position: relative;
      flex: 1 1 auto;
      min-height: 0;
      padding: 22px 20px 16px;
      overflow-y: auto;
      background:
        radial-gradient(circle at top right, rgba(35, 166, 240, 0.08), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
    }

    .msg {
      display: flex;
      margin-bottom: 14px;
      animation: rise 0.22s ease;
    }

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

    .msg.bot {
      justify-content: flex-start;
    }

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

    .bubble-wrap {
      display: flex;
      flex-direction: column;
      gap: 6px;
      max-width: 82%;
    }

    .msg.user .bubble-wrap {
      align-items: flex-end;
    }

    .msg-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--muted);
    }

    .msg.user .msg-label {
      justify-content: flex-end;
    }

    .bubble {
      border-radius: 22px;
      padding: 14px 16px;
      font-size: 15px;
      line-height: 1.7;
      white-space: pre-wrap;
      word-break: break-word;
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    }

    .msg.bot .bubble {
      background: var(--surface-strong);
      border: 1px solid rgba(41, 77, 115, 0.1);
      color: var(--text);
      border-top-left-radius: 10px;
    }

    .msg.user .bubble {
      background: var(--user);
      color: #fff;
      border: none;
      border-top-right-radius: 10px;
    }

    .typing {
      display: inline-flex;
      gap: 6px;
      align-items: center;
      padding: 12px 14px;
      border-radius: 18px;
      background: #fff;
      border: 1px solid rgba(41, 77, 115, 0.1);
      box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
    }

    .typing span {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #c4ced9;
      animation: bounce 1.2s infinite ease-in-out;
    }

    .typing span:nth-child(2) {
      animation-delay: 0.15s;
    }

    .typing span:nth-child(3) {
      animation-delay: 0.3s;
    }

    @keyframes bounce {
      0%, 80%, 100% {
        transform: scale(0.72);
        opacity: 0.5;
      }
      40% {
        transform: scale(1);
        opacity: 1;
      }
    }

    .chat-footer {
      padding: 16px 16px 18px;
      border-top: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(252, 254, 255, 0.94));
    }

    .chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 14px;
    }

    .chip {
      border: 1px solid rgba(41, 77, 115, 0.12);
      background: rgba(255, 255, 255, 0.88);
      color: var(--text);
      border-radius: 999px;
      padding: 10px 13px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .chip:hover {
      color: var(--primary);
      border-color: rgba(14, 79, 168, 0.22);
      background: #fff;
      transform: translateY(-1px);
    }

    .composer {
      padding: 12px;
      border-radius: 24px;
      background: rgba(248, 251, 255, 0.96);
      border: 1px solid rgba(41, 77, 115, 0.1);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
    }

    .input-wrap {
      display: flex;
      align-items: flex-end;
      gap: 12px;
    }

    .input-box {
      flex: 1;
      border: none;
      outline: none;
      resize: none;
      min-height: 60px;
      max-height: 180px;
      padding: 10px 12px 0;
      color: var(--text);
      background: transparent;
      font: inherit;
      line-height: 1.6;
    }

    .input-box::placeholder {
      color: #7890a9;
    }

    .composer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 8px 6px 2px;
    }

    .composer-note {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .send-btn {
      border: none;
      min-width: 118px;
      padding: 13px 18px;
      border-radius: 16px;
      cursor: pointer;
      color: #fff;
      font-family: "Sora", sans-serif;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.02em;
      background: linear-gradient(135deg, #0e4fa8 0%, #1476cf 100%);
      box-shadow: 0 16px 24px rgba(14, 79, 168, 0.24);
      transition: 0.18s ease;
    }

    .send-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 18px 28px rgba(14, 79, 168, 0.28);
    }

    .send-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .footer-note {
      margin-top: 12px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
      text-align: center;
    }

    @media (max-width: 1080px) {
      html,
      body {
        min-height: 100dvh;
        overflow: hidden;
      }

      .page {
        padding: 0;
        max-width: none;
        min-height: 100dvh;
      }

      .shell {
        height: 100dvh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        border: none;
        box-shadow: none;
        border-radius: 0;
      }

      .topbar {
        display: none;
      }

      .brand-logo {
        width: 96px;
        height: 56px;
        border-radius: 18px;
      }

      .brand-copy h1 {
        font-size: 18px;
      }

      .brand-copy p {
        font-size: 13px;
      }

      .hero {
        grid-template-columns: 1fr;
        flex: 1 1 auto;
        min-height: 0;
        gap: 0;
        padding: 0;
      }

      .info-card {
        order: 2;
        display: none;
      }

      .chat-card {
        order: 1;
        flex: 1 1 auto;
        min-height: 100dvh;
        height: 100dvh;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.96);
      }

      .chat-messages {
        flex: 1 1 auto;
        min-height: 0;
        padding: 10px 10px 8px;
      }

      .chat-header {
        gap: 10px;
        padding: 10px 12px;
      }

      .chat-title {
        gap: 8px;
      }

      .chat-title-badge {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 11px;
      }

      .chat-title h3 {
        font-size: 16px;
      }

      .chat-title p {
        display: none;
      }

      .status-pill {
        padding: 7px 10px;
        font-size: 11px;
      }

      .chat-tools {
        width: 100%;
        justify-content: stretch;
      }

      .chat-tools > * {
        flex: 1 1 calc(50% - 4px);
      }

      .chat-tools .session-chip {
        flex-basis: 100%;
      }

      .chat-footer {
        padding: 8px 10px 10px;
      }

      .msg {
        margin-bottom: 10px;
      }

      .msg-label {
        display: none;
      }

      .bubble-wrap {
        max-width: 92%;
      }

      .bubble {
        padding: 12px 14px;
        font-size: 15px;
        line-height: 1.55;
      }

      .chip-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 8px;
      }

      .chip {
        width: 100%;
        padding: 9px 10px;
        font-size: 12px;
        text-align: center;
      }

      .composer {
        padding: 6px;
        border-radius: 16px;
      }

      .input-box {
        min-height: 42px;
        font-size: 16px;
        line-height: 1.45;
        padding: 6px 8px 0;
      }

      .send-btn {
        width: 100%;
        min-width: 0;
        padding: 11px 14px;
      }

      .composer-note,
      .footer-note {
        display: none;
      }
    }

    @media (max-width: 760px) {
      html,
      body {
        min-height: 100dvh;
        overflow: hidden;
      }

      .page {
        padding: 0;
        max-width: none;
        min-height: 100dvh;
      }

      .shell {
        border-radius: 0;
        min-height: 100dvh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        border: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.18);
      }

      .topbar,
      .hero {
        padding-left: 14px;
        padding-right: 14px;
      }

      .topbar {
        display: none;
      }

      .topbar-actions {
        width: 100%;
        justify-content: flex-start;
      }

      .hero-copy h2 {
        font-size: 34px;
        max-width: 14ch;
      }

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

      .brand-logo {
        width: 92px;
        height: 54px;
        border-radius: 18px;
      }

      .brand-copy h1 {
        font-size: 18px;
      }

      .brand-copy p {
        font-size: 13px;
      }

      .hero {
        flex: 1 1 auto;
        min-height: 0;
        gap: 10px;
        padding: 0;
      }

      .info-card,
      .chat-card {
        border-radius: 0;
      }

      .info-card {
        display: none;
      }

      .insight-panel {
        padding: 16px;
      }

      .insight-top {
        flex-direction: column;
      }

      .quick-btn {
        min-height: 84px;
      }

      .feature-strip,
      .trust-row,
      .contact-grid {
        grid-template-columns: 1fr;
      }

      .chat-header {
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
      }

      .chat-header-side {
        align-items: center;
      }

      .chat-title {
        gap: 8px;
        width: 100%;
        align-items: center;
      }

      .chat-title-badge {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 10px;
      }

      .chat-title h3 {
        font-size: 15px;
      }

      .chat-title p {
        display: none;
      }

      .status-pill {
        padding: 6px 9px;
        font-size: 10px;
      }

      .chat-tools {
        width: 100%;
        justify-content: stretch;
      }

      .chat-tools > * {
        flex: 1 1 calc(50% - 4px);
      }

      .chat-tools .session-chip {
        flex-basis: 100%;
      }

      .chat-meta {
        overflow-x: auto;
        white-space: nowrap;
      }

      .chat-card {
        flex: 1 1 auto;
        min-height: 100dvh;
        height: 100dvh;
        border: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.98);
      }

      .chat-messages {
        flex: 1 1 auto;
        min-height: 0;
        padding: 8px 8px 6px;
      }

      .bubble-wrap {
        max-width: 94%;
      }

      .msg {
        margin-bottom: 8px;
      }

      .msg-label {
        display: none;
      }

      .bubble {
        padding: 11px 12px;
        font-size: 14px;
        line-height: 1.5;
      }

      .input-wrap,
      .composer-bottom {
        flex-direction: column;
        align-items: stretch;
      }

      .chip-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 8px;
      }

      .chip {
        width: 100%;
        padding: 9px 10px;
        font-size: 12px;
      }

      .composer {
        padding: 6px;
        border-radius: 16px;
      }

      .input-box {
        min-height: 42px;
        font-size: 16px;
        line-height: 1.45;
        padding: 6px 8px 0;
      }

      .send-btn {
        width: 100%;
        min-width: 0;
        padding: 11px 14px;
      }

      .composer-note,
      .footer-note {
        display: none;
      }

      .footer-note {
        margin-top: 10px;
        margin-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
      }
    }

    @media (max-width: 560px) {
      body::before {
        opacity: 0.18;
      }

      .topbar {
        gap: 14px;
      }

      .topbar-actions > * {
        width: 100%;
        justify-content: center;
      }

      .contact-card,
      .trust-card,
      .feature-pill {
        padding: 13px;
      }

      .chat-header {
        padding: 8px 10px;
      }

      .chat-title {
        gap: 8px;
      }

      .chat-title-badge {
        width: 28px;
        height: 28px;
        border-radius: 9px;
        font-size: 9px;
      }

      .chat-title h3 {
        font-size: 14px;
      }

      .status-pill {
        padding: 5px 8px;
        font-size: 10px;
      }

      .chat-messages {
        padding: 8px 6px 6px;
      }

      .bubble-wrap {
        max-width: 96%;
      }

      .bubble {
        padding: 10px 11px;
        border-radius: 18px;
        font-size: 14px;
      }

      .chat-footer {
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0));
      }

      .chip-row {
        gap: 6px;
      }

      .chip {
        padding: 8px 8px;
        font-size: 11px;
      }

      .composer {
        padding: 5px;
        border-radius: 14px;
      }

      .input-box {
        min-height: 38px;
        max-height: 120px;
        padding: 5px 7px 0;
      }

      .send-btn {
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 12px;
      }
    }
  
