﻿html {
        scroll-behavior: smooth;
      }

      :root {
        /* 配色方案：知行 - 大地与海洋 */
        --primary: #1a4d54; /* 深黛绿 - 沉稳 */
        --primary-light: #2c6e7a;
        --accent: #c28e5c; /* 古铜金 - 高级感强调色 */
        --accent-hover: #a67545;

        --sand-bg: #f5f2eb; /* 米白纸张色 */
        --map-line: rgba(26, 77, 84, 0.08); /* 地图纹理色 */

        --glass-bg: rgba(255, 255, 255, 0.75);
        --glass-border: rgba(255, 255, 255, 0.6);
        --glass-shadow: 0 8px 32px 0 rgba(26, 77, 84, 0.08);

        --text-main: #2c3e50;
        --text-serif: #1a4d54;
        --text-light: #7f8c8d;
        --text-muted: #64787d;
        --white: #ffffff;
        --paper: #fffdf9;
        --surface-soft: rgba(255, 252, 247, 0.88);
        --surface-strong: rgba(255, 255, 255, 0.96);
        --shadow-soft: 0 14px 35px rgba(19, 52, 57, 0.08);
        --shadow-strong: 0 24px 50px rgba(19, 52, 57, 0.12);
        --border-soft: rgba(26, 77, 84, 0.1);

        --radius-lg: 24px;
        --radius-md: 16px;
        --radius-sm: 8px;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-font-smoothing: antialiased;
      }

      ::selection {
        background: rgba(194, 142, 92, 0.24);
        color: var(--text-main);
      }

      body {
        font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", sans-serif;
        color: var(--text-main);
        height: 100vh;
        overflow: hidden;
        background-color: var(--sand-bg);
        /* 细微的纸张噪点纹理 */
        background-image:
          radial-gradient(circle at 12% 18%, rgba(194, 142, 92, 0.16), transparent 22%),
          radial-gradient(circle at 88% 14%, rgba(26, 77, 84, 0.12), transparent 24%),
          linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(245, 242, 235, 0.86)),
          url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
      }
      body.intro-active {
        overflow: hidden;
      }

      button:focus-visible,
      input:focus-visible,
      textarea:focus-visible,
      summary:focus-visible {
        outline: 3px solid rgba(194, 142, 92, 0.38);
        outline-offset: 2px;
      }

      .intro-overlay {
        position: fixed;
        inset: 0;
        z-index: 140;
        cursor: pointer;
        overflow: hidden;
        background: #09171b;
        transition: opacity 0.6s ease, visibility 0.6s ease;
      }
      .intro-overlay.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
      }
      .intro-slider,
      .intro-overlay-shade {
        position: absolute;
        inset: 0;
      }
      .intro-slide {
        position: absolute;
        inset: 0;
        background-color: #112227;
        background-position: center;
        background-size: cover;
        opacity: 0;
        transform: scale(1.04);
        animation: scenicHeroSwap 18s infinite;
      }
      .intro-slide-one {
        background-image:
          linear-gradient(180deg, rgba(5, 16, 20, 0.1), rgba(5, 16, 20, 0.16)),
          url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=72");
        animation-delay: 0s;
      }
      .intro-slide-two {
        animation-delay: 6s;
      }
      .intro-slide-three {
        animation-delay: 12s;
      }
      .intro-secondary-images-ready .intro-slide-two {
        background-image:
          linear-gradient(180deg, rgba(5, 16, 20, 0.12), rgba(5, 16, 20, 0.18)),
          url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=72");
      }
      .intro-secondary-images-ready .intro-slide-three {
        background-image:
          linear-gradient(180deg, rgba(5, 16, 20, 0.12), rgba(5, 16, 20, 0.18)),
          url("https://images.unsplash.com/photo-1499856871958-5b9627545d1a?auto=format&fit=crop&w=1600&q=72");
      }
      .intro-overlay-shade {
        background:
          linear-gradient(180deg, rgba(7, 18, 22, 0.28), rgba(7, 18, 22, 0.72)),
          radial-gradient(circle at 20% 24%, rgba(255, 214, 166, 0.24), transparent 26%),
          radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), transparent 18%);
      }
      .intro-copy {
        position: relative;
        z-index: 1;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: clamp(28px, 5vw, 72px);
        color: rgba(255, 252, 245, 0.98);
      }
      .intro-kicker {
        display: inline-flex;
        width: fit-content;
        padding: 10px 16px;
        border-radius: 999px;
        margin-bottom: 22px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(14px);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 1.4px;
      }
      .intro-copy h1 {
        max-width: 980px;
        font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
        font-size: clamp(40px, 6vw, 74px);
        line-height: 1.12;
        letter-spacing: 1px;
        text-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
      }
      .intro-copy p {
        max-width: 720px;
        margin-top: 18px;
        color: rgba(255, 247, 234, 0.9);
        font-size: clamp(16px, 2vw, 22px);
        line-height: 1.8;
        text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
      }
      .intro-enter-hint {
        margin-top: 28px;
      }
      .intro-enter-hint span {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 18px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 247, 234, 0.98);
        font-size: 14px;
        font-weight: 700;
        backdrop-filter: blur(14px);
        box-shadow: 0 18px 36px rgba(5, 16, 20, 0.2);
        animation: introPulse 2.6s ease-in-out infinite;
      }

      /* === 背景装饰元素 === */

      /* 1. 等高线地图背景 */
      .bg-map-lines {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 800 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231A4D54' stroke-width='1' stroke-opacity='0.08'%3E%3Cpath d='M0 300 C 200 400 400 200 800 350' /%3E%3Cpath d='M0 320 C 220 420 420 220 800 370' /%3E%3Cpath d='M0 340 C 240 440 440 240 800 390' /%3E%3Cpath d='M0 100 C 300 0 500 150 800 50' /%3E%3Cpath d='M0 120 C 320 20 520 170 800 70' /%3E%3Cpath d='M-100 200 C 200 100 600 300 900 200' stroke-dasharray='10,10' stroke-opacity='0.05' /%3E%3C/g%3E%3C/svg%3E");
        background-size: cover;
        pointer-events: none;
        z-index: 0;
      }

      /* 2. 飞行动画 */
      .plane-container {
        position: fixed;
        top: 20%;
        left: -100px;
        z-index: 0;
        opacity: 0.8;
        animation: flyAcross 60s linear infinite;
      }

      .plane-icon {
        font-size: 24px;
        color: var(--accent);
        transform: rotate(15deg);
      }

      .plane-trail {
        position: absolute;
        top: 12px;
        right: 20px;
        width: 100px;
        height: 2px;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(194, 142, 92, 0.3)
        );
      }

      @keyframes flyAcross {
        0% {
          transform: translate(-100px, 0);
        }
        100% {
          transform: translate(calc(100vw + 200px), -100px);
        }
      }

      /* 主布局 */
      .app-container {
        position: relative;
        z-index: 1;
        display: flex;
        height: 100vh;
        padding: 24px;
        gap: 24px;
        max-width: 1600px;
        margin: 0 auto;
        min-height: 0;
      }

      /* 玻璃拟态卡片通用样式 */
      .glass-card {
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 251, 246, 0.82));
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        border: 1px solid rgba(255, 255, 255, 0.72);
        box-shadow: var(--shadow-soft);
      }

      /* === 登录/注册 === */
      .auth-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(26, 77, 84, 0.3);
        backdrop-filter: blur(8px);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100;
        transition: opacity 0.3s ease;
      }

      .auth-overlay.hidden {
        display: none;
      }

      .auth-card {
        width: 430px;
        padding: 40px;
        border-radius: var(--radius-lg);
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 246, 0.94));
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.78);
        box-shadow: var(--shadow-strong);
      }

      /* 邮票装饰 */
      .stamp-decoration {
        position: absolute;
        top: -20px;
        right: -20px;
        width: 100px;
        height: 100px;
        border: 2px dashed var(--accent);
        border-radius: 50%;
        opacity: 0.2;
        transform: rotate(20deg);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: "Georgia", "Times New Roman", "Noto Serif SC", serif;
        color: var(--accent);
        font-weight: bold;
        pointer-events: none;
      }

      .auth-header {
        text-align: center;
        margin-bottom: 30px;
      }

      .auth-logo {
        font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
        font-size: 36px;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 8px;
        letter-spacing: 4px;
      }

      .auth-logo i {
        font-size: 24px;
        color: var(--accent);
        margin-right: 8px;
      }

      .auth-subtitle {
        font-family: "Georgia", "Times New Roman", "Noto Serif SC", serif;
        color: var(--text-light);
        font-style: normal;
        line-height: 1.7;
        max-width: 280px;
        margin: 0 auto;
      }
      .auth-hero-scene {
        position: relative;
        margin: 22px 0 18px;
        min-height: 240px;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid rgba(26, 77, 84, 0.08);
        box-shadow: 0 16px 34px rgba(26, 77, 84, 0.12);
        background: #112227;
      }
      .auth-hero-slider,
      .auth-hero-overlay {
        position: absolute;
        inset: 0;
      }
      .auth-hero-slide {
        position: absolute;
        inset: 0;
        background-color: #112227;
        background-position: center;
        background-size: cover;
        opacity: 0;
        transform: scale(1.08);
        animation: scenicHeroSwap 18s infinite;
      }
      .auth-hero-slide-one {
        animation-delay: 0s;
      }
      .auth-hero-slide-two {
        animation-delay: 6s;
      }
      .auth-hero-slide-three {
        animation-delay: 12s;
      }
      .auth-hero-images-ready .auth-hero-slide-one {
        background-image:
          linear-gradient(180deg, rgba(13, 29, 34, 0.08), rgba(10, 21, 25, 0.2)),
          url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1000&q=72");
      }
      .auth-hero-images-ready .auth-hero-slide-two {
        background-image:
          linear-gradient(180deg, rgba(13, 29, 34, 0.08), rgba(10, 21, 25, 0.2)),
          url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1000&q=72");
      }
      .auth-hero-images-ready .auth-hero-slide-three {
        background-image:
          linear-gradient(180deg, rgba(13, 29, 34, 0.08), rgba(10, 21, 25, 0.2)),
          url("https://images.unsplash.com/photo-1499856871958-5b9627545d1a?auto=format&fit=crop&w=1000&q=72");
      }
      .auth-hero-overlay {
        background:
          linear-gradient(180deg, rgba(12, 23, 27, 0.14), rgba(10, 21, 25, 0.74)),
          linear-gradient(90deg, rgba(11, 26, 31, 0.82), rgba(11, 26, 31, 0.22) 58%, rgba(11, 26, 31, 0.62));
      }
      .auth-hero-caption {
        position: absolute;
        left: 22px;
        right: 22px;
        bottom: 22px;
        z-index: 1;
        display: grid;
        gap: 8px;
        max-width: 320px;
        color: rgba(255, 255, 255, 0.96);
        font-size: 13px;
        line-height: 1.7;
      }
      .auth-hero-kicker {
        display: inline-flex;
        width: fit-content;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 247, 234, 0.94);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
      }
      .auth-hero-caption strong {
        display: block;
        font-size: 24px;
        line-height: 1.28;
        color: #fffaf1;
      }
      .auth-hero-caption p {
        margin: 0;
        color: rgba(245, 244, 240, 0.88);
      }
      .auth-highlights {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 22px 0 18px;
      }
      .auth-highlight-item {
        padding: 12px 10px;
        border-radius: 14px;
        background: rgba(26, 77, 84, 0.06);
        border: 1px solid rgba(26, 77, 84, 0.08);
        text-align: center;
      }
      .auth-highlight-item i {
        color: var(--accent);
        margin-bottom: 8px;
        font-size: 14px;
      }
      .auth-highlight-item strong {
        display: block;
        color: var(--text-main);
        font-size: 13px;
        margin-bottom: 4px;
      }
      .auth-highlight-item span {
        display: block;
        color: var(--text-light);
        font-size: 11px;
        line-height: 1.5;
      }
      @keyframes scenicHeroSwap {
        0% {
          opacity: 0;
          transform: scale(1.08);
        }
        6%,
        28% {
          opacity: 1;
          transform: scale(1.12);
        }
        33%,
        100% {
          opacity: 0;
          transform: scale(1.16);
        }
      }
      @keyframes introPulse {
        0%,
        100% {
          transform: translateY(0);
          box-shadow: 0 18px 36px rgba(5, 16, 20, 0.2);
        }
        50% {
          transform: translateY(-3px);
          box-shadow: 0 22px 42px rgba(5, 16, 20, 0.28);
        }
      }
      .auth-service-hint {
        margin-top: 14px;
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 12px;
        line-height: 1.6;
        background: rgba(26, 77, 84, 0.06);
        color: var(--text-light);
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .auth-service-hint.loading {
        color: #9a6a2b;
        background: rgba(194, 142, 92, 0.1);
        border-color: rgba(194, 142, 92, 0.18);
      }
      .auth-service-hint.error {
        color: #b42318;
        background: rgba(180, 35, 24, 0.08);
        border-color: rgba(180, 35, 24, 0.18);
      }
      .auth-service-hint.online {
        color: #17603a;
        background: rgba(23, 96, 58, 0.08);
        border-color: rgba(23, 96, 58, 0.18);
      }

      .auth-tabs {
        display: flex;
        border-bottom: 1px solid #ddd;
        margin-bottom: 24px;
      }

      .auth-tab {
        flex: 1;
        padding: 12px;
        background: none;
        border: none;
        font-size: 15px;
        color: var(--text-light);
        cursor: pointer;
        position: relative;
      }

      .auth-tab.active {
        color: var(--primary);
        font-weight: 600;
      }

      .auth-tab.active::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--primary);
      }

      .form-group {
        margin-bottom: 16px;
      }
      .form-group label {
        display: block;
        font-size: 12px;
        color: var(--text-light);
        margin-bottom: 7px;
      }

      .form-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px; /* 略微方正，更像传统表单 */
        background: #fff;
        transition: all 0.3s;
      }

      .form-group input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(26, 77, 84, 0.1);
      }
      .form-group.error input {
        border-color: rgba(180, 35, 24, 0.5);
        box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.08);
      }
      .field-error {
        min-height: 18px;
        margin-top: 6px;
        color: #b42318;
        font-size: 12px;
      }
      .auth-feedback {
        display: none;
        margin-top: 14px;
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 12px;
        line-height: 1.6;
      }
      .auth-feedback.show {
        display: block;
      }
      .auth-feedback.info {
        background: rgba(26, 77, 84, 0.06);
        color: var(--text-light);
        border: 1px solid rgba(26, 77, 84, 0.1);
      }
      .auth-feedback.error {
        background: rgba(180, 35, 24, 0.08);
        color: #b42318;
        border: 1px solid rgba(180, 35, 24, 0.16);
      }
      .auth-feedback.success {
        background: rgba(23, 96, 58, 0.08);
        color: #17603a;
        border: 1px solid rgba(23, 96, 58, 0.18);
      }
      .auth-form-meta {
        margin-top: 8px;
        font-size: 12px;
        color: var(--text-light);
        text-align: center;
      }

      .auth-btn {
        width: 100%;
        padding: 14px;
        background: var(--primary);
        color: var(--white);
        border: none;
        border-radius: 4px;
        font-size: 15px;
        cursor: pointer;
        transition: background 0.3s;
      }

      .auth-btn:hover {
        background: var(--primary-light);
      }
      .auth-btn:disabled {
        background: #b8c4c6;
        cursor: not-allowed;
      }

      .register-fields {
        display: none;
      }
      .register-fields.show {
        display: block;
      }

      .api-config {
        margin-top: 20px;
        text-align: center;
        font-size: 12px;
      }
      .api-config summary {
        cursor: pointer;
        color: var(--text-light);
      }
      .api-config input {
        margin-top: 5px;
        padding: 5px;
        width: 80%;
        text-align: center;
      }
      .api-config.hidden {
        display: none;
      }

      /* === 侧边栏 (类似护照/手账本) === */
      .sidebar {
        width: 280px;
        border-radius: var(--radius-lg);
        display: flex;
        flex-direction: column;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 251, 247, 0.84));
        backdrop-filter: blur(22px);
        border: 1px solid rgba(255, 255, 255, 0.76);
        box-shadow: var(--shadow-soft);
      }

      .sidebar-header {
        padding: 32px 24px 20px;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.1); /* 虚线像票据 */
      }

      .sidebar-logo-text {
        font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
        font-size: 24px;
        font-weight: 700;
        color: var(--primary);
        letter-spacing: 2px;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .user-passport {
        margin-top: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: #f0f4f5;
        border-radius: 8px;
        border: 1px solid #e0e6e8;
      }

      .user-avatar-frame {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--accent); /* 金色边框 */
      }

      .user-details h4 {
        font-size: 14px;
        color: var(--primary);
      }
      .user-details span {
        font-size: 11px;
        color: var(--text-light);
        text-transform: uppercase;
      }

      .new-chat-btn {
        margin: 20px 24px;
        padding: 12px;
        border: 1px solid rgba(26, 77, 84, 0.16);
        background: rgba(255, 255, 255, 0.75);
        color: var(--primary);
        border-radius: 999px;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-weight: 600;
        box-shadow: 0 8px 20px rgba(26, 77, 84, 0.04);
      }

      .new-chat-btn:hover {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(26, 77, 84, 0.12);
      }

      .conversations-list {
        flex: 1;
        overflow-y: auto;
        padding: 0 16px;
      }
      .conversations-summary {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 8px 12px;
      }
      .summary-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(26, 77, 84, 0.08);
        color: var(--primary);
        font-size: 11px;
        font-weight: 600;
      }

      .section-label {
        padding: 0 8px 8px;
        font-size: 11px;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      .conversation-item {
        padding: 14px;
        margin-bottom: 8px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s;
        border: 1px solid rgba(26, 77, 84, 0.08);
        background: rgba(255, 255, 255, 0.65);
      }

      .conversation-item:hover {
        background: var(--white);
        border-color: rgba(26, 77, 84, 0.16);
        transform: translateY(-1px);
      }

      .conversation-item.active {
        background: var(--white);
        border-color: rgba(194, 142, 92, 0.5);
        box-shadow: 0 8px 20px rgba(26, 77, 84, 0.08);
      }

      .conversation-title {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 6px;
      }
      .conversation-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 6px;
      }
      .conversation-actions {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
      }
      .conversation-title-text {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-main);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .conversation-badge {
        flex-shrink: 0;
        padding: 4px 8px;
        border-radius: 999px;
        background: rgba(194, 142, 92, 0.12);
        color: #9a6a2b;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.4px;
      }
      .conversation-delete-btn {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        border: 1px solid rgba(26, 77, 84, 0.08);
        background: rgba(255, 255, 255, 0.88);
        color: var(--text-light);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s ease, border-color 0.2s ease,
          color 0.2s ease, background 0.2s ease;
      }
      .conversation-delete-btn:hover {
        color: #b42318;
        border-color: rgba(180, 35, 24, 0.24);
        background: rgba(180, 35, 24, 0.08);
        transform: translateY(-1px);
      }

      .conversation-time {
        font-size: 11px;
        color: var(--text-light);
        display: flex;
        align-items: center;
        gap: 4px;
      }
      .conversation-subline {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 8px;
      }
      .conversation-detail {
        min-width: 0;
        font-size: 11px;
        color: var(--text-light);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .conversation-status {
        flex-shrink: 0;
        padding: 4px 8px;
        border-radius: 999px;
        background: rgba(26, 77, 84, 0.08);
        color: var(--primary);
        font-size: 10px;
        font-weight: 700;
      }
      .conversation-status.active {
        background: rgba(23, 96, 58, 0.1);
        color: #17603a;
      }
      .empty-conversations {
        padding: 24px 16px;
        text-align: center;
        color: var(--text-light);
        font-size: 12px;
        background: rgba(255, 255, 255, 0.42);
        border: 1px dashed rgba(26, 77, 84, 0.16);
        border-radius: 14px;
      }
      .empty-conversations-title {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 700;
        color: var(--primary);
      }
      .empty-conversations-text {
        margin: 0 0 14px;
        line-height: 1.7;
      }
      .empty-conversations-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 999px;
        border: 1px solid rgba(26, 77, 84, 0.16);
        background: rgba(255, 255, 255, 0.92);
        color: var(--primary);
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease,
          border-color 0.2s ease;
      }
      .empty-conversations-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(194, 142, 92, 0.45);
        box-shadow: 0 8px 18px rgba(26, 77, 84, 0.08);
      }
      .empty-conversations-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
      }

      .logout-btn {
        margin: 20px;
        padding: 10px;
        border: none;
        background: none;
        color: var(--text-light);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
      }
      .logout-btn:hover {
        color: #d63031;
      }

      /* === 聊天主窗口 === */
      .chat-main {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        border-radius: var(--radius-lg);
        overflow: hidden;
        position: relative;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 252, 247, 0.82));
      }

      /* 聊天背景水印 - 地球仪 */
      .chat-watermark {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 300px;
        color: var(--primary);
        opacity: 0.03;
        pointer-events: none;
        z-index: -1;
      }

      .chat-header {
        padding: 20px 32px;
        background: rgba(255, 255, 255, 0.82);
        border-bottom: 1px solid rgba(26, 77, 84, 0.06);
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
      }

      .chat-title-group {
        display: flex;
        align-items: center;
        gap: 16px;
      }
      .mobile-chat-back-btn {
        display: none;
        align-items: center;
        gap: 8px;
        border: 1px solid rgba(26, 77, 84, 0.12);
        background: rgba(255, 255, 255, 0.9);
        color: var(--primary);
        border-radius: 999px;
        padding: 9px 12px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        flex-shrink: 0;
      }
      .mobile-chat-back-btn:hover {
        border-color: rgba(194, 142, 92, 0.32);
        color: #87581b;
      }

      .chat-icon-wrapper {
        width: 48px;
        height: 48px;
        background: var(--primary);
        color: var(--accent);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        box-shadow: 0 4px 12px rgba(26, 77, 84, 0.2);
      }

      .chat-info h2 {
        font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
        font-size: 20px;
        color: var(--text-serif);
      }

      .chat-info h2.renameable {
        cursor: pointer;
      }

      .chat-info h2.renameable:hover {
        color: var(--primary);
      }

      .chat-info p {
        font-size: 12px;
        color: var(--text-light);
        margin-top: 2px;
      }
      .trip-overview {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
      }
      .overview-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 11px;
        border-radius: 999px;
        background: rgba(26, 77, 84, 0.08);
        color: var(--primary);
        font-size: 12px;
        font-weight: 500;
      }
      .overview-chip.primary {
        background: rgba(194, 142, 92, 0.14);
        color: #87581b;
      }

      .location-badge {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: var(--accent);
        font-weight: 600;
        background: rgba(194, 142, 92, 0.1);
        padding: 6px 12px;
        border-radius: 20px;
      }
      /* 治理台样式已拆分到 governance.css。 */

      .chat-messages {
        flex: 1;
        padding: 32px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 28px;
      }

      /* 消息气泡 - 模拟信纸/卡片 */
      .message {
        display: flex;
        gap: 16px;
        max-width: 800px;
        animation: slideIn 0.3s ease;
      }

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

      .message.user {
        flex-direction: row-reverse;
        align-self: flex-end;
      }

      .message-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 14px;
      }

      .message.user .message-avatar {
        background: var(--accent);
        color: white;
      }
      .message.assistant .message-avatar {
        background: var(--primary);
        color: white;
      }

      .message-content {
        padding: 16px 24px;
        border-radius: 16px;
        font-size: 15px;
        line-height: 1.8;
        box-shadow: 0 10px 24px rgba(19, 52, 57, 0.06);
        position: relative;
      }

      .message.assistant .message-content {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(26, 77, 84, 0.06);
        color: var(--text-main);
        border-top-left-radius: 2px;
        box-shadow: 0 16px 34px rgba(26, 77, 84, 0.08);
      }

      /* 装饰助手消息：像一张票据 */
      .message.assistant .message-content::before {
        content: "";
        position: absolute;
        left: 0;
        top: 15px;
        bottom: 15px;
        width: 3px;
        background: var(--accent);
        border-radius: 0 2px 2px 0;
        opacity: 0.5;
      }

      .message.user .message-content {
        background: linear-gradient(135deg, #1b4c55, #245d67);
        color: white;
        border-top-right-radius: 2px;
      }
      .message-text {
        white-space: normal;
        word-break: break-word;
      }
      .message.assistant .message-text {
        color: #223538;
      }
      .message.assistant .message-text p {
        margin: 0 0 12px;
      }
      .message.assistant .message-text p:last-child {
        margin-bottom: 0;
      }
      .message.assistant .message-text ul,
      .message.assistant .message-text ol {
        margin: 0 0 14px;
        padding-left: 20px;
      }
      .message.assistant .message-text li {
        margin-bottom: 6px;
      }
      .message.assistant .message-text strong {
        color: var(--text-serif);
      }
      .message.assistant .message-text h4 {
        margin: 4px 0 10px;
        font-size: 16px;
        color: var(--text-serif);
      }
      .message.assistant .message-text .inline-code {
        display: inline-block;
        padding: 1px 7px;
        border-radius: 999px;
        background: rgba(26, 77, 84, 0.08);
        color: var(--primary);
        font-size: 13px;
      }
      .message.assistant .message-text .travel-plan {
        display: grid;
        gap: 14px;
      }
      .message.assistant .message-text .journey-preview-board {
        display: grid;
        gap: 14px;
        padding: 18px;
        border-radius: 18px;
        background:
          linear-gradient(145deg, rgba(11, 40, 45, 0.96), rgba(20, 73, 81, 0.96));
        border: 1px solid rgba(194, 142, 92, 0.18);
        box-shadow: 0 18px 34px rgba(10, 31, 36, 0.18);
        color: rgba(255, 250, 240, 0.96);
      }
      .message.assistant .message-text .journey-preview-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
      }
      .message.assistant .message-text .journey-preview-title {
        display: grid;
        gap: 6px;
      }
      .message.assistant .message-text .journey-preview-title strong {
        font-size: 18px;
        color: #fffaf0;
      }
      .message.assistant .message-text .journey-preview-title span {
        color: rgba(245, 239, 230, 0.76);
        font-size: 13px;
        line-height: 1.7;
      }
      .message.assistant .message-text .journey-preview-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: rgba(255, 246, 231, 0.94);
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
      }
      .message.assistant .message-text .journey-atlas-panel {
        display: grid;
        grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
        gap: 16px;
        align-items: stretch;
      }
      .message.assistant .message-text .journey-atlas-copy {
        display: grid;
        gap: 10px;
        padding: 16px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
      }
      .message.assistant .message-text .journey-atlas-kicker {
        display: inline-flex;
        width: fit-content;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 243, 225, 0.92);
        font-size: 12px;
        font-weight: 700;
      }
      .message.assistant .message-text .journey-atlas-copy strong {
        color: #fffaf0;
        font-size: 22px;
        line-height: 1.3;
      }
      .message.assistant .message-text .journey-atlas-copy p {
        margin: 0;
        color: rgba(245, 239, 230, 0.82);
        font-size: 13px;
        line-height: 1.8;
      }
      .message.assistant .message-text .journey-atlas-canvas {
        position: relative;
        min-height: 280px;
        overflow: hidden;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background:
          radial-gradient(circle at 18% 18%, rgba(255, 216, 161, 0.24), transparent 20%),
          linear-gradient(180deg, rgba(174, 208, 216, 0.24), rgba(8, 34, 39, 0.08)),
          linear-gradient(145deg, rgba(17, 56, 61, 0.95), rgba(8, 31, 37, 0.98));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
      }
      .message.assistant .message-text .journey-atlas-grid,
      .message.assistant .message-text .journey-atlas-route {
        position: absolute;
        inset: 0;
      }
      .message.assistant .message-text .journey-atlas-grid {
        background-image:
          linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
        background-size: 34px 34px;
        mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent);
      }
      .message.assistant .message-text .journey-atlas-terrain {
        position: absolute;
        inset: auto 0 0;
        height: 46%;
        opacity: 0.95;
      }
      .message.assistant .message-text .journey-atlas-terrain.terrain-one {
        background:
          linear-gradient(180deg, rgba(118, 171, 176, 0.18), rgba(22, 67, 73, 0.7)),
          rgba(69, 119, 123, 0.75);
        clip-path: polygon(0 78%, 16% 44%, 32% 66%, 52% 36%, 70% 58%, 100% 28%, 100% 100%, 0 100%);
      }
      .message.assistant .message-text .journey-atlas-terrain.terrain-two {
        background:
          linear-gradient(180deg, rgba(46, 109, 116, 0.2), rgba(10, 36, 41, 0.82)),
          rgba(22, 67, 73, 0.9);
        clip-path: polygon(0 88%, 22% 60%, 38% 76%, 58% 50%, 78% 72%, 100% 42%, 100% 100%, 0 100%);
      }
      .message.assistant .message-text .journey-atlas-route {
        width: 100%;
        height: 100%;
        overflow: visible;
      }
      .message.assistant .message-text .journey-route-shadow {
        fill: none;
        stroke: rgba(0, 0, 0, 0.16);
        stroke-width: 2.8;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      .message.assistant .message-text .journey-route-line {
        fill: none;
        stroke: rgba(255, 232, 196, 0.92);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-dasharray: 1.6 2.4;
      }
      .message.assistant .message-text .journey-atlas-pin,
      .message.assistant .message-text .journey-atlas-scenic {
        position: absolute;
        transform: translate(-50%, -50%);
      }
      .message.assistant .message-text .journey-atlas-pin {
        display: grid;
        gap: 8px;
      }
      .message.assistant .message-text .journey-atlas-pin-dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #fffaf0;
        border: 3px solid rgba(194, 142, 92, 0.95);
        box-shadow: 0 0 0 10px rgba(255, 236, 210, 0.12);
      }
      .message.assistant .message-text .journey-atlas-label {
        min-width: 124px;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(10px);
      }
      .message.assistant .message-text .journey-atlas-label strong,
      .message.assistant .message-text .journey-atlas-label span {
        display: block;
      }
      .message.assistant .message-text .journey-atlas-label strong {
        color: #fffaf0;
        font-size: 12px;
        margin-bottom: 4px;
      }
      .message.assistant .message-text .journey-atlas-label span {
        color: rgba(245, 239, 230, 0.82);
        font-size: 11px;
        line-height: 1.55;
      }
      .message.assistant .message-text .journey-atlas-scenic {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: rgba(255, 248, 238, 0.92);
        font-size: 11px;
        line-height: 1.4;
        backdrop-filter: blur(10px);
      }
      .message.assistant .message-text .journey-atlas-scenic i {
        color: #ffd79e;
      }
      .message.assistant .message-text .journey-live-map-shell {
        display: grid;
        gap: 14px;
        grid-column: 1 / -1;
        padding: 18px;
        border-radius: 24px;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
      }
      .message.assistant .message-text .journey-live-map-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
      }
      .message.assistant .message-text .journey-live-map-head-copy {
        display: grid;
        gap: 6px;
        max-width: 460px;
      }
      .message.assistant .message-text .journey-live-map-head strong {
        color: rgba(255, 248, 236, 0.96);
        font-size: 16px;
      }
      .message.assistant .message-text .journey-live-map-head span {
        color: rgba(245, 239, 230, 0.76);
        font-size: 12px;
        line-height: 1.7;
      }
      .message.assistant .message-text .journey-live-map-styles {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
      }
      .message.assistant .message-text .journey-map-action-btn {
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 247, 233, 0.92);
        border-radius: 999px;
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
      }
      .message.assistant .message-text .journey-map-action-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(255, 255, 255, 0.24);
      }
      .message.assistant .message-text .journey-map-action-btn.active {
        background: rgba(255, 236, 210, 0.18);
        border-color: rgba(255, 218, 170, 0.32);
      }
      .message.assistant .message-text .journey-map-action-btn.secondary {
        color: rgba(255, 230, 198, 0.94);
      }
      .message.assistant .message-text .journey-map-day-btn,
      .message.assistant .message-text .journey-map-day-mode-btn {
        min-width: 78px;
        text-align: center;
      }
      .message.assistant .message-text .journey-map-style-btn,
      .message.assistant .message-text .journey-map-focus-btn,
      .message.assistant .message-text .journey-map-day-btn,
      .message.assistant .message-text .journey-map-day-mode-btn {
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.07);
        color: rgba(255, 247, 233, 0.88);
        border-radius: 999px;
        padding: 7px 11px;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
      }
      .message.assistant .message-text .journey-map-day-btn {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        min-width: 88px;
      }
      .message.assistant .message-text .journey-map-day-btn small {
        font-size: 10px;
        font-weight: 600;
        color: rgba(255, 247, 233, 0.62);
      }
      .message.assistant .message-text .journey-map-style-btn.active,
      .message.assistant .message-text .journey-map-focus-btn.active,
      .message.assistant .message-text .journey-map-day-btn.active,
      .message.assistant .message-text .journey-map-day-mode-btn.active {
        background: rgba(255, 236, 210, 0.16);
        border-color: rgba(255, 218, 170, 0.28);
      }
      .message.assistant .message-text .journey-map-day-btn.disabled {
        opacity: 0.45;
        cursor: not-allowed;
      }
      .message.assistant .message-text .journey-live-map-shell-body {
        display: grid;
        grid-template-columns: minmax(0, 1.65fr) 260px;
        gap: 14px;
        align-items: stretch;
      }
      .message.assistant .message-text .journey-live-map {
        position: relative;
        min-height: 280px;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.08);
      }
      .message.assistant .message-text .journey-live-map-aside {
        display: grid;
        gap: 10px;
      }
      .message.assistant .message-text .journey-live-map-aside-card {
        display: grid;
        gap: 8px;
        padding: 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
      }
      .message.assistant .message-text .journey-live-map-aside-card.compact {
        gap: 10px;
      }
      .message.assistant .message-text .journey-live-map-aside-kicker {
        color: rgba(255, 240, 219, 0.82);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.4px;
      }
      .message.assistant .message-text .journey-live-map-aside-card strong {
        color: #fffaf0;
        font-size: 14px;
        line-height: 1.55;
      }
      .message.assistant .message-text .journey-live-map-aside-card p {
        margin: 0;
        color: rgba(244, 239, 231, 0.8);
        font-size: 12px;
        line-height: 1.75;
      }
      .message.assistant .message-text .journey-live-day-legend {
        display: grid;
        gap: 8px;
      }
      .message.assistant .message-text .journey-live-day-legend-item {
        display: grid;
        gap: 5px;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
      }
      .message.assistant .message-text .journey-live-day-legend-label {
        color: rgba(255, 235, 206, 0.92);
        font-size: 11px;
        font-weight: 700;
      }
      .message.assistant .message-text .journey-live-day-legend-item strong {
        color: rgba(255, 248, 236, 0.92);
        font-size: 12px;
        line-height: 1.6;
      }
      .message.assistant .message-text .journey-live-map-aside-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .message.assistant .message-text .journey-live-map-aside-tags span {
        display: inline-flex;
        align-items: center;
        padding: 7px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 248, 236, 0.9);
        font-size: 11px;
      }
      .message.assistant .message-text .journey-live-map-state {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        text-align: center;
        color: #294d52;
        font-size: 13px;
        line-height: 1.8;
        background: rgba(255, 255, 255, 0.78);
      }
      .message.assistant .message-text .journey-live-map-state.error {
        color: #7a341d;
        background: rgba(255, 247, 240, 0.9);
      }
      .message.assistant .message-text .journey-live-map--static .journey-live-map-state {
        position: relative;
        min-height: 260px;
      }
      .message.assistant .message-text .journey-live-map-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: rgba(255, 247, 233, 0.82);
        font-size: 12px;
      }
      .message.assistant .message-text .journey-live-map-meta-label {
        color: rgba(245, 239, 230, 0.62);
      }
      .message.assistant .message-text .journey-live-map-meta-value {
        color: #f9f2e8;
        font-weight: 700;
      }
      .message.assistant .message-text .journey-map-studio {
        display: grid;
        gap: 14px;
      }
      .message.assistant .message-text .journey-map-studio-brief {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
      }
      .message.assistant .message-text .journey-map-studio-brief-item {
        display: grid;
        gap: 6px;
        padding: 12px 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
      }
      .message.assistant .message-text .journey-map-studio-brief-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: rgba(255, 240, 219, 0.82);
        font-size: 11px;
        font-weight: 700;
      }
      .message.assistant .message-text .journey-map-studio-brief-item strong {
        color: #fffaf0;
        font-size: 14px;
        line-height: 1.55;
      }
      .message.assistant .message-text .journey-live-map-shell--studio {
        gap: 16px;
      }
      .message.assistant .message-text .journey-live-map-shell--studio .journey-live-map-head {
        gap: 14px;
      }
      .message.assistant .message-text .journey-map-shell-kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: fit-content;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 241, 222, 0.9);
        font-size: 11px;
        font-weight: 700;
      }
      .message.assistant .message-text .journey-live-map-shell-body--studio {
        grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
        align-items: stretch;
      }
      .message.assistant .message-text .journey-map-sidebar {
        display: grid;
        gap: 12px;
      }
      .message.assistant .message-text .journey-map-sidebar > .journey-map-sidebar-card:nth-child(2) {
        display: none;
      }
      .message.assistant .message-text .journey-map-sidebar-card {
        display: grid;
        gap: 10px;
        padding: 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
      }
      .message.assistant .message-text .journey-map-sidebar-card.intro {
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
      }
      .message.assistant .message-text .journey-map-sidebar-routes {
        display: grid !important;
      }
      .message.assistant .message-text .journey-map-sidebar-day-list {
        display: grid;
        gap: 10px;
      }
      .message.assistant .message-text .journey-map-sidebar-day-card {
        display: grid;
        gap: 8px;
        padding: 10px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.06);
      }
      .message.assistant .message-text .journey-map-sidebar-day-card.active,
      .message.assistant .message-text .journey-map-sidebar-day-card:has(.journey-map-day-btn.active) {
        border-color: rgba(255, 218, 170, 0.36);
        background: rgba(255, 255, 255, 0.12);
      }
      .message.assistant .message-text .journey-map-sidebar-day-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: stretch;
      }
      .message.assistant .message-text .journey-map-sidebar-day-head .journey-map-day-btn {
        justify-content: flex-start;
        min-width: 0;
        text-align: left;
      }
      .message.assistant .message-text .journey-map-route-reference-btn {
        padding-inline: 11px;
        white-space: nowrap;
        background: rgba(255, 240, 219, 0.14);
      }
      .message.assistant .message-text .journey-map-sidebar-place-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
      }
      .message.assistant .message-text .journey-map-sidebar-place-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        max-width: 100%;
        padding: 5px 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 248, 236, 0.9);
        cursor: pointer;
        font-size: 11px;
        line-height: 1.45;
        overflow-wrap: anywhere;
      }
      .message.assistant .message-text .journey-map-sidebar-place-chip.active {
        background: rgba(255, 218, 170, 0.2);
        border-color: rgba(255, 218, 170, 0.34);
      }
      .message.assistant .message-text .journey-map-sidebar-place-chip span {
        width: 18px;
        min-height: 18px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        font-size: 10px;
      }
      .message.assistant .message-text .journey-map-sidebar-place-chip strong {
        min-width: 0;
        color: rgba(255, 248, 236, 0.9);
        font-size: 11px;
        line-height: 1.35;
      }
      .message.assistant .message-text .journey-map-sidebar-muted {
        margin: 0;
        color: rgba(244, 239, 231, 0.72);
        font-size: 12px;
        line-height: 1.7;
      }
      .message.assistant .message-text .journey-map-sidebar-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }
      .message.assistant .message-text .journey-map-sidebar-head span {
        color: rgba(255, 240, 219, 0.78);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.3px;
      }
      .message.assistant .message-text .journey-map-sidebar-head strong {
        color: rgba(255, 248, 236, 0.92);
        font-size: 12px;
      }
      .message.assistant .message-text .journey-map-sidebar-copy {
        display: grid;
        gap: 8px;
      }
      .message.assistant .message-text .journey-map-sidebar-copy strong {
        color: #fffaf0;
        font-size: 18px;
        line-height: 1.35;
      }
      .message.assistant .message-text .journey-map-sidebar-copy p {
        margin: 0;
        color: rgba(244, 239, 231, 0.8);
        font-size: 12px;
        line-height: 1.75;
      }
      .message.assistant .message-text .journey-map-day-insight-copy {
        margin: 0;
        color: rgba(244, 239, 231, 0.82);
        font-size: 12px;
        line-height: 1.75;
      }
      .message.assistant .message-text .journey-map-day-insight-points {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 8px;
      }
      .message.assistant .message-text .journey-map-day-insight-points li {
        display: block;
        padding: 0;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
      }
      .message.assistant .message-text .journey-map-day-insight-points li span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 28px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 241, 222, 0.88);
        font-size: 11px;
        font-weight: 700;
      }
      .message.assistant .message-text .journey-map-day-insight-points li.highlight span {
        background: rgba(255, 218, 170, 0.18);
        color: rgba(255, 236, 208, 0.96);
      }
      .message.assistant .message-text .journey-map-day-insight-points li strong {
        color: rgba(255, 248, 236, 0.94);
        font-size: 12px;
        line-height: 1.6;
      }
      .message.assistant .message-text .journey-map-route-list {
        display: grid;
        gap: 10px;
      }
      .message.assistant .message-text .journey-map-route-stop {
        display: grid;
        gap: 8px;
        width: 100%;
        text-align: left;
        padding: 12px 13px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 248, 236, 0.92);
      }
      .message.assistant .message-text .journey-map-stage-stop--inline {
        padding: 10px 12px;
        border-radius: 13px;
        border: 0;
        background: transparent;
        box-shadow: none;
      }
      .message.assistant .message-text .journey-map-stage-stop--inline:hover {
        border-color: transparent;
        background: rgba(255, 255, 255, 0.04);
      }
      .message.assistant .message-text .journey-map-route-stop:hover {
        border-color: rgba(255, 255, 255, 0.18);
      }
      .message.assistant .message-text .journey-map-route-stop-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .message.assistant .message-text .journey-map-route-stop-value {
        color: #fffaf0;
        font-size: 15px;
        line-height: 1.45;
      }
      .message.assistant .message-text .journey-map-route-stop-note {
        color: rgba(244, 239, 231, 0.76);
        font-size: 12px;
        line-height: 1.65;
      }
      .message.assistant .message-text .journey-map-highlight-list {
        display: grid;
        gap: 10px;
      }
      .message.assistant .message-text .journey-map-highlight-list .journey-highlight-card {
        width: 100%;
        text-align: left;
      }
      .message.assistant .message-text .journey-map-nearby-grid {
        display: grid;
        gap: 8px;
      }
      .message.assistant .message-text .journey-map-nearby-card {
        width: 100%;
        display: grid;
        gap: 4px;
        text-align: left;
        padding: 11px 12px;
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.1);
        color: #fffaf0;
        cursor: pointer;
      }
      .message.assistant .message-text .journey-map-nearby-card span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: rgba(255, 232, 200, 0.92);
        font-size: 11px;
        font-weight: 900;
      }
      .message.assistant .message-text .journey-map-nearby-card strong {
        color: #fffaf0;
        font-size: 13px;
        line-height: 1.35;
      }
      .message.assistant .message-text .journey-map-inline-link {
        color: rgba(255, 240, 219, 0.82);
        font-size: 11px;
        font-weight: 700;
      }
      .message.assistant .message-text .journey-map-stage {
        display: grid;
        gap: 12px;
        min-width: 0;
        position: relative;
      }
      .message.assistant .message-text .journey-map-title-pill {
        position: absolute;
        top: 14px;
        left: 50%;
        z-index: 501;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        max-width: min(420px, calc(100% - 240px));
        min-height: 42px;
        padding: 8px 14px;
        border: 1px solid rgba(26, 77, 84, 0.12);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: #12343a;
        box-shadow: 0 14px 30px rgba(18, 52, 58, 0.14);
        backdrop-filter: blur(14px);
        transform: translateX(-50%);
        pointer-events: none;
      }
      .message.assistant .message-text .journey-map-title-pill strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
        line-height: 1.2;
      }
      .message.assistant .message-text .journey-map-title-pill span {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        min-height: 26px;
        padding: 0 9px;
        border-radius: 999px;
        background: rgba(20, 184, 166, 0.12);
        color: #0f766e;
        font-size: 11px;
        font-weight: 900;
      }
      .message.assistant .message-text .journey-map-floating-group {
        width: fit-content;
        max-width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 16px;
        background: rgba(10, 34, 38, 0.74);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 10px 24px rgba(6, 18, 20, 0.2);
        backdrop-filter: blur(14px);
        pointer-events: auto;
      }
      .message.assistant .message-text .journey-map-floating-group--days {
        max-width: min(100%, 720px);
      }
      .message.assistant .message-text .journey-map-floating-label {
        flex-shrink: 0;
        color: rgba(255, 240, 219, 0.7);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.42px;
      }
      .message.assistant .message-text .journey-map-floating-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .message.assistant .message-text .journey-live-map-shell--studio .journey-live-map {
        min-height: 540px;
      }
      .message.assistant .message-text .journey-live-map-footer {
        display: grid;
        gap: 12px;
      }
      .message.assistant .message-text .journey-map-stage-stop {
        display: grid;
        gap: 6px;
        width: 100%;
        text-align: left;
        padding: 12px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 248, 236, 0.92);
      }
      .message.assistant .message-text .journey-map-stage-stop:hover {
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
      }
      .message.assistant .message-text .journey-map-stage-stop span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        min-height: 28px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 241, 222, 0.9);
        font-size: 11px;
        font-weight: 700;
      }
      .message.assistant .message-text .journey-map-stage-stop strong {
        color: #fffaf0;
        font-size: 13px;
        line-height: 1.55;
      }
      .message.assistant .message-text .journey-map-stage-stop small {
        color: rgba(244, 239, 231, 0.72);
        font-size: 11px;
        line-height: 1.5;
      }
      .message.assistant .message-text .journey-map-focus-rail {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .message.assistant .message-text .journey-live-map-footer .journey-map-focus-rail {
        display: none;
      }
      .message.assistant .message-text .journey-poi-bottom-sheet {
        position: absolute;
        left: 50%;
        bottom: 16px;
        z-index: 540;
        width: min(540px, calc(100% - 32px));
        max-height: min(46%, 320px);
        overflow: auto;
        display: grid;
        gap: 10px;
        padding: 12px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(26, 77, 84, 0.12);
        box-shadow: 0 24px 46px rgba(13, 41, 48, 0.2);
        backdrop-filter: blur(16px);
        transform: translate(-50%, 16px);
        opacity: 0;
        transition:
          opacity 0.18s ease,
          transform 0.18s ease;
      }
      .message.assistant .message-text .journey-poi-bottom-sheet[hidden] {
        display: none;
      }
      .message.assistant .message-text .journey-poi-bottom-sheet.show {
        transform: translate(-50%, 0);
        opacity: 1;
      }
      .message.assistant .message-text .journey-poi-bottom-handle {
        justify-self: center;
        width: 52px;
        height: 5px;
        border-radius: 999px;
        background: rgba(26, 77, 84, 0.18);
      }
      .message.assistant .message-text .journey-poi-bottom-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(26, 77, 84, 0.12);
        border-radius: 50%;
        background: rgba(247, 250, 250, 0.95);
        color: #12343a;
        cursor: pointer;
      }
      .message.assistant .message-text .journey-poi-bottom-media {
        display: grid;
        place-items: center;
        min-height: 132px;
        margin: 0;
        border-radius: 16px;
        background:
          radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.32), transparent 28%),
          linear-gradient(135deg, #0f766e, #38bdf8);
        background-size: cover;
        background-position: center;
        overflow: hidden;
      }
      .message.assistant .message-text .journey-poi-bottom-media.has-image span {
        display: none;
      }
      .message.assistant .message-text .journey-poi-bottom-media span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
        border-radius: 999px;
        color: #fff;
        background: rgba(255, 255, 255, 0.22);
        font-size: 26px;
        font-weight: 900;
      }
      .message.assistant .message-text .journey-poi-bottom-content {
        display: grid;
        gap: 8px;
        padding-right: 34px;
      }
      .message.assistant .message-text .journey-poi-bottom-content small {
        color: #0f766e;
        font-size: 12px;
        font-weight: 800;
      }
      .message.assistant .message-text .journey-poi-bottom-content strong {
        color: #111827;
        font-size: 22px;
        line-height: 1.25;
      }
      .message.assistant .message-text .journey-poi-bottom-content p {
        margin: 0;
        color: #405d62;
        line-height: 1.65;
      }
      .message.assistant .message-text .journey-poi-bottom-meta,
      .message.assistant .message-text .journey-poi-bottom-proof,
      .message.assistant .message-text .journey-poi-bottom-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .message.assistant .message-text .journey-poi-bottom-meta span {
        padding: 6px 9px;
        border-radius: 999px;
        background: rgba(20, 184, 166, 0.12);
        color: #0f766e;
        font-size: 12px;
        font-weight: 800;
      }
      .message.assistant .message-text .journey-poi-bottom-proof span {
        padding: 6px 9px;
        border-radius: 999px;
        background: #f3f4f6;
        color: #4b5563;
        font-size: 12px;
        font-weight: 800;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .message.assistant .message-text .journey-poi-bottom-proof span.ready {
        background: rgba(240, 253, 250, 0.96);
        color: #0f766e;
      }
      .message.assistant .message-text .journey-poi-bottom-proof span.pending {
        background: #fffbeb;
        color: #92400e;
      }
      .message.assistant .message-text .journey-poi-bottom-content em {
        color: #6b7280;
        font-style: normal;
        line-height: 1.5;
      }
      .message.assistant .message-text .journey-poi-bottom-actions button {
        min-height: 32px;
        padding: 0 12px;
        border: 1px solid rgba(17, 24, 39, 0.12);
        border-radius: 999px;
        color: #0f766e;
        background: rgba(240, 253, 250, 0.92);
        cursor: pointer;
        font-weight: 800;
      }
      .message.assistant .message-text .journey-poi-bottom-actions button:hover {
        border-color: rgba(15, 118, 110, 0.28);
        background: #fff;
      }
      .journey-live-map .leaflet-control-zoom a {
        color: var(--primary);
      }
      .journey-live-map .leaflet-popup-content-wrapper,
      .journey-live-map .leaflet-popup-tip {
        background: rgba(255, 252, 247, 0.96);
        color: var(--text-main);
      }
      .journey-map-modal {
        position: fixed;
        inset: 0;
        z-index: 180;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 26px;
        background: rgba(7, 18, 22, 0.62);
        backdrop-filter: blur(14px);
      }
      .journey-map-modal.show {
        display: flex;
      }
      body.journey-map-modal-open {
        overflow: hidden;
      }
      .journey-map-modal-dialog {
        width: min(1100px, 100%);
        max-height: min(88vh, 880px);
        display: grid;
        gap: 16px;
        padding: 20px;
        border-radius: 28px;
        background: rgba(250, 248, 243, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.74);
        box-shadow: 0 26px 60px rgba(7, 18, 22, 0.24);
      }
      .journey-map-modal-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
      }
      .journey-map-modal-kicker {
        color: var(--accent);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        margin-bottom: 4px;
      }
      .journey-map-modal-title {
        color: var(--text-serif);
        font-size: 24px;
        line-height: 1.3;
      }
      .journey-map-modal-close {
        width: 42px;
        height: 42px;
        border: 1px solid rgba(26, 77, 84, 0.1);
        background: rgba(255, 255, 255, 0.88);
        color: var(--primary);
        border-radius: 50%;
        cursor: pointer;
      }
      .journey-live-map-modal-canvas {
        min-height: min(70vh, 680px);
        border-radius: 22px;
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .journey-live-marker {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f7f3ea;
        border: 2px solid #c28e5c;
        color: #1a4d54;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
        font-size: 11px;
        font-weight: 800;
      }
      .journey-live-marker.kind-highlight {
        border-color: #f0be76;
        background: #fff7ea;
        color: #b07a40;
      }
      .journey-live-marker.kind-recommendation {
        border-color: #14b8a6;
        background: rgba(240, 253, 250, 0.96);
        color: #0f766e;
      }
      .journey-live-marker.kind-day {
        width: 28px;
        height: 28px;
        border-width: 3px;
        background: #12292f;
        color: var(--journey-day-color, #18b6a4);
        box-shadow:
          0 0 0 4px rgba(255, 255, 255, 0.9),
          0 12px 22px rgba(18, 52, 58, 0.22);
      }
      .journey-live-marker.kind-day span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        border-radius: 999px;
        color: #ffffff;
        font-size: 12px;
        font-weight: 900;
      }
      .journey-live-map--amap {
        background: #eef5f4;
      }
      .amap-journey-marker {
        background: rgba(255, 255, 255, 0.96);
      }
      .amap-journey-marker.kind-day {
        background: #12292f;
        color: #ffffff;
        border-color: currentColor;
      }
      .amap-journey-popup {
        display: grid;
        gap: 4px;
        min-width: 140px;
        color: var(--text-main);
      }
      .amap-journey-popup strong {
        font-size: 13px;
        line-height: 1.35;
      }
      .amap-journey-popup span {
        color: var(--text-muted);
        font-size: 12px;
        line-height: 1.45;
      }
      .amap-journey-segment-label,
      .leaflet-journey-segment-label span {
        display: inline-grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 110px;
        max-width: 176px;
        padding: 5px 10px;
        border: 1px solid #18b6a4;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        color: #12343a;
        box-shadow: 0 8px 18px rgba(18, 52, 58, 0.16);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
        pointer-events: none;
        transition:
          opacity 0.18s ease,
          transform 0.18s ease;
      }
      .amap-journey-segment-label strong,
      .leaflet-journey-segment-label strong {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        height: 22px;
        padding: 0 7px;
        border-radius: 999px;
        background: rgba(18, 52, 58, 0.08);
        color: #12343a;
        font-size: 10px;
        font-weight: 900;
      }
      .amap-journey-segment-label span,
      .leaflet-journey-segment-label small {
        min-width: 0;
        overflow: hidden;
        color: inherit;
        font-size: 11px;
        font-weight: 900;
        line-height: 1.2;
        text-overflow: ellipsis;
      }
      .amap-journey-day-badge,
      .leaflet-journey-day-badge span {
        display: inline-grid;
        gap: 1px;
        min-width: 92px;
        padding: 7px 10px;
        border: 2px solid #18b6a4;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.96);
        color: #12343a;
        box-shadow: 0 10px 22px rgba(18, 52, 58, 0.18);
        pointer-events: none;
      }
      .amap-journey-day-badge strong,
      .leaflet-journey-day-badge strong {
        font-size: 12px;
        line-height: 1.1;
        white-space: nowrap;
      }
      .amap-journey-day-badge span,
      .leaflet-journey-day-badge small {
        color: #5f6f73;
        font-size: 10px;
        font-weight: 800;
        line-height: 1.1;
      }
      .journey-live-map--compact-density .amap-journey-segment-label,
      .journey-live-map--compact-density .leaflet-journey-segment-label span {
        min-width: 104px;
        max-width: 148px;
        padding: 4px 8px;
        gap: 4px;
        box-shadow: 0 7px 14px rgba(18, 52, 58, 0.13);
        font-size: 10px;
      }
      .journey-live-map--compact-density .amap-journey-segment-label strong,
      .journey-live-map--compact-density .leaflet-journey-segment-label strong {
        min-width: 34px;
        height: 20px;
        padding: 0 6px;
        font-size: 9px;
      }
      .journey-live-map--compact-density .amap-journey-segment-label span,
      .journey-live-map--compact-density .leaflet-journey-segment-label small {
        max-width: 96px;
        font-size: 10px;
      }
      .journey-live-map--compact-density .amap-journey-day-badge,
      .journey-live-map--compact-density .leaflet-journey-day-badge span {
        min-width: 76px;
        padding: 6px 8px;
        border-width: 1.5px;
        box-shadow: 0 7px 16px rgba(18, 52, 58, 0.14);
      }
      .journey-live-map--compact-density .amap-journey-day-badge strong,
      .journey-live-map--compact-density .leaflet-journey-day-badge strong {
        font-size: 11px;
      }
      .journey-live-map--compact-density .amap-journey-day-badge span,
      .journey-live-map--compact-density .leaflet-journey-day-badge small {
        font-size: 9px;
      }
      .amap-journey-segment-label.verified,
      .leaflet-journey-segment-label span.verified {
        background: rgba(240, 253, 250, 0.96);
        color: #0f766e;
      }
      .amap-journey-segment-label.estimated,
      .leaflet-journey-segment-label span.estimated {
        border-style: dashed;
        background: rgba(255, 251, 235, 0.96);
        color: #92400e;
      }
      .amap-journey-segment-label.pending,
      .leaflet-journey-segment-label span.pending {
        background: rgba(249, 250, 251, 0.94);
        color: #6b7280;
      }
      .journey-map-layer--background,
      .journey-map-layer--hidden {
        pointer-events: none;
      }
      .journey-live-map--day-focused .journey-map-layer--foreground.leaflet-journey-day-route {
        filter: drop-shadow(0 8px 12px rgba(18, 52, 58, 0.2));
      }
      .journey-live-map--day-focused .amap-journey-segment-label.journey-map-layer--foreground,
      .journey-live-map--day-focused .leaflet-journey-segment-label.journey-map-layer--foreground span {
        transform: translateY(-2px);
        box-shadow: 0 13px 26px rgba(18, 52, 58, 0.2);
      }
      .journey-live-map--day-focused .amap-journey-day-badge.journey-map-layer--foreground,
      .journey-live-map--day-focused .leaflet-journey-day-badge.journey-map-layer--foreground span {
        box-shadow:
          0 0 0 3px rgba(255, 255, 255, 0.88),
          0 16px 30px rgba(18, 52, 58, 0.22);
      }
      .journey-live-map--day-focused .journey-map-layer--background {
        filter: saturate(0.74);
      }
      .journey-live-map--compact-density.journey-live-map--day-focused .amap-journey-segment-label.journey-map-layer--foreground,
      .journey-live-map--compact-density.journey-live-map--day-focused .leaflet-journey-segment-label.journey-map-layer--foreground span {
        min-width: 132px;
        max-width: 156px;
        transform: translateY(20px);
      }
      .journey-live-map--compact-density.journey-live-map--day-focused .amap-journey-segment-label.journey-map-layer--foreground span,
      .journey-live-map--compact-density.journey-live-map--day-focused .leaflet-journey-segment-label.journey-map-layer--foreground small {
        max-width: 118px;
      }
      .journey-live-map--compact-density.journey-live-map--day-focused .amap-journey-day-badge.journey-map-layer--foreground {
        transform: translate(-30px, -22px) scale(0.96);
      }
      .journey-live-map--compact-density.journey-live-map--day-focused .leaflet-journey-day-badge.journey-map-layer--foreground span {
        transform: translateY(-22px) scale(0.96);
      }
      .message.assistant .message-text .journey-preview-route {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-items: stretch;
      }
      .message.assistant .message-text .journey-preview-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }
      .message.assistant .message-text .journey-preview-metric {
        display: grid;
        gap: 6px;
        padding: 12px 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
      }
      .message.assistant .message-text .journey-metric-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: rgba(255, 240, 219, 0.8);
        font-size: 11px;
        font-weight: 700;
      }
      .message.assistant .message-text .journey-metric-value {
        color: #fffaf0;
        font-size: 14px;
        line-height: 1.6;
        font-weight: 600;
      }
      .message.assistant .message-text .journey-preview-stop {
        display: grid;
        gap: 8px;
        padding: 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.12);
        min-height: 132px;
      }
      .message.assistant .message-text .journey-stop-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: rgba(255, 240, 219, 0.82);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.4px;
      }
      .message.assistant .message-text .journey-stop-value {
        font-size: 18px;
        font-weight: 700;
        color: #fffaf0;
        line-height: 1.35;
      }
      .message.assistant .message-text .journey-stop-note {
        color: rgba(244, 239, 231, 0.8);
        font-size: 12px;
        line-height: 1.75;
      }
      .message.assistant .message-text .journey-preview-section {
        display: grid;
        gap: 12px;
      }
      .message.assistant .message-text .journey-day-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
      }
      .message.assistant .message-text .journey-day-card {
        display: grid;
        gap: 10px;
        padding: 15px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.09);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
      }
      .message.assistant .message-text .journey-day-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }
      .message.assistant .message-text .journey-day-label {
        display: inline-flex;
        align-items: center;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 244, 228, 0.94);
        font-size: 11px;
        font-weight: 700;
      }
      .message.assistant .message-text .journey-day-card strong {
        color: #fffaf0;
        font-size: 15px;
        line-height: 1.55;
      }
      .message.assistant .message-text .journey-day-card p {
        margin: 0;
        color: rgba(244, 239, 231, 0.82);
        font-size: 12px;
        line-height: 1.75;
      }
      .message.assistant .message-text .journey-day-map-btn {
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 247, 233, 0.9);
        border-radius: 999px;
        padding: 7px 11px;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
      }
      .message.assistant .message-text .journey-day-waypoints {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .message.assistant .message-text .journey-day-waypoint {
        display: inline-flex;
        align-items: center;
        padding: 7px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 248, 238, 0.9);
        font-size: 11px;
      }
      .message.assistant .message-text .journey-preview-section-title {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: rgba(255, 244, 228, 0.92);
        font-size: 13px;
        font-weight: 700;
      }
      .message.assistant .message-text .journey-highlight-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }
      .message.assistant .message-text .journey-highlight-list.cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      }
      .message.assistant .message-text .journey-highlight-chip {
        display: inline-flex;
        align-items: center;
        padding: 9px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 248, 238, 0.94);
        font-size: 12px;
        line-height: 1.4;
      }
      .message.assistant .message-text .journey-highlight-card {
        display: grid;
        gap: 10px;
        padding: 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
      }
      .message.assistant .message-text .journey-highlight-card.active {
        border-color: rgba(255, 218, 170, 0.28);
        background: rgba(255, 236, 210, 0.12);
        transform: translateY(-2px);
      }
      .message.assistant .message-text .journey-highlight-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }
      .message.assistant .message-text .journey-highlight-card-theme {
        display: inline-flex;
        width: fit-content;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 244, 228, 0.9);
        font-size: 11px;
        font-weight: 700;
      }
      .message.assistant .message-text .journey-highlight-card strong {
        color: #fff9ef;
        font-size: 15px;
        line-height: 1.5;
      }
      .message.assistant .message-text .journey-highlight-card p {
        margin: 0;
        color: rgba(244, 239, 231, 0.82);
        font-size: 12px;
        line-height: 1.75;
      }
      .message.assistant .message-text .journey-highlight-card-btn {
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 247, 233, 0.9);
        border-radius: 999px;
        padding: 7px 11px;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
      }
      .message.assistant .message-text .journey-rhythm-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
      }
      .message.assistant .message-text .journey-rhythm-list.timeline {
        grid-template-columns: 1fr;
      }
      .message.assistant .message-text .journey-rhythm-item {
        display: grid;
        gap: 8px;
        padding: 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
      }
      .message.assistant .message-text .journey-rhythm-item.timeline {
        position: relative;
        grid-template-columns: auto 1fr;
        gap: 14px;
        align-items: flex-start;
        background: rgba(255, 255, 255, 0.06);
      }
      .message.assistant .message-text .journey-rhythm-rail {
        position: absolute;
        left: 30px;
        top: 22px;
        bottom: -16px;
        width: 2px;
        background: linear-gradient(180deg, rgba(255, 236, 210, 0.34), rgba(255, 236, 210, 0));
      }
      .message.assistant .message-text .journey-rhythm-item.timeline:last-child .journey-rhythm-rail {
        display: none;
      }
      .message.assistant .message-text .journey-rhythm-step {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 246, 232, 0.18);
        color: #fff8ee;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.6px;
      }
      .message.assistant .message-text .journey-rhythm-copy {
        color: rgba(244, 239, 231, 0.86);
        font-size: 12px;
        line-height: 1.75;
      }
      .message.assistant .message-text .journey-rhythm-content {
        display: grid;
        gap: 8px;
      }
      .message.assistant .message-text .journey-rhythm-stage {
        color: rgba(255, 241, 219, 0.92);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.6px;
      }
      .message.assistant .message-text .journey-rhythm-focus-btn {
        justify-self: start;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 247, 233, 0.9);
        border-radius: 999px;
        padding: 7px 11px;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
      }
      .message.assistant .message-text .travel-summary {
        padding: 16px 18px;
        border-radius: 16px;
        background: linear-gradient(
          135deg,
          rgba(26, 77, 84, 0.08),
          rgba(194, 142, 92, 0.12)
        );
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .message.assistant .message-text .travel-summary-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--primary);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.4px;
        margin-bottom: 10px;
      }
      .message.assistant .message-text .travel-summary-copy {
        color: #223538;
        font-size: 14px;
        line-height: 1.85;
      }
      .message.assistant .message-text .travel-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
      }
      .message.assistant .message-text .travel-card {
        padding: 16px 16px 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(26, 77, 84, 0.08);
        box-shadow: 0 10px 20px rgba(26, 77, 84, 0.06);
      }
      .message.assistant .message-text .travel-card.overview {
        background: rgba(194, 142, 92, 0.08);
        grid-column: 1 / -1;
      }
      .message.assistant .message-text .travel-card.transport {
        background: rgba(34, 110, 122, 0.06);
        grid-column: 1 / -1;
      }
      .message.assistant .message-text .travel-card.stay {
        background: rgba(23, 96, 58, 0.06);
        grid-column: 1 / -1;
      }
      .message.assistant .message-text .travel-card.budget {
        background: rgba(146, 96, 36, 0.08);
        grid-column: 1 / -1;
      }
      .message.assistant .message-text .travel-card.warning {
        background: rgba(180, 35, 24, 0.05);
      }
      .message.assistant .message-text .travel-card.next {
        grid-column: 1 / -1;
        background: linear-gradient(135deg, rgba(255, 247, 232, 0.96), rgba(228, 246, 241, 0.96));
        border: 2px solid rgba(194, 142, 92, 0.42);
        box-shadow: 0 16px 34px rgba(146, 96, 36, 0.16);
        position: relative;
      }
      .message.assistant .message-text .travel-card.next::before {
        content: "需要你确认";
        position: absolute;
        top: 12px;
        right: 14px;
        padding: 4px 9px;
        border-radius: 999px;
        background: rgba(194, 142, 92, 0.16);
        color: #8a561e;
        font-size: 11px;
        font-weight: 900;
      }
      .message.assistant .message-text .travel-card.next .travel-card-icon {
        background: #fff5df;
        color: #9a5d1f;
      }
      .message.assistant .message-text .travel-card.next .travel-card-title {
        padding-right: 86px;
        color: #103f46;
      }
      .message.assistant .message-text .travel-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
      }
      .message.assistant .message-text .travel-card-head-main {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
      }
      .message.assistant .message-text .travel-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.82);
        color: var(--primary);
        flex-shrink: 0;
      }
      .message.assistant .message-text .travel-card-title {
        color: var(--text-serif);
        font-size: 15px;
        font-weight: 700;
      }
      .message.assistant .message-text .travel-card-link-btn {
        flex-shrink: 0;
        border: 1px solid rgba(26, 77, 84, 0.1);
        background: rgba(255, 255, 255, 0.84);
        color: var(--primary);
        border-radius: 999px;
        padding: 8px 12px;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
      }
      .message.assistant .message-text .travel-card-link-btn:hover {
        border-color: rgba(194, 142, 92, 0.32);
        background: rgba(255, 250, 244, 0.96);
      }
      .message.assistant .message-text .travel-card-body {
        color: #31484c;
        font-size: 13px;
        line-height: 1.8;
      }
      .message.assistant .message-text .travel-budget-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
        gap: 14px;
        align-items: stretch;
      }
      .message.assistant .message-text .travel-budget-main,
      .message.assistant .message-text .travel-budget-reminders {
        min-width: 0;
      }
      .message.assistant .message-text .travel-budget-total {
        padding: 13px 14px;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(26, 77, 84, 0.1), rgba(219, 169, 104, 0.16));
        border: 1px solid rgba(194, 142, 92, 0.22);
        margin-bottom: 10px;
      }
      .message.assistant .message-text .travel-budget-total span,
      .message.assistant .message-text .travel-budget-reminders span {
        display: block;
        color: var(--accent);
        font-size: 12px;
        font-weight: 900;
      }
      .message.assistant .message-text .travel-budget-total strong {
        display: block;
        margin-top: 3px;
        color: var(--primary);
        font-size: 22px;
        line-height: 1.25;
      }
      .message.assistant .message-text .travel-budget-rows {
        display: grid;
        gap: 8px;
      }
      .message.assistant .message-text .travel-budget-row {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.74);
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .message.assistant .message-text .travel-budget-row-icon {
        width: 30px;
        height: 30px;
        border-radius: 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(26, 77, 84, 0.08);
        color: var(--primary);
      }
      .message.assistant .message-text .travel-budget-row strong {
        display: block;
        color: var(--primary);
        font-size: 13px;
      }
      .message.assistant .message-text .travel-budget-row small {
        display: block;
        margin-top: 2px;
        color: var(--text-light);
        font-size: 11px;
        line-height: 1.5;
      }
      .message.assistant .message-text .travel-budget-row em {
        color: #8a5a22;
        font-style: normal;
        font-size: 13px;
        font-weight: 900;
        white-space: nowrap;
      }
      .message.assistant .message-text .travel-budget-reminders {
        padding: 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .message.assistant .message-text .travel-budget-reminders ul {
        margin: 8px 0 0;
        padding-left: 18px;
      }
      .message.assistant .message-text .travel-budget-reminders li,
      .message.assistant .message-text .travel-budget-reminders p {
        margin: 0 0 7px;
        color: var(--text-main);
        font-size: 12px;
        line-height: 1.65;
      }
      .message.assistant .message-text .travel-card-body p {
        margin: 0 0 10px;
      }
      .message.assistant .message-text .travel-card-body p:last-child {
        margin-bottom: 0;
      }
      .message.assistant .message-text .travel-card-body ul,
      .message.assistant .message-text .travel-card-body ol {
        margin: 0;
        padding-left: 18px;
      }
      .message.assistant .message-text .travel-card-body li {
        margin-bottom: 6px;
      }
      .message.assistant .message-text .travel-report {
        display: grid;
        gap: 16px;
      }
      .message.assistant .message-text .travel-report-hero {
        position: relative;
        overflow: hidden;
        padding: 24px;
        border-radius: 26px;
        background:
          radial-gradient(circle at 82% 10%, rgba(219, 169, 104, 0.28), transparent 32%),
          linear-gradient(135deg, #123f46, #1d5a62 58%, #f6efe2);
        color: #fffaf0;
        box-shadow: 0 22px 42px rgba(18, 63, 70, 0.18);
      }
      .message.assistant .message-text .travel-report--agency .travel-report-hero {
        background:
          radial-gradient(circle at 82% 10%, rgba(219, 169, 104, 0.26), transparent 32%),
          linear-gradient(135deg, #123f46, #1d5a62 56%, #7b5133);
      }
      .message.assistant .message-text .travel-report--free .travel-report-hero {
        background:
          radial-gradient(circle at 84% 12%, rgba(36, 166, 161, 0.22), transparent 30%),
          linear-gradient(135deg, #173f55, #277177 55%, #e5b56f);
      }
      .message.assistant .message-text .travel-report-kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 7px 11px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.22);
        font-size: 12px;
        font-weight: 800;
      }
      .message.assistant .message-text .travel-report-hero h3 {
        margin: 18px 0 10px;
        font-size: clamp(24px, 4vw, 38px);
        line-height: 1.12;
        color: #fffaf0;
      }
      .message.assistant .message-text .travel-report-hero p {
        max-width: 620px;
        margin: 0;
        color: rgba(255, 250, 240, 0.84);
        line-height: 1.8;
      }
      .message.assistant .message-text .travel-report-metrics {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 18px;
      }
      .message.assistant .message-text .travel-report-metrics span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fffaf0;
        font-size: 12px;
        font-weight: 800;
      }
      .message.assistant .message-text .travel-report-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
      }
      .message.assistant .message-text .travel-report-actions button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 999px;
        padding: 9px 13px;
        background: rgba(255, 255, 255, 0.14);
        color: #fffaf0;
        font-size: 12px;
        font-weight: 900;
        cursor: pointer;
        transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
      }
      .message.assistant .message-text .travel-report-actions button:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.22);
        border-color: rgba(255, 255, 255, 0.38);
      }
      .message.assistant .message-text .travel-report-actions button:focus-visible {
        outline: 2px solid rgba(255, 250, 240, 0.82);
        outline-offset: 3px;
      }
      .message.assistant .message-text .travel-report-actions button i {
        flex: 0 0 auto;
      }
      .message.assistant .message-text .travel-report-summary {
        padding: 16px 18px;
        border-radius: 20px;
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 237, 0.9));
        border: 1px solid rgba(26, 77, 84, 0.1);
      }
      .message.assistant .message-text .travel-report-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }
      .message.assistant .message-text .travel-report-card {
        padding: 18px;
        border-radius: 22px;
        background:
          linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.88));
        border: 1px solid rgba(26, 77, 84, 0.1);
        box-shadow: 0 12px 28px rgba(19, 52, 57, 0.06);
      }
      .message.assistant .message-text .travel-report-card.daily {
        grid-column: 1 / -1;
      }
      .message.assistant .message-text .travel-report-card.budget {
        grid-column: 1 / -1;
      }
      .message.assistant .message-text .travel-report-card.next {
        grid-column: 1 / -1;
        order: 30;
        background:
          linear-gradient(135deg, rgba(255, 247, 232, 0.98), rgba(237, 247, 245, 0.96));
        border-color: rgba(194, 142, 92, 0.22);
        box-shadow: 0 18px 34px rgba(145, 94, 44, 0.08);
      }
      .message.assistant .message-text .travel-report-next-action {
        margin-top: 18px;
        padding: 18px;
        border-radius: 18px;
        border: 1px solid rgba(194, 142, 92, 0.28);
        background:
          linear-gradient(135deg, rgba(255, 248, 235, 0.98), rgba(237, 247, 245, 0.98));
        box-shadow: 0 18px 34px rgba(145, 94, 44, 0.09);
      }
      .message.assistant .message-text .travel-report-next-action-head {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
      }
      .message.assistant .message-text .travel-report-next-action-head > span {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff7e8;
        color: #a15c19;
      }
      .message.assistant .message-text .travel-report-next-action-head small {
        display: block;
        color: #a15c19;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.06em;
      }
      .message.assistant .message-text .travel-report-next-action-head h4 {
        margin: 3px 0 0;
        color: var(--primary);
        font-size: 20px;
        line-height: 1.25;
      }
      .message.assistant .message-text .travel-report-next-action-body {
        color: var(--text-main);
        line-height: 1.85;
      }
      .message.assistant .message-text .travel-report-next-action-body ul {
        margin: 0;
        padding-left: 18px;
        display: grid;
        gap: 8px;
      }
      .message.assistant .message-text .travel-report-next-action-body li::marker {
        color: #a15c19;
      }
      .message.assistant .message-text .travel-report-card.service {
        background:
          linear-gradient(145deg, rgba(246, 252, 250, 0.98), rgba(255, 250, 242, 0.9));
        border-color: rgba(36, 166, 161, 0.16);
      }
      .message.assistant .message-text .travel-report-card.confidence,
      .message.assistant .message-text .travel-report-card.handoff,
      .message.assistant .message-text .travel-report-card.governance {
        grid-column: 1 / -1;
      }
      .message.assistant .message-text .travel-report-card.warning {
        background:
          linear-gradient(145deg, rgba(255, 247, 247, 0.98), rgba(255, 250, 244, 0.9));
        border-color: rgba(180, 35, 24, 0.12);
      }
      .message.assistant .message-text .travel-report-card-head {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 12px;
      }
      .message.assistant .message-text .travel-report-card-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        background: rgba(26, 77, 84, 0.08);
        color: var(--primary);
      }
      .message.assistant .message-text .travel-report-card-label {
        font-size: 11px;
        letter-spacing: 0.08em;
        color: var(--accent);
        font-weight: 900;
      }
      .message.assistant .message-text .travel-report-card h4 {
        margin: 4px 0 0;
        color: var(--primary);
        font-size: 18px;
        line-height: 1.35;
      }
      .message.assistant .message-text .travel-report-card-body {
        color: var(--text-main);
        line-height: 1.85;
      }
      .message.assistant .message-text .travel-report-budget-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 10px;
      }
      .message.assistant .message-text .travel-report-budget-gap {
        margin-top: 10px;
        padding: 11px 13px;
        border-radius: 14px;
        background: rgba(255, 247, 232, 0.94);
        border: 1px solid rgba(194, 142, 92, 0.18);
        color: #7a4f22;
        font-size: 12px;
        line-height: 1.7;
      }
      .message.assistant .message-text .travel-report-budget-table-wrap {
        display: grid;
        gap: 12px;
      }
      .message.assistant .message-text .travel-report-budget-table {
        width: 100%;
        border-collapse: collapse;
        overflow: hidden;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(26, 77, 84, 0.1);
      }
      .message.assistant .message-text .travel-report-budget-table th,
      .message.assistant .message-text .travel-report-budget-table td {
        padding: 11px 12px;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid rgba(26, 77, 84, 0.08);
        color: var(--text-main);
        font-size: 13px;
        line-height: 1.55;
      }
      .message.assistant .message-text .travel-report-budget-table thead th {
        background: rgba(26, 77, 84, 0.07);
        color: var(--primary);
        font-weight: 900;
      }
      .message.assistant .message-text .travel-report-budget-table tbody tr:last-child th,
      .message.assistant .message-text .travel-report-budget-table tbody tr:last-child td {
        border-bottom: 0;
      }
      .message.assistant .message-text .travel-report-budget-table tbody th {
        min-width: 112px;
        color: var(--primary);
        font-weight: 900;
      }
      .message.assistant .message-text .travel-report-budget-table tbody th i {
        width: 20px;
        color: var(--accent);
      }
      .message.assistant .message-text .travel-report-budget-table td:nth-child(2) {
        white-space: nowrap;
        color: var(--primary);
        font-weight: 900;
      }
      .message.assistant .message-text .travel-report-budget-total-line {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        padding: 12px 14px;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(26, 77, 84, 0.08), rgba(219, 169, 104, 0.1));
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .message.assistant .message-text .travel-report-budget-total-line span {
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 900;
      }
      .message.assistant .message-text .travel-report-budget-total-line strong {
        color: var(--primary);
        font-size: 20px;
      }
      .message.assistant .message-text .travel-report-budget-fit {
        margin: 0;
        color: var(--text-muted);
        font-size: 13px;
        line-height: 1.7;
      }
      .message.assistant .message-text .travel-report-budget-item {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
        border-radius: 16px;
        background: rgba(26, 77, 84, 0.045);
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .message.assistant .message-text .travel-report-budget-item.featured {
        background: linear-gradient(135deg, rgba(26, 77, 84, 0.1), rgba(219, 169, 104, 0.14));
        border-color: rgba(194, 142, 92, 0.24);
      }
      .message.assistant .message-text .travel-report-budget-icon {
        width: 36px;
        height: 36px;
        border-radius: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        color: var(--primary);
        box-shadow: 0 8px 18px rgba(19, 52, 57, 0.08);
      }
      .message.assistant .message-text .travel-report-budget-item span {
        display: block;
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 800;
      }
      .message.assistant .message-text .travel-report-budget-item strong {
        display: block;
        margin-top: 2px;
        color: var(--primary);
        font-size: 18px;
        line-height: 1.25;
      }
      .message.assistant .message-text .travel-report-budget-item p {
        margin: 5px 0 0;
        color: var(--text-muted);
        font-size: 12px;
        line-height: 1.6;
      }
      .message.assistant .message-text .travel-report-confidence,
      .message.assistant .message-text .travel-report-handoff,
      .message.assistant .message-text .travel-report-governance {
        display: grid;
        gap: 12px;
      }
      .message.assistant .message-text .travel-report-confidence-head,
      .message.assistant .message-text .travel-report-handoff-status,
      .message.assistant .message-text .travel-report-governance-boundary {
        display: grid;
        gap: 5px;
        padding: 14px;
        border-radius: 18px;
        background: rgba(26, 77, 84, 0.055);
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .message.assistant .message-text .travel-report-confidence--strong
        .travel-report-confidence-head {
        background: linear-gradient(135deg, rgba(36, 166, 161, 0.12), rgba(219, 169, 104, 0.1));
      }
      .message.assistant .message-text .travel-report-confidence--caution
        .travel-report-confidence-head {
        background: linear-gradient(135deg, rgba(180, 35, 24, 0.08), rgba(219, 169, 104, 0.12));
      }
      .message.assistant .message-text .travel-report-confidence-head span,
      .message.assistant .message-text .travel-report-handoff-status span,
      .message.assistant .message-text .travel-report-governance-status span {
        color: var(--accent);
        font-size: 12px;
        font-weight: 900;
      }
      .message.assistant .message-text .travel-report-confidence-head strong,
      .message.assistant .message-text .travel-report-handoff-status strong,
      .message.assistant .message-text .travel-report-governance-status strong,
      .message.assistant .message-text .travel-report-governance-boundary strong {
        color: var(--primary);
        font-size: 22px;
        line-height: 1.25;
      }
      .message.assistant .message-text .travel-report-governance-status {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
      }
      .message.assistant .message-text .travel-report-governance-status > div {
        min-width: 0;
        padding: 13px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .message.assistant .message-text .travel-report-governance-status strong {
        display: block;
        margin-top: 4px;
        font-size: 16px;
        overflow-wrap: anywhere;
      }
      .message.assistant .message-text .travel-report-governance-boundary {
        background: linear-gradient(135deg, rgba(26, 77, 84, 0.06), rgba(194, 142, 92, 0.08));
      }
      .message.assistant .message-text .travel-report-governance-boundary strong {
        font-size: 18px;
      }
      .message.assistant .message-text .travel-report-governance-boundary p {
        margin: 0;
        color: var(--text-main);
        font-size: 13px;
        line-height: 1.7;
      }
      .message.assistant .message-text .travel-report-confidence-head p {
        margin: 0;
        color: var(--text-muted);
        font-size: 13px;
        line-height: 1.7;
      }
      .message.assistant .message-text .travel-report-insight-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
      }
      .message.assistant .message-text .travel-report-insight-grid.compact {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      }
      .message.assistant .message-text .travel-report-insight-group {
        min-width: 0;
        padding: 13px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .message.assistant .message-text .travel-report-insight-group.confirmed {
        border-color: rgba(36, 166, 161, 0.24);
      }
      .message.assistant .message-text .travel-report-insight-group.verification,
      .message.assistant .message-text .travel-report-insight-group.unsupported {
        border-color: rgba(180, 35, 24, 0.16);
        background: rgba(255, 247, 247, 0.72);
      }
      .message.assistant .message-text .travel-report-insight-group-head {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--primary);
        font-size: 13px;
        font-weight: 900;
        margin-bottom: 8px;
      }
      .message.assistant .message-text .travel-report-insight-group-head i {
        color: var(--accent);
      }
      .message.assistant .message-text .travel-report-insight-group ul {
        margin: 0;
        padding-left: 18px;
      }
      .message.assistant .message-text .travel-report-insight-group li,
      .message.assistant .message-text .travel-report-insight-group p {
        margin: 0 0 5px;
        color: var(--text-main);
        font-size: 12px;
        line-height: 1.65;
        overflow-wrap: anywhere;
      }
      .message.assistant .message-text .travel-report-days {
        display: grid;
        gap: 12px;
      }
      .message.assistant .message-text .travel-report-day {
        display: grid;
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
        background: rgba(26, 77, 84, 0.045);
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .message.assistant .message-text .travel-report-day.missing {
        border-style: dashed;
        background: rgba(219, 169, 104, 0.08);
      }
      .message.assistant .message-text .travel-report-empty-state {
        padding: 18px;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(255, 247, 232, 0.95), rgba(237, 247, 245, 0.95));
        border: 1px solid rgba(194, 142, 92, 0.2);
      }
      .message.assistant .message-text .travel-report-empty-state strong {
        display: block;
        color: var(--primary);
        font-size: 15px;
        margin-bottom: 6px;
      }
      .message.assistant .message-text .travel-report-empty-state p {
        margin: 0;
        color: #3f5f64;
        font-size: 13px;
        line-height: 1.75;
      }
      .message.assistant .message-text .travel-report-day-badge {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--primary);
        color: #fff;
        font-weight: 900;
        font-size: 13px;
      }
      .message.assistant .message-text .travel-report-day-main h5 {
        margin: 0 0 6px;
        color: var(--primary);
        font-size: 16px;
      }
      .message.assistant .message-text .travel-report-day-map {
        min-height: 170px;
        padding: 12px;
        border-radius: 16px;
        background:
          radial-gradient(circle at 80% 20%, rgba(219, 169, 104, 0.2), transparent 26%),
          linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 247, 245, 0.8));
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .message.assistant .message-text .travel-report-day-map-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 900;
      }
      .message.assistant .message-text .travel-report-day-map-head strong {
        color: var(--primary);
        font-size: 12px;
        text-align: right;
      }
      .message.assistant .message-text .travel-report-route-sketch {
        position: relative;
        min-height: 136px;
        overflow: hidden;
        border-radius: 18px;
        background:
          linear-gradient(rgba(26, 77, 84, 0.07) 1px, transparent 1px),
          linear-gradient(90deg, rgba(26, 77, 84, 0.07) 1px, transparent 1px),
          radial-gradient(circle at 18% 78%, rgba(26, 77, 84, 0.16), transparent 20%),
          linear-gradient(135deg, rgba(240, 248, 246, 0.98), rgba(255, 250, 242, 0.88));
        background-size: 28px 28px, 28px 28px, auto, auto;
        border: 1px solid rgba(26, 77, 84, 0.1);
      }
      .message.assistant .message-text .travel-report-route-sketch.empty {
        display: grid;
        place-items: center;
        padding: 14px;
      }
      .message.assistant .message-text .travel-report-route-empty {
        color: var(--text-muted);
        font-size: 12px;
        line-height: 1.7;
        text-align: center;
      }
      .message.assistant .message-text .travel-report-route-sketch svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
      }
      .message.assistant .message-text .travel-report-route-sketch polyline {
        fill: none;
        stroke: #24a6a1;
        stroke-width: 4;
        stroke-linecap: round;
        stroke-linejoin: round;
        filter: drop-shadow(0 8px 10px rgba(36, 166, 161, 0.22));
      }
      .message.assistant .message-text .travel-report-route-node {
        position: absolute;
        left: var(--x);
        top: var(--y);
        transform: translate(-50%, -50%);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        max-width: 150px;
        padding: 6px 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(26, 77, 84, 0.13);
        box-shadow: 0 10px 22px rgba(19, 52, 57, 0.12);
        color: var(--primary);
      }
      .message.assistant .message-text .travel-report-route-node span {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        background: #24a6a1;
        color: #fff;
        font-size: 11px;
        font-weight: 900;
      }
      .message.assistant .message-text .travel-report-route-node strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
      }
      .message.assistant .message-text .travel-report-day-copy p,
      .message.assistant .message-text .travel-report-card-body p {
        margin: 0;
      }
      .message.assistant .message-text .travel-report-route-digest {
        padding: 18px;
        border-radius: 24px;
        background:
          radial-gradient(circle at 90% 10%, rgba(219, 169, 104, 0.18), transparent 28%),
          linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 246, 0.88));
        border: 1px solid rgba(26, 77, 84, 0.1);
        box-shadow: 0 14px 34px rgba(19, 52, 57, 0.07);
      }
      .message.assistant .message-text .travel-report-route-digest-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
        gap: 16px;
        align-items: end;
        margin-bottom: 14px;
      }
      .message.assistant .message-text .travel-report-route-digest-head span {
        color: var(--accent);
        font-size: 12px;
        font-weight: 900;
      }
      .message.assistant .message-text .travel-report-route-digest-head h4 {
        margin: 4px 0 0;
        color: var(--primary);
        font-size: 22px;
      }
      .message.assistant .message-text .travel-report-route-digest-head p {
        margin: 0;
        color: var(--text-muted);
        line-height: 1.7;
        font-size: 13px;
      }
      .message.assistant .message-text .travel-report-route-digest-body {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
        gap: 14px;
      }
      .message.assistant .message-text .travel-report-route-digest-body .travel-report-route-sketch {
        min-height: 240px;
      }
      .message.assistant .message-text .travel-report-route-day-list {
        display: grid;
        gap: 10px;
        align-content: start;
      }
      .message.assistant .message-text .travel-report-route-day-pill {
        padding: 11px 12px;
        border-radius: 16px;
        background: rgba(26, 77, 84, 0.055);
        border: 1px solid rgba(26, 77, 84, 0.08);
      }
      .message.assistant .message-text .travel-report-route-day-pill strong {
        display: block;
        color: var(--primary);
        font-size: 13px;
      }
      .message.assistant .message-text .travel-report-route-day-pill span {
        display: block;
        margin-top: 3px;
        color: var(--text-muted);
        font-size: 12px;
        line-height: 1.6;
      }
      .message.assistant .message-text .travel-report-route-point-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 9px;
      }
      .message.assistant .message-text .travel-report-route-point-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
        max-width: 100%;
        padding: 5px 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(26, 77, 84, 0.1);
        color: var(--primary);
        font-size: 11px;
        line-height: 1.4;
      }
      .message.assistant .message-text .travel-report-route-point-chip strong {
        color: var(--accent);
        font-size: 10px;
        white-space: nowrap;
      }
      .message.assistant .message-text .travel-report-route-segments {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 8px;
        margin-top: 10px;
      }
      .message.assistant .message-text .travel-report-route-segment {
        display: grid;
        gap: 5px;
        min-width: 0;
        padding: 9px 10px;
        border-radius: 12px;
        border: 1px solid rgba(26, 77, 84, 0.1);
        background: rgba(255, 255, 255, 0.74);
      }
      .message.assistant .message-text .travel-report-route-segment.ready {
        border-color: rgba(4, 120, 87, 0.16);
        background: rgba(240, 253, 244, 0.72);
      }
      .message.assistant .message-text .travel-report-route-segment.estimated,
      .message.assistant .message-text .travel-report-route-segment.pending {
        border-color: rgba(180, 83, 9, 0.14);
        background: rgba(255, 251, 235, 0.7);
      }
      .message.assistant .message-text .travel-report-route-segment div {
        min-width: 0;
      }
      .message.assistant .message-text .travel-report-route-segment strong,
      .message.assistant .message-text .travel-report-route-segment span,
      .message.assistant .message-text .travel-report-route-segment small,
      .message.assistant .message-text .travel-report-route-segment em,
      .message.assistant .message-text .travel-report-route-segment p {
        min-width: 0;
        overflow-wrap: anywhere;
      }
      .message.assistant .message-text .travel-report-route-segment strong {
        display: block;
        color: var(--primary);
        font-size: 12px;
      }
      .message.assistant .message-text .travel-report-route-segment span {
        display: block;
        margin-top: 2px;
        color: var(--text-muted);
        font-size: 11px;
      }
      .message.assistant .message-text .travel-report-route-segment small {
        color: var(--text-main);
        font-size: 12px;
        font-weight: 800;
      }
      .message.assistant .message-text .travel-report-route-segment em,
      .message.assistant .message-text .travel-report-route-segment p {
        margin: 0;
        color: var(--text-muted);
        font-size: 11px;
        font-style: normal;
        line-height: 1.45;
      }
      .message.assistant .message-text .travel-report-map .journey-live-map-shell {
        margin-top: 0;
      }
      @media (max-width: 760px) {
        .message.assistant .message-text .travel-report-hero {
          padding: 20px;
          border-radius: 22px;
        }
        .message.assistant .message-text .travel-report-grid {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .travel-report-budget-grid {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .travel-report-budget-table {
          min-width: 620px;
        }
        .message.assistant .message-text .travel-report-budget-table-wrap {
          overflow-x: auto;
        }
        .message.assistant .message-text .travel-report-insight-grid,
        .message.assistant .message-text .travel-report-insight-grid.compact {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .travel-report-governance-status {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .travel-report-day {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .travel-report-day-badge {
          width: auto;
          height: auto;
          padding: 8px 12px;
          border-radius: 999px;
          justify-content: flex-start;
        }
        .message.assistant .message-text .travel-report-route-digest-head,
        .message.assistant .message-text .travel-report-route-digest-body {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .travel-budget-layout {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .travel-budget-row {
          grid-template-columns: 30px minmax(0, 1fr);
        }
        .message.assistant .message-text .travel-budget-row em {
          grid-column: 2;
          justify-self: start;
        }
      }
      .message.assistant .message-text .travel-fallback {
        display: grid;
        gap: 10px;
      }
      .message.assistant .message-text .message-table-wrap {
        overflow-x: auto;
        margin: 6px 0 10px;
        padding: 2px;
      }
      .message.assistant .message-text .message-table {
        width: 100%;
        min-width: 460px;
        border-collapse: collapse;
        border-spacing: 0;
        overflow: hidden;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(26, 77, 84, 0.12);
        box-shadow: 0 12px 24px rgba(26, 77, 84, 0.06);
      }
      .message.assistant .message-text .message-table th,
      .message.assistant .message-text .message-table td {
        padding: 13px 14px;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid rgba(26, 77, 84, 0.08);
        font-size: 13px;
        line-height: 1.7;
        color: var(--text-main);
      }
      .message.assistant .message-text .message-table th {
        background: linear-gradient(135deg, rgba(26, 77, 84, 0.1), rgba(194, 142, 92, 0.08));
        color: var(--primary);
        font-weight: 900;
        white-space: nowrap;
      }
      .message.assistant .message-text .message-table td:first-child {
        color: var(--primary);
        font-weight: 800;
      }
      .message.assistant .message-text .message-table tbody tr:nth-child(even) td {
        background: rgba(248, 250, 250, 0.92);
      }
      .message.assistant .message-text .message-table tr:last-child td {
        border-bottom: none;
      }
      .message.assistant .message-text .message-table tbody tr:last-child td {
        background: rgba(255, 247, 232, 0.9);
        font-weight: 900;
      }
      .message.assistant .message-text .transport-options-board {
        display: grid;
        gap: 12px;
      }
      .message.assistant .message-text .transport-option-card {
        padding: 16px;
        border-radius: 18px;
        background: linear-gradient(
          180deg,
          rgba(255, 255, 255, 0.99),
          rgba(245, 250, 251, 0.96)
        );
        border: 1px solid rgba(26, 77, 84, 0.1);
        box-shadow: 0 12px 24px rgba(26, 77, 84, 0.06);
      }
      .message.assistant .message-text .transport-option-card.recommended {
        border-color: rgba(194, 142, 92, 0.36);
        box-shadow: 0 14px 28px rgba(194, 142, 92, 0.12);
      }
      .message.assistant .message-text .transport-option-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
      }
      .message.assistant .message-text .transport-option-kind {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--primary);
        font-size: 12px;
        font-weight: 700;
      }
      .message.assistant .message-text .transport-option-code {
        font-size: 22px;
        font-weight: 800;
        color: var(--text-serif);
        letter-spacing: 0.4px;
      }
      .message.assistant .message-text .transport-option-times {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 14px 0;
        border-top: 1px dashed rgba(26, 77, 84, 0.12);
        border-bottom: 1px dashed rgba(26, 77, 84, 0.12);
      }
      .message.assistant .message-text .transport-stop {
        display: grid;
        gap: 4px;
      }
      .message.assistant .message-text .transport-stop:last-child {
        text-align: right;
      }
      .message.assistant .message-text .transport-stop-label {
        font-size: 11px;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
      .message.assistant .message-text .transport-stop strong {
        font-size: 18px;
        color: var(--text-serif);
      }
      .message.assistant .message-text .transport-stop-arrow {
        color: rgba(26, 77, 84, 0.38);
        font-size: 15px;
      }
      .message.assistant .message-text .transport-option-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
      }
      .message.assistant .message-text .transport-meta-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 10px;
        border-radius: 999px;
        background: rgba(26, 77, 84, 0.08);
        color: var(--primary);
        font-size: 12px;
        font-weight: 700;
      }
      .message.assistant .message-text .transport-meta-pill.price {
        background: rgba(194, 142, 92, 0.14);
        color: #915f24;
      }
      .message.assistant .message-text .transport-option-reason {
        margin-top: 12px;
        padding: 12px 14px;
        border-radius: 14px;
        background: rgba(194, 142, 92, 0.08);
        color: #355055;
        line-height: 1.75;
      }
      .message.assistant .message-text .transport-extra-list {
        margin-top: 12px;
        display: grid;
        gap: 8px;
      }
      .message.assistant .message-text .transport-extra-item {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
      }
      .message.assistant .message-text .transport-extra-item dt {
        color: var(--text-light);
        font-size: 12px;
      }
      .message.assistant .message-text .transport-extra-item dd {
        margin: 0;
        color: #31484c;
      }
      .message-time {
        margin-top: 10px;
        font-size: 11px;
        opacity: 0.72;
      }
      .message.user .message-time {
        text-align: right;
      }

      /* 欢迎屏幕 */
      .welcome-screen {
        text-align: center;
        margin: auto;
        max-width: 500px;
        padding: 40px;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 252, 247, 0.78));
        border-radius: 28px;
        border: 1px solid rgba(26, 77, 84, 0.08);
        box-shadow: 0 20px 40px rgba(26, 77, 84, 0.06);
      }

      .welcome-logo {
        font-size: 50px;
        color: var(--primary);
        margin-bottom: 20px;
      }

      .welcome-title {
        font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
        font-size: 28px;
        margin-bottom: 10px;
        color: var(--text-serif);
      }

      .welcome-text {
        color: var(--text-light);
        line-height: 1.6;
      }
      .welcome-suggestions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 22px;
      }
      .suggestion-btn {
        border: 1px solid rgba(26, 77, 84, 0.16);
        background: rgba(255, 255, 255, 0.85);
        color: var(--primary);
        border-radius: 999px;
        padding: 10px 14px;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.2s ease;
      }
      .suggestion-btn:hover {
        background: var(--primary);
        color: #fff;
        transform: translateY(-1px);
      }

      /* 输入区域 */
      .chat-input-area {
        padding: 24px 32px;
        background: rgba(255, 255, 255, 0.9);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
      }
      .thinking-card {
        min-width: min(420px, 72vw);
      }
      .thinking-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
      }
      .thinking-title {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--text-serif);
        font-weight: 600;
        font-size: 14px;
      }
      .thinking-badge {
        padding: 4px 8px;
        border-radius: 999px;
        background: rgba(194, 142, 92, 0.14);
        color: #926024;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.5px;
      }
      .thinking-copy {
        color: var(--text-light);
        font-size: 13px;
        line-height: 1.7;
      }
      .thinking-progress {
        margin-top: 12px;
        height: 7px;
        border-radius: 999px;
        overflow: hidden;
        background: rgba(26, 77, 84, 0.08);
        position: relative;
      }
      .thinking-progress::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          90deg,
          rgba(194, 142, 92, 0.05) 0%,
          rgba(194, 142, 92, 0.75) 50%,
          rgba(194, 142, 92, 0.05) 100%
        );
        transform: translateX(-100%);
        animation: loadingSweep 1.8s infinite ease-in-out;
      }
      @keyframes loadingSweep {
        from {
          transform: translateX(-100%);
        }
        to {
          transform: translateX(100%);
        }
      }

      /* Toast */
      .toast {
        position: fixed;
        top: 24px;
        right: 24px;
        transform: translateY(-120px);
        background: var(--text-main);
        color: white;
        padding: 12px 24px;
        border-radius: 50px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1000;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        max-width: min(420px, calc(100vw - 32px));
      }
      .toast.show {
        transform: translateY(0);
      }
      .toast.error {
        background: #c0392b;
      }

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

      /* 响应式 */
      @media (max-width: 1100px) {
        .app-container {
          padding: 12px;
          gap: 12px;
        }
        .sidebar {
          width: 250px;
        }
        .chat-header,
        .chat-input-area,
        .service-banner {
          padding-left: 22px;
          padding-right: 22px;
        }
        .chat-messages {
          padding: 24px;
        }
        .message.assistant .message-text .journey-map-studio-brief {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .message.assistant .message-text .journey-live-map-shell-body {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .journey-live-map-shell--studio .journey-live-map {
          min-height: 420px;
        }
      }

      @media (max-width: 900px) {
        .intro-copy {
          justify-content: flex-end;
          padding: 24px 22px 34px;
        }
        .intro-copy h1 {
          max-width: 720px;
          font-size: clamp(34px, 8vw, 56px);
        }
        .intro-copy p {
          max-width: 620px;
          font-size: 16px;
        }
        .auth-card {
          width: min(92vw, 430px);
          padding: 28px 22px;
        }
        .auth-highlights {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .app-container {
          flex-direction: column;
          padding: 10px;
          gap: 10px;
          overflow-y: auto;
        }
        .sidebar {
          width: 100%;
          height: auto;
          padding: 14px;
          border-radius: 22px;
          flex: 0 0 auto;
        }
        .chat-main {
          flex: 0 0 auto;
          min-height: min(760px, calc(100vh - 20px));
        }
        .sidebar-header {
          padding: 0 0 14px;
          border-bottom: none;
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 12px;
        }
        .user-passport {
          margin-top: 0;
          flex: 1;
          min-width: 0;
          padding: 10px;
        }
        .user-details h4 {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          max-width: 140px;
        }
        .new-chat-btn,
        .logout-btn {
          margin: 0;
          min-height: 42px;
          border-radius: 999px;
        }
        .new-chat-btn {
          width: 100%;
          margin-bottom: 12px;
        }
        .logout-btn {
          padding: 10px 14px;
          justify-content: center;
          background: rgba(255, 255, 255, 0.72);
          border: 1px solid rgba(26, 77, 84, 0.08);
          border-radius: 999px;
        }
        .conversations-list {
          display: block;
          overflow-x: auto;
          overflow-y: hidden;
          padding: 0;
          margin: 0 -2px 12px;
        }
        .conversations-list::-webkit-scrollbar {
          height: 6px;
        }
        .conversations-list::-webkit-scrollbar-thumb {
          background: rgba(26, 77, 84, 0.15);
          border-radius: 999px;
        }
        .section-label {
          display: block;
          padding: 0 2px 8px;
        }
        .conversations-summary {
          padding: 0 2px 10px;
        }
        #conversationsList {
          display: flex;
          gap: 10px;
          padding: 0 2px 8px;
        }
        .conversation-item {
          min-width: 220px;
          margin-bottom: 0;
          flex-shrink: 0;
        }
        .mobile-chat-back-btn {
          display: none;
        }
        .chat-header {
          padding: 16px 18px 14px;
          flex-direction: column;
          align-items: flex-start;
          gap: 14px;
        }
        .chat-title-group {
          width: 100%;
          gap: 12px;
        }
        .chat-icon-wrapper {
          width: 42px;
          height: 42px;
          font-size: 18px;
        }
        .chat-info h2 {
          font-size: 18px;
        }
        .chat-status-panel {
          width: 100%;
          justify-content: flex-start;
        }
        .service-banner {
          padding: 14px 18px;
          flex-direction: column;
          align-items: flex-start;
        }
        .service-banner-actions {
          width: 100%;
          justify-content: space-between;
        }
        .trip-overview {
          width: 100%;
        }
        .chat-messages {
          padding: 18px;
          gap: 18px;
        }
        .message {
          max-width: 100%;
        }
        .message-content {
          padding: 14px 18px;
        }
        .message.assistant .message-text .travel-grid {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .travel-card.next {
          grid-column: auto;
        }
        .message.assistant .message-text .journey-atlas-panel {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .journey-live-map-head {
          flex-direction: column;
        }
        .message.assistant .message-text .journey-live-map-styles {
          justify-content: flex-start;
        }
        .message.assistant .message-text .journey-map-studio-brief {
          grid-template-columns: 1fr 1fr;
        }
        .message.assistant .message-text .journey-live-map-shell-body--studio {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .journey-map-stage {
          order: 1;
        }
        .message.assistant .message-text .journey-map-sidebar {
          order: 2;
          max-height: none;
          overflow: visible;
        }
        .message.assistant .message-text .journey-live-map-aside {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .message.assistant .message-text .journey-live-map {
          min-height: 320px;
        }
        .message.assistant .message-text .journey-preview-metrics,
        .message.assistant .message-text .journey-preview-route {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .message.assistant .message-text .journey-rhythm-list {
          grid-template-columns: 1fr;
        }
        .thinking-card {
          min-width: 0;
        }
        .chat-input-area {
          padding: 16px;
        }
        .welcome-screen {
          padding: 28px 20px;
        }
        .welcome-suggestions {
          justify-content: stretch;
        }
        .suggestion-btn {
          width: 100%;
        }
        body.mobile-chat-focus .app-container {
          display: block;
          padding: 10px;
        }
        body.mobile-chat-focus .sidebar {
          display: none;
        }
        body.mobile-chat-focus .chat-main {
          min-height: calc(100vh - 20px);
        }
        body.mobile-chat-focus .mobile-chat-back-btn {
          display: inline-flex;
        }
        body.mobile-chat-focus .chat-title-group {
          align-items: flex-start;
        }
      }

      @media (max-width: 640px) {
        body {
          height: auto;
          min-height: 100vh;
          overflow: auto;
        }
        body.intro-active {
          overflow: hidden;
        }
        .intro-copy {
          padding: 20px 18px 26px;
        }
        .intro-kicker {
          font-size: 12px;
          letter-spacing: 1px;
        }
        .intro-copy h1 {
          font-size: clamp(30px, 11vw, 42px);
        }
        .intro-copy p {
          font-size: 14px;
          line-height: 1.75;
        }
        .intro-enter-hint span {
          width: 100%;
          justify-content: center;
          font-size: 13px;
        }
        .auth-overlay {
          align-items: flex-start;
          overflow-y: auto;
          padding: 18px 12px 24px;
        }
        .auth-card {
          width: min(100%, 430px);
          margin: 0 auto;
          padding: 24px 18px;
          max-height: none;
          overflow: visible;
        }
        .auth-hero-scene {
          min-height: 214px;
        }
        .auth-hero-caption {
          left: 16px;
          right: 16px;
          bottom: 16px;
          max-width: none;
        }
        .auth-hero-caption strong {
          font-size: 20px;
        }
        .auth-hero-caption p {
          font-size: 12px;
        }
        .auth-highlights {
          grid-template-columns: 1fr;
        }
        .sidebar {
          padding: 12px;
        }
        .sidebar-header {
          flex-direction: column;
          align-items: stretch;
        }
        .user-passport {
          width: 100%;
        }
        .new-chat-btn,
        .logout-btn {
          width: 100%;
        }
        .conversations-summary {
          flex-direction: column;
        }
        .summary-chip {
          width: 100%;
          justify-content: center;
        }
        #conversationsList {
          gap: 8px;
        }
        .conversation-item {
          min-width: 82vw;
        }
        .chat-header {
          padding: 15px 14px 12px;
        }
        .mobile-chat-back-btn {
          width: 100%;
          justify-content: center;
        }
        .service-banner {
          padding: 12px 14px;
        }
        .service-banner-main {
          align-items: flex-start;
        }
        .service-banner-actions {
          flex-direction: column;
          align-items: stretch;
        }
        .service-action-btn {
          width: 100%;
        }
        .endpoint-pill,
        .assistant-status {
          width: 100%;
          justify-content: center;
        }
        .chat-messages {
          padding: 14px;
          gap: 14px;
        }
        .message {
          gap: 10px;
        }
        .message-avatar {
          width: 32px;
          height: 32px;
          font-size: 13px;
        }
        .message-content {
          padding: 13px 15px;
          font-size: 14px;
        }
        .message.assistant .message-text .message-table {
          min-width: 0;
        }
        .message.assistant .message-text .transport-option-head,
        .message.assistant .message-text .transport-option-times {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .journey-preview-head,
        .message.assistant .message-text .journey-atlas-panel,
        .message.assistant .message-text .journey-preview-metrics,
        .message.assistant .message-text .journey-preview-route {
          grid-template-columns: 1fr;
          display: grid;
        }
        .message.assistant .message-text .journey-atlas-canvas {
          min-height: 360px;
        }
        .message.assistant .message-text .journey-live-map-meta {
          flex-direction: column;
          align-items: flex-start;
        }
        .message.assistant .message-text .journey-live-map-aside {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .journey-live-map-styles {
          width: 100%;
        }
        .message.assistant .message-text .journey-map-floating-group {
          width: 100%;
          flex-direction: column;
          align-items: flex-start;
        }
        .message.assistant .message-text .journey-map-floating-row {
          width: 100%;
        }
        .message.assistant .message-text .travel-card-head {
          align-items: flex-start;
          flex-direction: column;
        }
        .journey-map-modal {
          padding: 12px;
        }
        .journey-map-modal-dialog {
          padding: 16px;
          border-radius: 22px;
        }
        .journey-live-map-modal-canvas {
          min-height: 62vh;
        }
        .message.assistant .message-text .journey-live-map {
          min-height: 280px;
        }
        .message.assistant .message-text .journey-map-studio-brief {
          grid-template-columns: 1fr;
        }
        .message.assistant .message-text .journey-map-sidebar-head {
          align-items: flex-start;
          flex-direction: column;
        }
        .message.assistant .message-text .journey-atlas-label {
          min-width: 104px;
        }
        .message.assistant .message-text .journey-atlas-scenic {
          max-width: 120px;
          white-space: normal;
        }
        .message.assistant .message-text .journey-preview-route {
          gap: 10px;
        }
        .message.assistant .message-text .journey-preview-metric,
        .message.assistant .message-text .journey-preview-stop {
          min-height: 0;
        }
        .message.assistant .message-text .transport-option-head {
          align-items: flex-start;
        }
        .message.assistant .message-text .transport-stop:last-child {
          text-align: left;
        }
        .message.assistant .message-text .transport-stop-arrow {
          display: none;
        }
        .message.assistant .message-text .transport-option-code {
          font-size: 20px;
        }
        .message.assistant .message-text .transport-extra-item {
          grid-template-columns: 1fr;
          gap: 4px;
        }
        .chat-input-area {
          padding: 14px;
        }
        .toast {
          top: auto;
          bottom: max(16px, env(safe-area-inset-bottom, 0px) + 12px);
          left: 50%;
          right: auto;
          width: min(320px, calc(100vw - 28px));
          max-width: min(320px, calc(100vw - 28px));
          padding: 10px 14px;
          border-radius: 16px;
          font-size: 13px;
          justify-content: center;
          text-align: center;
          transform: translate(-50%, 120px);
        }
        .toast.show {
          transform: translate(-50%, 0);
        }
        .chat-input-wrapper {
          padding: 8px 8px 8px 12px;
        }
        .chat-meta {
          flex-direction: column;
          gap: 8px;
        }
        .welcome-screen {
          padding: 22px 16px;
        }
        .welcome-title {
          font-size: 24px;
        }
        body.mobile-chat-focus .app-container {
          padding: 0;
        }
        body.mobile-chat-focus .chat-main {
          min-height: 100vh;
          border-radius: 0;
        }
        body.mobile-chat-focus .chat-header,
        body.mobile-chat-focus .chat-messages,
        body.mobile-chat-focus .chat-input-area,
        body.mobile-chat-focus .service-banner {
          padding-left: 14px;
          padding-right: 14px;
        }
      }

      @media (max-width: 420px) {
        .app-container {
          padding: 8px;
        }
        .auth-logo {
          font-size: 30px;
          letter-spacing: 2px;
        }
        .sidebar-logo-text {
          font-size: 20px;
        }
        .chat-info h2 {
          font-size: 17px;
        }
        .overview-chip {
          width: 100%;
          justify-content: center;
        }
        .conversation-item {
          min-width: 88vw;
        }
        .message.user,
        .message.assistant {
          align-self: stretch;
        }
        .message.user {
          flex-direction: row-reverse;
        }
      }

      .conversation-edit-btn {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        border: 1px solid rgba(26, 77, 84, 0.08);
        background: rgba(255, 255, 255, 0.88);
        color: var(--text-light);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s ease, border-color 0.2s ease,
          color 0.2s ease, background 0.2s ease;
      }

      .conversation-edit-btn:hover {
        color: var(--primary);
        border-color: rgba(26, 77, 84, 0.18);
        background: rgba(26, 77, 84, 0.08);
        transform: translateY(-1px);
      }

      .conversation-item.editing {
        border-color: rgba(26, 77, 84, 0.24);
        background: rgba(255, 255, 255, 0.96);
      }

      .conversation-title-edit-form {
        flex: 1;
        min-width: 0;
      }

      .conversation-title-input,
      .chat-title-input {
        width: 100%;
        min-width: 0;
        border: 1px solid rgba(26, 77, 84, 0.16);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.96);
        color: var(--text-main);
        font: inherit;
        font-weight: 700;
      }

      .conversation-title-input {
        padding: 7px 9px;
        font-size: 13px;
      }

      .chat-info h2.editing {
        width: min(360px, 100%);
      }

      .chat-title-input {
        padding: 8px 10px;
        font-size: 18px;
        color: var(--text-serif);
      }

      .conversation-save-btn,
      .conversation-cancel-btn {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        border: 1px solid rgba(26, 77, 84, 0.1);
        background: rgba(255, 255, 255, 0.9);
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
      }

      .conversation-save-btn:hover {
        border-color: rgba(23, 96, 58, 0.22);
        background: rgba(23, 96, 58, 0.1);
        color: #17603a;
      }

      .conversation-cancel-btn:hover {
        border-color: rgba(180, 35, 24, 0.24);
        background: rgba(180, 35, 24, 0.08);
        color: #b42318;
      }

      .conversation-save-btn:disabled,
      .conversation-cancel-btn:disabled,
      .conversation-title-input:disabled,
      .chat-title-input:disabled {
        opacity: 0.62;
        cursor: wait;
      }

      .message.assistant .message-text .journey-preview-board {
        padding: 14px;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(15, 70, 78, 0.08), rgba(255, 255, 255, 0.96));
        border: 1px solid rgba(26, 77, 84, 0.1);
        box-shadow: 0 14px 28px rgba(18, 53, 58, 0.08);
        color: var(--text-main);
      }

      .message.assistant .message-text .journey-preview-title strong,
      .message.assistant .message-text .journey-map-studio-brief-item strong,
      .message.assistant .message-text .journey-live-map-head strong,
      .message.assistant .message-text .journey-map-sidebar-copy strong,
      .message.assistant .message-text .journey-map-route-stop-value {
        color: var(--text-serif);
      }

      .message.assistant .message-text .journey-preview-title span,
      .message.assistant .message-text .journey-live-map-head span,
      .message.assistant .message-text .journey-map-day-insight-copy,
      .message.assistant .message-text .journey-map-sidebar-copy p,
      .message.assistant .message-text .journey-map-route-stop-note {
        color: rgba(72, 97, 102, 0.86);
      }

      .message.assistant .message-text .journey-preview-badge,
      .message.assistant .message-text .journey-map-shell-kicker {
        background: rgba(26, 77, 84, 0.08);
        border-color: rgba(26, 77, 84, 0.12);
        color: var(--primary);
      }

      .message.assistant .message-text .journey-map-studio-brief-item,
      .message.assistant .message-text .journey-live-map-shell,
      .message.assistant .message-text .journey-map-sidebar-card,
      .message.assistant .message-text .journey-map-route-stop {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(26, 77, 84, 0.1);
        box-shadow: 0 10px 18px rgba(19, 59, 65, 0.05);
        color: var(--text-main);
      }

      .message.assistant .message-text .journey-live-map-shell--studio .journey-live-map-head {
        align-items: center;
      }

      .message.assistant .message-text .journey-live-map-shell-body--studio {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 14px;
      }

      .message.assistant .message-text .journey-live-map-shell--studio .journey-live-map {
        min-height: 360px;
        border-radius: 18px;
        background: rgba(228, 238, 240, 0.75);
        border-color: rgba(26, 77, 84, 0.14);
      }

      .message.assistant .message-text .journey-map-stage {
        position: relative;
        gap: 10px;
      }

      .message.assistant .message-text .journey-map-floating-panel {
        position: absolute;
        z-index: 500;
        top: 14px;
        left: 14px;
        display: grid;
        gap: 7px;
        max-width: min(calc(100% - 28px), 500px);
        width: fit-content;
        pointer-events: none;
      }

      .message.assistant .message-text .journey-map-floating-days,
      .message.assistant .message-text .journey-map-floating-modes,
      .message.assistant .message-text .journey-map-floating-actions {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 6px;
        pointer-events: auto;
        align-items: center;
        padding: 8px 10px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid rgba(26, 77, 84, 0.12);
        backdrop-filter: blur(12px);
        box-shadow: 0 10px 22px rgba(19, 59, 65, 0.14);
      }

      .message.assistant .message-text .journey-map-floating-summary {
        width: fit-content;
        background: rgba(255, 255, 255, 0.96);
      }

      .message.assistant .message-text
        .journey-map-tools-collapsed
        .journey-map-floating-days,
      .message.assistant .message-text
        .journey-map-tools-collapsed
        .journey-map-floating-modes,
      .message.assistant .message-text
        .journey-map-tools-collapsed
        .journey-map-floating-actions:not(.journey-map-floating-summary),
      .message.assistant .message-text
        .journey-map-tools-collapsed
        .journey-live-map-styles {
        display: none;
      }

      .message.assistant .message-text .journey-map-passive-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 11px;
        border-radius: 999px;
        background: rgba(26, 77, 84, 0.08);
        border: 1px dashed rgba(26, 77, 84, 0.18);
        color: rgba(46, 78, 83, 0.88);
        font-size: 0.82rem;
        font-weight: 600;
        white-space: nowrap;
      }

      .message.assistant .message-text .journey-map-floating-modes[hidden] {
        display: none;
      }

      .message.assistant .message-text .journey-map-floating-modes {
        justify-content: flex-start;
      }

      .message.assistant .message-text .journey-map-floating-days {
        padding-right: 12px;
      }

      .journey-live-map-shell--modal {
        display: grid;
        gap: 12px;
      }

      .journey-map-modal-days {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
      }

      .journey-map-modal-days .journey-map-day-btn {
        border: 1px solid rgba(26, 77, 84, 0.14);
        border-radius: 999px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.92);
        color: var(--primary);
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
      }

      .journey-map-modal-days .journey-map-day-btn.active {
        background: rgba(26, 77, 84, 0.14);
        border-color: rgba(26, 77, 84, 0.24);
      }

      .journey-map-modal-days .journey-map-day-btn span,
      .journey-map-modal-days .journey-map-day-btn small {
        display: block;
        line-height: 1.2;
      }

      .journey-map-modal-days .journey-map-day-btn small {
        color: #4e6f74;
        font-size: 10px;
        margin-top: 2px;
      }

      .message.assistant .message-text .journey-map-floating-panel .journey-map-day-btn {
        min-width: auto;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 7px 10px;
      }

      .message.assistant .message-text .journey-map-floating-panel .journey-map-day-btn span {
        white-space: nowrap;
      }

      .message.assistant .message-text .journey-map-floating-panel .journey-map-day-btn small {
        color: rgba(86, 110, 116, 0.78);
      }

      .message.assistant .message-text .journey-map-action-btn,
      .message.assistant .message-text .journey-map-style-btn,
      .message.assistant .message-text .journey-map-focus-btn,
      .message.assistant .message-text .journey-map-day-btn,
      .message.assistant .message-text .journey-map-day-mode-btn {
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(26, 77, 84, 0.12);
        color: var(--primary);
        box-shadow: none;
      }

      .message.assistant .message-text .journey-map-action-btn.active,
      .message.assistant .message-text .journey-map-style-btn.active,
      .message.assistant .message-text .journey-map-focus-btn.active,
      .message.assistant .message-text .journey-map-day-btn.active,
      .message.assistant .message-text .journey-map-day-mode-btn.active {
        background: rgba(26, 77, 84, 0.15);
        border-color: rgba(26, 77, 84, 0.22);
      }

      .message.assistant .message-text .journey-map-action-btn.secondary {
        color: rgba(46, 78, 83, 0.92);
        background: rgba(247, 250, 250, 0.94);
      }

      .message.assistant .message-text .journey-map-action-btn:hover,
      .message.assistant .message-text .journey-map-style-btn:hover,
      .message.assistant .message-text .journey-map-focus-btn:hover,
      .message.assistant .message-text .journey-map-day-btn:hover,
      .message.assistant .message-text .journey-map-day-mode-btn:hover {
        border-color: rgba(26, 77, 84, 0.24);
        transform: translateY(-1px);
      }

      .message.assistant .message-text .journey-map-action-btn:disabled,
      .message.assistant .message-text .journey-map-style-btn:disabled,
      .message.assistant .message-text .journey-map-focus-btn:disabled,
      .message.assistant .message-text .journey-map-day-btn:disabled,
      .message.assistant .message-text .journey-map-day-mode-btn:disabled {
        opacity: 0.48;
        cursor: not-allowed;
        transform: none;
      }

      .message.assistant .message-text .journey-map-sidebar {
        max-height: 410px;
        overflow: auto;
        padding-right: 2px;
      }

      .message.assistant .message-text .journey-map-sidebar-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0 2px 2px;
      }

      .message.assistant .message-text .journey-map-sidebar-toolbar span {
        color: #315f66;
        font-size: 12px;
        font-weight: 800;
      }

      .message.assistant .message-text .journey-map-sidebar-toggle,
      .message.assistant .message-text .journey-map-sidebar-open {
        font-size: 11px;
        padding: 7px 10px;
        white-space: nowrap;
      }

      .message.assistant .message-text .journey-map-sidebar-open {
        position: absolute;
        right: 14px;
        bottom: 54px;
        z-index: 501;
        display: none;
        box-shadow: 0 10px 20px rgba(19, 59, 65, 0.16);
      }

      .message.assistant .message-text
        .journey-live-map-shell--studio.journey-map-sidebar-collapsed
        .journey-live-map-shell-body--studio {
        grid-template-columns: minmax(0, 1fr);
      }

      .message.assistant .message-text
        .journey-live-map-shell--studio.journey-map-sidebar-collapsed
        .journey-map-sidebar {
        display: none;
      }

      .message.assistant .message-text
        .journey-live-map-shell--studio.journey-map-sidebar-collapsed
        .journey-map-sidebar-open {
        display: inline-flex;
      }

      .message.assistant .message-text .journey-map-stage-stop.active {
        border-color: rgba(26, 77, 84, 0.24);
        background: rgba(26, 77, 84, 0.1);
      }

      .message.assistant .message-text .journey-live-map-shell--overview-only
        .journey-map-sidebar {
        gap: 12px;
      }

      .message.assistant .message-text .journey-live-map-shell--overview-only
        .journey-map-sidebar-card.compact {
        padding: 16px 18px;
      }

      .message.assistant .message-text .journey-live-map-meta {
        color: var(--text-main);
      }

      .message.assistant .message-text .journey-live-map-meta-label {
        color: #4e6f74;
      }

      .message.assistant .message-text .journey-map-day-insight-points li,
      .message.assistant .message-text .journey-map-route-stop,
      .message.assistant .message-text .journey-highlight-card {
        background: rgba(245, 248, 248, 0.96);
        border-color: rgba(26, 77, 84, 0.1);
      }

      .message.assistant .message-text .journey-map-inline-link,
      .message.assistant .message-text .journey-map-studio-brief-label,
      .message.assistant .message-text .journey-map-sidebar-head span {
        color: #315f66;
      }

      .message.assistant .message-text .journey-map-day-insight-copy,
      .message.assistant .message-text .journey-map-sidebar-copy p,
      .message.assistant .message-text .journey-map-route-stop-note,
      .message.assistant .message-text .journey-highlight-card p {
        color: #3f5f64;
      }

      .message.assistant .message-text .journey-map-sidebar-head strong,
      .message.assistant .message-text .journey-map-day-insight-points li strong,
      .message.assistant .message-text .journey-highlight-card strong,
      .message.assistant .message-text .journey-map-nearby-card strong {
        color: #143f46;
      }

      .message.assistant .message-text .journey-map-sidebar-routes.is-collapsed
        .journey-map-sidebar-day-list {
        display: none;
      }

      .message.assistant .message-text .journey-map-day-list-toggle {
        min-height: 34px;
        padding: 7px 10px;
        color: #143f46;
        white-space: nowrap;
      }

      .message.assistant .message-text .journey-map-sidebar-routes,
      .message.assistant .message-text .journey-map-sidebar-day-card {
        background: rgba(255, 255, 255, 0.96);
        border-color: rgba(26, 77, 84, 0.14);
      }

      .message.assistant .message-text .journey-map-sidebar-day-card.active,
      .message.assistant .message-text .journey-map-sidebar-day-card:has(.journey-map-day-btn.active) {
        background: rgba(231, 247, 245, 0.98);
        border-color: rgba(15, 118, 110, 0.44);
      }

      .message.assistant .message-text .journey-map-sidebar-place-chip {
        background: rgba(247, 251, 251, 0.98);
        border-color: rgba(26, 77, 84, 0.16);
        color: #143f46;
      }

      .message.assistant .message-text .journey-map-sidebar-place-chip.active {
        background: rgba(227, 246, 243, 0.98);
        border-color: rgba(15, 118, 110, 0.44);
      }

      .message.assistant .message-text .journey-map-sidebar-place-chip span {
        display: inline-grid;
        place-items: center;
        background: #0f766e;
        color: #ffffff;
      }

      .message.assistant .message-text .journey-map-sidebar-place-chip strong {
        color: #143f46;
      }

      .message.assistant .message-text .journey-map-sidebar-day-head .journey-map-day-btn small {
        color: #486a70;
      }

      .message.assistant .message-text .journey-poi-bottom-sheet {
        display: none !important;
      }

      .message.assistant .message-text .journey-map-day-insight-points li span,
      .message.assistant .message-text .journey-highlight-card-theme,
      .message.assistant .message-text .journey-stop-label,
      .message.assistant .message-text .journey-map-nearby-card span {
        color: #2f646c;
      }

      @media (max-width: 900px) {
        .message.assistant .message-text .journey-live-map-shell-body--studio {
          grid-template-columns: 1fr;
        }

        .message.assistant .message-text .journey-map-sidebar {
          order: 2;
        }

        .message.assistant .message-text .journey-map-stage {
          order: 1;
        }

        .message.assistant .message-text .journey-map-floating-panel {
          position: static;
          pointer-events: auto;
        }

        .message.assistant .message-text .journey-map-floating-days,
        .message.assistant .message-text .journey-map-floating-modes,
        .message.assistant .message-text .journey-map-floating-actions {
          width: 100%;
        }
      }
/* Visual journey workspace */
.message.assistant:has(.visual-journey-workbench) {
  width: 100%;
  max-width: 100%;
}

.message.assistant:has(.visual-journey-workbench) .message-avatar {
  display: none;
}

.message.assistant:has(.visual-journey-workbench) .message-content {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.message.assistant:has(.visual-journey-workbench) .message-content::before {
  display: none;
}

.visual-journey-workbench {
  display: grid;
  gap: 14px;
  width: 100%;
}

.visual-journey-workbench .journey-preview-board--immersive {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.visual-journey-workbench .journey-preview-board--immersive .journey-preview-head,
.visual-journey-workbench .journey-map-studio--immersive .journey-map-studio-brief,
.visual-journey-workbench .journey-live-map-shell--immersive .journey-live-map-head {
  display: none !important;
}

.visual-journey-workbench .journey-live-map-shell--immersive {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #eef5f4;
  border-color: rgba(15, 118, 110, 0.16);
}

.visual-journey-workbench
  .journey-live-map-shell--immersive
  .journey-live-map-shell-body--studio {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.visual-journey-workbench .journey-live-map-shell--immersive .journey-map-stage {
  gap: 0;
}

.message.assistant
  .message-text
  .visual-journey-workbench
  .journey-live-map-shell--immersive
  .journey-live-map {
  min-height: min(72vh, 720px);
  border: 0;
  border-radius: 24px;
}

.visual-journey-workbench .journey-live-map-shell--immersive .journey-map-floating-panel {
  top: 16px;
  left: 16px;
}

@media (max-width: 720px) {
  .message.assistant .message-text .journey-map-title-pill {
    top: 90px;
    left: 16px;
    max-width: calc(100% - 32px);
    transform: none;
  }
}

.visual-journey-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.95), rgba(255, 255, 255, 0.98));
  border-radius: 8px;
}

.visual-journey-head span {
  display: block;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.visual-journey-head strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
}

.visual-journey-head p {
  margin: 8px 0 0;
  color: #4b5563;
  line-height: 1.7;
}

.visual-journey-badges {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 8px;
  min-width: 180px;
}

.visual-journey-badges span,
.visual-journey-pending span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.visual-journey-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.visual-journey-stat {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
}

.visual-journey-stat span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.visual-journey-stat strong {
  color: #111827;
  font-size: 16px;
}

.visual-journey-stat.ready {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), #fff);
}

.visual-journey-stat.pending {
  border-color: rgba(217, 119, 6, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), #fff);
}

.visual-route-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.visual-route-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visual-route-editor-head span {
  display: block;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.visual-route-editor-head strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 18px;
}

.visual-route-editor-head small {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #475569;
  background: #eef2f7;
  font-size: 12px;
  font-weight: 800;
}

.visual-route-planning-pool {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.88), rgba(255, 255, 255, 0.96));
}

.visual-route-planning-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.visual-route-planning-head span {
  display: block;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.visual-route-planning-head strong {
  display: block;
  margin-top: 2px;
  color: #134e4a;
  font-size: 13px;
  line-height: 1.35;
}

.visual-route-planning-head small {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #0f766e;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.visual-route-planning-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.visual-route-planning-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.visual-route-planning-card strong,
.visual-route-planning-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-route-planning-card strong {
  color: #111827;
  font-size: 13px;
}

.visual-route-planning-card span {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.visual-route-planning-add {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.visual-route-planning-add button,
.visual-route-day-tools button {
  min-height: 30px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: #0f766e;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.visual-route-planning-add button {
  min-width: 36px;
  padding: 0 9px;
}

.visual-route-planning-add button:hover,
.visual-route-day-tools button:hover {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(240, 253, 250, 0.98);
}

.visual-route-planning-empty {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.visual-route-checklist {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.78), rgba(255, 255, 255, 0.94));
}

.visual-route-checklist-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.visual-route-checklist-head span {
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.visual-route-checklist-head strong {
  display: block;
  margin-top: 3px;
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
}

.visual-route-checklist-head small {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 251, 235, 0.96);
  font-size: 12px;
  font-weight: 900;
}

.visual-route-checklist-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 7px;
}

.visual-route-check-task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(146, 64, 14, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.visual-route-check-task > span {
  align-self: start;
  min-width: 48px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 251, 235, 0.96);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.visual-route-check-task.estimated > span,
.visual-route-check-task.ready > span {
  color: #0f766e;
  background: rgba(240, 253, 250, 0.95);
}

.visual-route-check-task strong,
.visual-route-check-task small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-route-check-task strong {
  color: #334155;
  font-size: 12px;
}

.visual-route-check-task small {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.visual-route-checklist-empty {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.visual-route-day-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.visual-route-day-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  background: #fff;
}

.visual-route-day-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.visual-route-day-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.visual-route-day-tools small {
  padding: 5px 8px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(240, 253, 250, 0.95);
  font-size: 12px;
  font-weight: 800;
}

.visual-route-day-tools button {
  padding: 0 10px;
}

.visual-route-day-focus {
  min-height: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.visual-route-day-focus span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.visual-route-day-focus strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.visual-route-stop-list {
  display: grid;
  gap: 8px;
}

.visual-route-stop-entry {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.visual-route-stop-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.visual-route-stop-row.is-locked {
  border-color: rgba(15, 118, 110, 0.18);
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.72), rgba(248, 250, 252, 0.98));
}

.visual-route-stop-row.is-locked .visual-route-stop-main > span {
  background: #134e4a;
}

.visual-route-stop-main {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.visual-route-stop-main > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.visual-route-stop-main strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-route-stop-main strong {
  color: #111827;
  font-size: 14px;
}

.visual-route-stop-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
  min-width: 0;
}

.visual-route-stop-pill {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.visual-route-stop-pill.time {
  color: #0f766e;
  background: rgba(240, 253, 250, 0.98);
}

.visual-route-stop-pill.duration {
  color: #334155;
  background: rgba(226, 232, 240, 0.82);
}

.visual-route-stop-pill.ticket.ready {
  color: #047857;
  background: rgba(209, 250, 229, 0.9);
}

.visual-route-stop-pill.ticket.pending {
  color: #92400e;
  background: rgba(255, 251, 235, 0.96);
}

.visual-route-stop-pill.ticket.neutral {
  color: #475569;
  background: rgba(241, 245, 249, 0.92);
}

.visual-route-stop-lock-note {
  display: block;
  margin-top: 4px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
}

.visual-route-segment {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: start;
  min-width: 0;
  margin: -2px 8px 0 8px;
  padding: 7px 8px;
  border: 1px solid rgba(15, 118, 110, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #475569;
}

.visual-route-segment-line {
  position: relative;
  width: 24px;
  height: 20px;
}

.visual-route-segment-line::before {
  content: "";
  position: absolute;
  left: 11px;
  top: -8px;
  bottom: -8px;
  border-left: 2px dashed rgba(15, 118, 110, 0.24);
}

.visual-route-segment strong,
.visual-route-segment small,
.visual-route-segment em,
.visual-route-segment-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-route-segment-main {
  min-width: 0;
}

.visual-route-segment strong {
  display: block;
  color: #0f766e;
  font-size: 12px;
}

.visual-route-segment small {
  display: block;
  margin-top: 1px;
  color: #64748b;
  font-size: 11px;
}

.visual-route-segment-reason {
  color: #94a3b8;
}

.visual-route-segment em {
  align-self: center;
  color: #334155;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.visual-route-segment-status {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.visual-route-segment.ready .visual-route-segment-status {
  color: #047857;
  background: rgba(209, 250, 229, 0.9);
}

.visual-route-segment.estimated .visual-route-segment-status,
.visual-route-segment.pending .visual-route-segment-status {
  color: #92400e;
  background: rgba(255, 251, 235, 0.96);
}

.visual-route-segment.is-mode-locked {
  border-color: rgba(15, 118, 110, 0.18);
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.55), rgba(255, 255, 255, 0.84));
}

.visual-route-mode-options {
  grid-column: 2 / -1;
  min-width: 0;
}

.visual-route-mode-options summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  color: #0f766e;
  background: rgba(240, 253, 250, 0.82);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  list-style: none;
}

.visual-route-mode-options summary::-webkit-details-marker {
  display: none;
}

.visual-route-mode-options summary strong {
  display: inline;
  color: #64748b;
  font-size: 11px;
}

.visual-route-mode-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
  min-width: 0;
}

.visual-route-mode-menu button {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 64px;
  padding: 7px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  color: #475569;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-align: left;
}

.visual-route-mode-menu button strong,
.visual-route-mode-menu button span,
.visual-route-mode-menu button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-route-mode-menu button strong {
  color: #0f766e;
  font-size: 12px;
}

.visual-route-mode-menu button span {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.visual-route-mode-menu button small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.25;
}

.visual-route-mode-menu button.is-selected {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(240, 253, 250, 0.95);
}

.visual-route-mode-menu .visual-route-mode-lock {
  grid-column: 1 / -1;
  min-height: 30px;
  justify-content: center;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.visual-route-mode-menu .visual-route-mode-lock.is-locked {
  color: #92400e;
  background: rgba(255, 251, 235, 0.96);
}

.visual-route-stop-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 5px;
  align-items: start;
}

.visual-route-stop-actions button,
.visual-route-more-actions > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: #0f766e;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.visual-route-more-actions {
  position: relative;
  min-width: 0;
}

.visual-route-more-actions > summary {
  list-style: none;
}

.visual-route-more-actions > summary::-webkit-details-marker {
  display: none;
}

.visual-route-stop-actions button:hover:not(:disabled),
.visual-route-more-actions > summary:hover {
  border-color: rgba(15, 118, 110, 0.36);
  background: rgba(240, 253, 250, 0.95);
}

.visual-route-stop-actions button:disabled {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(241, 245, 249, 0.72);
  cursor: not-allowed;
}

.visual-route-more-menu {
  position: absolute;
  z-index: 8;
  top: 36px;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(74px, 1fr));
  gap: 6px;
  min-width: 156px;
  padding: 8px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.visual-route-more-menu button {
  width: 100%;
  min-width: 0;
  gap: 5px;
  padding: 0 8px;
  font-size: 12px;
  white-space: nowrap;
}

.visual-route-time-editor {
  min-width: 0;
}

.visual-route-time-editor[open] {
  grid-column: 1 / -1;
}

.visual-route-time-editor summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: #0f766e;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  list-style: none;
}

.visual-route-time-editor summary::-webkit-details-marker {
  display: none;
}

.visual-route-time-editor summary:hover {
  border-color: rgba(15, 118, 110, 0.36);
  background: rgba(240, 253, 250, 0.95);
}

.visual-route-time-fields {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 96px auto;
  gap: 6px;
  margin-top: 6px;
  min-width: 0;
}

.visual-route-time-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.visual-route-time-fields input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  color: #0f172a;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.visual-route-more-menu .visual-route-time-save {
  align-self: end;
  height: 32px;
  color: #fff;
  background: #0f766e;
}

.visual-route-stop-actions [data-journey-edit-action="delete"] {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.16);
}

.visual-route-empty {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  color: #64748b;
  background: #f8fafc;
  font-size: 13px;
}

.journey-day-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.journey-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.journey-status-chip.ready {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.95);
}

.journey-status-chip.pending {
  color: #a16207;
  background: rgba(254, 243, 199, 0.95);
}

.planning-trace-panel {
  border-left: 3px solid #14b8a6;
  padding: 10px 0 10px 14px;
  color: #6b7280;
}

.planning-trace-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #6b7280;
  font-weight: 700;
}

.planning-trace-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.planning-trace-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
}

.planning-trace-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  background: #22c55e;
  font-weight: 800;
}

.planning-trace-item strong {
  display: block;
  color: #4b5563;
  font-size: 14px;
}

.planning-trace-item p {
  margin: 4px 0;
  color: #8a9099;
  line-height: 1.65;
}

.planning-trace-item small {
  color: #9ca3af;
}

.visual-day-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.visual-day-strip article {
  min-height: 116px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.visual-day-focus-btn {
  width: 100%;
  min-height: 116px;
  padding: 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.visual-day-focus-btn:hover {
  background: rgba(240, 253, 250, 0.9);
}

.visual-route-day-focus.visual-day-focus-btn {
  min-height: 0;
  padding: 0;
}

.visual-route-day-focus.visual-day-focus-btn:hover {
  background: transparent;
}

.visual-day-strip span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.visual-day-strip strong {
  display: block;
  margin-top: 6px;
  color: #111827;
  line-height: 1.35;
}

.visual-day-strip p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.visual-poi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.visual-poi-card {
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.visual-poi-card summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
}

.visual-poi-card summary > span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: #14b8a6;
  font-weight: 800;
}

.visual-poi-card strong {
  color: #111827;
}

.visual-poi-card small {
  display: block;
  margin-top: 3px;
  color: #8a9099;
}

.visual-poi-media {
  margin: 0 12px 12px;
  min-height: 118px;
  overflow: hidden;
  border-radius: 8px;
  background: #e5eef2;
}

.visual-poi-media img {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
  display: block;
}

.visual-poi-media--fallback {
  display: grid;
  place-items: center;
  color: #fff;
}

.visual-poi-media--fallback span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 24px;
  font-weight: 900;
}

.visual-poi-media--fallback.lake {
  background: linear-gradient(135deg, #0284c7, #22d3ee);
}

.visual-poi-media--fallback.temple {
  background: linear-gradient(135deg, #7c2d12, #f59e0b);
}

.visual-poi-media--fallback.mountain {
  background: linear-gradient(135deg, #334155, #94a3b8);
}

.visual-poi-media--fallback.city {
  background: linear-gradient(135deg, #312e81, #60a5fa);
}

.visual-poi-media--fallback.forest {
  background: linear-gradient(135deg, #166534, #86efac);
}

.visual-poi-media--fallback.street {
  background: linear-gradient(135deg, #831843, #fb7185);
}

.visual-poi-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 12px 10px;
}

.visual-poi-evidence span {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-poi-evidence span.ready {
  background: rgba(240, 253, 250, 0.95);
  color: #0f766e;
}

.visual-poi-evidence span.pending {
  background: #fffbeb;
  color: #92400e;
}

.visual-poi-card p,
.visual-poi-card em,
.visual-poi-meta,
.visual-poi-actions {
  margin: 0 12px 12px;
}

.visual-poi-card p {
  color: #4b5563;
  line-height: 1.65;
}

.visual-poi-card em {
  display: block;
  color: #8a9099;
  font-style: normal;
  line-height: 1.5;
}

.visual-poi-meta,
.visual-poi-actions,
.visual-journey-pending {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visual-poi-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
}

.visual-poi-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  color: #6b7280;
  background: #fff;
}

.visual-poi-actions .visual-poi-focus-btn {
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(240, 253, 250, 0.95);
  cursor: pointer;
}

.visual-poi-actions [data-journey-edit-action] {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.24);
  cursor: pointer;
}

.visual-journey-pending {
  padding: 4px 0;
}

@media (max-width: 720px) {
  .visual-journey-head {
    display: grid;
  }

  .visual-journey-badges {
    justify-content: flex-start;
    min-width: 0;
  }

  .visual-route-planning-head {
    display: grid;
  }

  .visual-route-planning-head small {
    width: max-content;
  }

  .visual-route-planning-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-route-planning-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-route-planning-add {
    justify-content: flex-start;
  }

  .visual-route-planning-add button {
    min-width: 44px;
    min-height: 34px;
  }

  .visual-route-checklist-head {
    display: grid;
  }

  .visual-route-checklist-head small {
    width: max-content;
  }

  .visual-route-checklist-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-route-check-task strong,
  .visual-route-check-task small {
    white-space: normal;
  }

  .visual-route-day-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-route-day-card header {
    align-items: start;
  }

  .visual-route-day-tools {
    display: grid;
    justify-items: end;
  }

  .visual-route-stop-row {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    padding: 9px;
  }

  .visual-route-stop-main {
    grid-column: 1 / -1;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .visual-route-stop-main > span {
    width: 32px;
    height: 32px;
  }

  .visual-route-stop-main strong,
  .visual-route-stop-lock-note {
    white-space: normal;
  }

  .visual-route-stop-details {
    gap: 5px;
  }

  .visual-route-stop-pill {
    min-height: 23px;
    white-space: normal;
  }

  .visual-route-segment {
    grid-template-columns: 24px minmax(0, 1fr);
    margin-right: 0;
    margin-left: 0;
  }

  .visual-route-segment-status {
    grid-column: 2 / -1;
    justify-self: start;
    max-width: 100%;
  }

  .visual-route-segment em {
    grid-column: 2 / -1;
    justify-self: start;
    white-space: normal;
  }

  .visual-route-segment small {
    white-space: normal;
  }

  .visual-route-mode-options {
    grid-column: 2 / -1;
  }

  .visual-route-mode-menu {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-route-mode-menu button {
    min-height: 54px;
  }

  .visual-route-mode-menu button strong,
  .visual-route-mode-menu button span,
  .visual-route-mode-menu button small {
    white-space: normal;
  }

  .visual-route-stop-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .visual-route-more-actions {
    position: static;
  }

  .visual-route-stop-actions button,
  .visual-route-more-actions > summary {
    width: 100%;
    height: 36px;
    border-radius: 12px;
  }

  .visual-route-more-actions[open] {
    display: block;
  }

  .visual-route-more-actions[open] summary {
    width: 100%;
  }

  .visual-route-stop-row:has(.visual-route-more-actions[open]) {
    padding-bottom: 148px;
  }

  .visual-route-stop-row:has(.visual-route-time-editor[open]) {
    padding-bottom: 330px;
  }

  .visual-route-more-menu {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: auto;
    margin-top: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.72);
  }

  .visual-route-more-menu button {
    height: 36px;
    justify-content: center;
    font-size: 12px;
  }

  .visual-route-time-editor summary {
    height: 36px;
  }

  .visual-route-time-fields {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .visual-route-more-menu .visual-route-time-save {
    grid-column: 1 / -1;
    height: 36px;
  }
}
