    .workspace {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 280px minmax(0, 1fr);
    }
    .history-sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      max-height: 100vh;
      overflow: hidden;
      border-right: 1px solid rgba(31, 122, 90, 0.08);
      background: linear-gradient(180deg, #f7faf8 0%, #f1f5f2 100%);
      padding: 16px 12px 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 0;
    }
    .history-sidebar-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      flex: 0 0 auto;
    }
    .sidebar-tab-bar,
    .history-new-btn,
    .health-actions {
      flex: 0 0 auto;
    }
    .history-sidebar-kicker {
      font-size: 11px;
      color: #648274;
      letter-spacing: 0.04em;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .history-sidebar-title {
      font-size: 19px;
      font-weight: 740;
      line-height: 1.15;
      color: #102018;
    }
    .history-sidebar-meta {
      color: #72857a;
      font-size: 12px;
      line-height: 1.65;
      padding: 0 2px;
      flex: 0 0 auto;
    }
    .history-sidebar-search {
      display: grid;
      gap: 6px;
      flex: 0 0 auto;
      position: sticky;
      top: 0;
      z-index: 2;
      background: linear-gradient(180deg, rgba(247,250,248,0.98), rgba(247,250,248,0.90));
      padding-bottom: 4px;
    }
    .formula-library-sidebar-searchbox {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 10px;
      border: 1px solid rgba(31,122,90,0.12);
      border-radius: 14px;
      background: rgba(255,255,255,0.92);
      box-shadow: 0 6px 16px rgba(15,23,42,0.03);
    }
    .formula-library-sidebar-searchbox:focus-within {
      border-color: rgba(31,122,90,0.28);
      box-shadow: 0 0 0 3px rgba(31,122,90,0.08);
    }
    .formula-library-search-icon {
      color: var(--accent-strong);
      font-size: 14px;
      line-height: 1;
    }
    .formula-library-sidebar-searchbox input {
      border: 0;
      outline: 0;
      width: 100%;
      min-width: 0;
      height: 40px;
      padding: 0;
      background: transparent;
      color: var(--ink);
      font: inherit;
      font-size: 13px;
    }
    .formula-library-sidebar-searchbox input::placeholder {
      color: #7b8a83;
    }
    .formula-library-search-clear {
      width: 24px;
      height: 24px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: #667085;
      font-size: 16px;
      line-height: 1;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transition: background 120ms ease, color 120ms ease, opacity 120ms ease;
    }
    .formula-library-search-clear.is-visible {
      opacity: 1;
      pointer-events: auto;
    }
    .formula-library-search-clear:hover {
      background: rgba(31,122,90,0.08);
      color: var(--accent-strong);
    }
    .formula-library-search-status {
      color: #667085;
      font-size: 11px;
      line-height: 1.4;
      padding: 0 2px;
    }
    .history-new-btn {
      width: 100%;
      border: 0;
      border-radius: 14px;
      padding: 12px 14px;
      font: inherit;
      font-weight: 700;
      color: white;
      background: #175f45;
      box-shadow: 0 8px 18px rgba(31, 122, 90, 0.10);
      cursor: pointer;
      text-align: left;
    }
    .history-sidebar-close {
      display: none;
      padding: 8px 12px;
      border-radius: 12px;
      font-size: 13px;
    }
    .history-sidebar-backdrop[hidden] {
      display: none;
    }
    .history-sidebar-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.42);
      backdrop-filter: blur(6px);
      z-index: 39;
    }
    .app {
      min-height: 100vh;
      display: grid;
      grid-template-rows: auto 1fr auto;
      min-width: 0;
    }
    .mobile-header,
    .mobile-bottom-nav {
      display: none;
    }
    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(252, 253, 252, 0.88);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(31, 122, 90, 0.08);
    }
    .topbar-inner {
      max-width: 980px;
      margin: 0 auto;
      padding: 12px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .history-toggle-btn {
      display: none;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }
    .brand-mark {
      width: 36px;
      height: 36px;
      border-radius: 12px;
      object-fit: cover;
      box-shadow: 0 8px 18px rgba(31, 122, 90, 0.08);
    }
    .brand-text {
      min-width: 0;
    }
    .brand-title {
      font-size: 15px;
      font-weight: 740;
    }
    .brand-subtitle {
      font-size: 12px;
      color: #73867b;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ghost-btn, .send-btn {
      border: 0;
      border-radius: 14px;
      padding: 9px 14px;
      font: inherit;
      font-weight: 600;
      cursor: pointer;
    }
    .ghost-btn {
      color: var(--ink);
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid rgba(31, 122, 90, 0.10);
    }
    .send-btn {
      color: white;
      background: #175f45;
      box-shadow: 0 8px 18px rgba(31, 122, 90, 0.10);
    }
    .account-summary {
      display: grid;
      gap: 2px;
      min-width: 0;
      text-align: right;
      padding: 8px 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.88);
      cursor: default;
    }
    .account-plan {
      font-size: 12px;
      font-weight: 700;
      color: var(--accent-strong);
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }
    .account-usage {
      font-size: 11px;
      color: var(--muted);
      white-space: nowrap;
    }
    .account-dock {
      flex: 0 0 auto;
      padding-top: 10px;
      border-top: 1px solid rgba(31, 122, 90, 0.08);
    }
    .pwa-install-prompt {
      position: fixed;
      left: 14px;
      right: 14px;
      bottom: calc(76px + env(safe-area-inset-bottom));
      z-index: 86;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      max-width: 560px;
      margin: 0 auto;
      border: 1px solid rgba(31, 122, 90, 0.16);
      border-radius: 20px;
      padding: 12px 12px 12px 14px;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(16px);
      box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    }
    .pwa-install-prompt[hidden] {
      display: none;
    }
    .pwa-install-main {
      min-width: 0;
      display: grid;
      gap: 4px;
    }
    .pwa-install-title {
      color: #102018;
      font-size: 14px;
      line-height: 1.25;
      font-weight: 820;
    }
    .pwa-install-copy {
      color: #31483d;
      font-size: 13px;
      line-height: 1.55;
    }
    .pwa-install-steps {
      margin: 4px 0 0;
      padding-left: 18px;
      color: #516057;
      font-size: 12px;
      line-height: 1.55;
    }
    .pwa-install-steps[hidden] {
      display: none;
    }
    .pwa-install-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .pwa-install-btn,
    .pwa-install-close {
      border: 0;
      font: inherit;
      cursor: pointer;
    }
    .pwa-install-btn {
      border-radius: 999px;
      padding: 9px 12px;
      color: #ffffff;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      font-size: 12px;
      font-weight: 760;
      white-space: nowrap;
    }
    .pwa-install-close {
      width: 30px;
      height: 30px;
      border-radius: 999px;
      color: var(--muted);
      background: rgba(15, 23, 42, 0.06);
      font-size: 18px;
      line-height: 1;
    }
    .account-menu-button {
      display: flex;
      align-items: center;
      gap: 9px;
      width: 100%;
      min-width: 0;
      border: 1px solid rgba(31, 122, 90, 0.10);
      border-radius: 14px;
      padding: 8px 9px;
      background: rgba(255, 255, 255, 0.90);
      cursor: pointer;
      text-align: left;
      color: var(--ink);
      transition: background 140ms ease, border-color 140ms ease;
    }
    .account-menu-button:hover {
      background: rgba(255, 255, 255, 0.96);
      border-color: rgba(31, 122, 90, 0.18);
    }
    .account-avatar {
      width: 30px;
      height: 30px;
      border-radius: 10px;
      display: inline-grid;
      place-items: center;
      flex: 0 0 auto;
      color: white;
      font-size: 13px;
      font-weight: 800;
      background-color: var(--accent);
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      background-repeat: no-repeat;
    }
    .account-menu-copy {
      min-width: 0;
      display: grid;
      gap: 2px;
    }
    .account-menu-title {
      font-size: 12px;
      font-weight: 760;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .account-menu-subtitle {
      font-size: 11px;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ghost-btn:disabled, .send-btn:disabled {
      cursor: wait;
      opacity: 0.68;
    }
    .thread-shell {
      width: 100%;
    }
    .thread {
      max-width: 980px;
      margin: 0 auto;
      padding: 16px 18px 160px;
      display: grid;
      gap: 18px;
      overflow-anchor: none;
    }
    .welcome {
      min-height: calc(100vh - 240px);
      display: grid;
      gap: 20px;
      align-content: start;
      padding: 20px 0 8px;
    }
    .welcome-hero {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(31, 122, 90, 0.10);
      border-radius: 24px;
      background:
        radial-gradient(circle at top left, rgba(31, 122, 90, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff, #f8fbf9 72%, #f5faf7);
      box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
      padding: 22px 22px 20px;
      text-align: left;
    }
    .welcome-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(31, 122, 90, 0.06);
      color: var(--accent-strong);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
      margin-bottom: 14px;
    }
    .welcome-card {
      max-width: 680px;
    }
    .welcome-title {
      margin: 0 0 10px;
      font-size: clamp(28px, 4.2vw, 42px);
      line-height: 1.06;
      font-weight: 760;
      letter-spacing: -0.04em;
      text-wrap: balance;
    }
    .welcome-subtitle {
      margin: 0;
      color: #677a70;
      line-height: 1.76;
      font-size: 14px;
      max-width: 60ch;
    }
    .welcome-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
    }
    .welcome-badge {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 7px 11px;
      background: rgba(255, 255, 255, 0.86);
      border: 1px solid rgba(31, 122, 90, 0.12);
      color: #183a2f;
      font-size: 12px;
      font-weight: 700;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    }
    .welcome-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    .feature-card {
      text-align: left;
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 18px 18px 16px;
      background: linear-gradient(180deg, #ffffff, #fafbfb);
      cursor: pointer;
      box-shadow: var(--shadow);
      transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
    }
    .feature-card:hover {
      transform: translateY(-2px);
      border-color: rgba(31, 122, 90, 0.26);
      box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    }
    .feature-card-accent {
      background: linear-gradient(180deg, #f8fcfa, #eef7f2);
      border-color: rgba(31, 122, 90, 0.22);
    }
    .feature-title {
      font-size: 15px;
      font-weight: 780;
      color: #102018;
      margin-bottom: 8px;
    }
    .feature-body {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.72;
    }
    .welcome-suggestions {
      border: 1px solid var(--line);
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.8);
      padding: 16px 16px 14px;
    }
    .welcome-section-title {
      font-size: 13px;
      font-weight: 780;
      color: #123b2d;
      margin-bottom: 12px;
      letter-spacing: 0.02em;
    }
    .prompt-chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .prompt-chip {
      border: 1px solid rgba(31, 122, 90, 0.14);
      background: #ffffff;
      color: #1f2328;
      border-radius: 16px;
      padding: 10px 12px;
      font: inherit;
      font-size: 13px;
      line-height: 1.45;
      cursor: pointer;
      text-align: left;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
      transition: border-color 140ms ease, transform 140ms ease;
    }
    .prompt-chip:hover {
      transform: translateY(-1px);
      border-color: rgba(31, 122, 90, 0.26);
    }
    .welcome-footnote {
      padding: 0 4px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.75;
    }
    .case-workbench {
      display: grid;
      gap: 8px;
      padding: 8px 10px;
      border: 1px solid rgba(31, 122, 90, 0.12);
      border-radius: 14px;
      background: rgba(248, 252, 250, 0.78);
      margin-bottom: 8px;
    }
    .case-workbench-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .case-workbench-kicker {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.02em;
      color: var(--accent-strong);
      margin-bottom: 1px;
      white-space: nowrap;
    }
    .case-workbench-title {
      font-size: 12px;
      line-height: 1.35;
      color: var(--muted);
      font-weight: 520;
      max-width: 36ch;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .case-workbench-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      justify-content: flex-end;
    }
    .case-workbench-actions .ghost-btn {
      min-height: 32px;
      padding: 6px 9px;
      border-radius: 11px;
      font-size: 12px;
    }
    .case-template-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .case-template-grid[hidden] {
      display: none;
    }
    .case-template-chip {
      border: 1px solid rgba(31, 122, 90, 0.12);
      background: rgba(255, 255, 255, 0.92);
      color: #183a2f;
      border-radius: 999px;
      padding: 7px 11px;
      font: inherit;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
      transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
    }
    .case-template-chip:hover {
      transform: translateY(-1px);
      border-color: rgba(31, 122, 90, 0.26);
      background: #ffffff;
    }
    .case-form-panel {
      display: grid;
      gap: 10px;
      padding-top: 4px;
      border-top: 1px dashed rgba(31, 122, 90, 0.16);
    }
    .case-form-panel[hidden] {
      display: none;
    }
    .case-form-backdrop {
      display: none;
    }
    .case-form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .case-form-field {
      display: grid;
      gap: 6px;
      align-content: start;
    }
    .case-form-field-wide {
      grid-column: 1 / -1;
    }
    .case-form-label {
      font-size: 12px;
      font-weight: 780;
      color: #123b2d;
      letter-spacing: 0.02em;
    }
    .case-form-input {
      width: 100%;
      min-width: 0;
      border: 1px solid rgba(15, 23, 42, 0.1);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.96);
      padding: 10px 12px;
      font: inherit;
      font-size: 13px;
      line-height: 1.55;
      color: var(--ink);
      outline: none;
      transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
    }
    .case-form-input:focus {
      border-color: rgba(31, 122, 90, 0.34);
      box-shadow: 0 0 0 3px rgba(31, 122, 90, 0.08);
      background: #ffffff;
    }
    .case-form-textarea {
      resize: vertical;
      min-height: 72px;
    }
    .case-form-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-start;
      padding-top: 2px;
    }
    .case-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--muted);
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin: 6px 0 2px;
    }
    .case-divider::before,
    .case-divider::after {
      content: "";
      height: 1px;
      flex: 1;
      background: var(--line);
    }
    .message-row {
      display: flex;
      gap: 14px;
      align-items: flex-start;
    }
    .message-row.user {
      justify-content: flex-end;
    }
    .avatar {
      flex: 0 0 34px;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      font-size: 13px;
      font-weight: 700;
      color: white;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      box-shadow: var(--shadow);
    }
    .user .avatar {
      background: linear-gradient(135deg, #0f172a, #334155);
      order: 2;
    }
    .bubble {
      max-width: min(760px, calc(100vw - 96px));
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 16px 18px;
      line-height: 1.8;
      white-space: pre-wrap;
      box-shadow: var(--shadow);
    }
    .user .bubble {
      background: #ffffff;
      border-bottom-right-radius: 8px;
    }
    .assistant .bubble {
      border-bottom-left-radius: 8px;
      background: #fcfcfd;
    }
    .assistant .bubble.is-streaming {
      min-height: 54px;
    }
    .assistant-live-answer {
      white-space: pre-wrap;
      word-break: break-word;
      overflow-wrap: anywhere;
    }
    .assistant-live-answer[data-empty="true"]::before {
      content: "正在思考...";
      color: var(--muted);
    }
    .assistant-live-answer-text {
      white-space: pre-wrap;
    }
    .assistant-live-cursor {
      display: inline-block;
      width: 0.55em;
      height: 1.18em;
      margin-left: 3px;
      border-radius: 999px;
      background: rgba(31, 122, 90, 0.55);
      vertical-align: -0.18em;
      animation: assistant-live-cursor-blink 1.05s steps(2, start) infinite;
    }
    @keyframes assistant-live-cursor-blink {
      0%, 45% {
        opacity: 1;
      }
      46%, 100% {
        opacity: 0.18;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .assistant-live-cursor {
        animation: none;
      }
    }
    .bubble-rich {
      display: grid;
      gap: 8px;
    }
    .case-answer {
      display: grid;
      gap: 10px;
    }
    .case-role-hint {
      display: grid;
      gap: 4px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(31, 122, 90, 0.18);
      background: linear-gradient(180deg, rgba(31, 122, 90, 0.1), rgba(31, 122, 90, 0.03));
    }
    .case-role-hint-label {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.04em;
      color: var(--accent-strong);
    }
    .case-role-hint-detail {
      font-size: 13px;
      line-height: 1.55;
      color: var(--ink-subtle);
    }
    .case-answer-card {
      display: grid;
      gap: 8px;
      padding: 12px 13px;
      border-radius: 16px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      background: #ffffff;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    }
    .case-answer-card-primary {
      background: linear-gradient(180deg, rgba(31, 122, 90, 0.16), rgba(31, 122, 90, 0.05));
      border-color: rgba(31, 122, 90, 0.22);
    }
    .case-answer-card-secondary {
      background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.02));
    }
    .case-answer-card-formula {
      background: linear-gradient(180deg, rgba(184, 115, 51, 0.12), rgba(184, 115, 51, 0.04));
      border-color: rgba(184, 115, 51, 0.18);
    }
    .case-answer-card-missing {
      background: linear-gradient(180deg, rgba(23, 92, 211, 0.08), rgba(23, 92, 211, 0.02));
      border-color: rgba(23, 92, 211, 0.14);
    }
    .case-answer-card-warning {
      background: linear-gradient(180deg, rgba(180, 35, 24, 0.08), rgba(180, 35, 24, 0.02));
      border-color: rgba(180, 35, 24, 0.12);
    }
    .case-answer-card-title {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent-strong);
    }
    .case-answer-card-body {
      display: grid;
      gap: 8px;
    }
    .case-answer-card-body .bubble-rich {
      gap: 6px;
    }
    .answer-line {
      white-space: pre-wrap;
      word-break: break-word;
    }
    .answer-table-wrap {
      width: 100%;
      overflow-x: auto;
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 14px;
      background: #ffffff;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
    .answer-table {
      width: 100%;
      min-width: 420px;
      border-collapse: collapse;
      font-size: 14px;
      line-height: 1.7;
    }
    .answer-table th,
    .answer-table td {
      padding: 10px 12px;
      text-align: left;
      vertical-align: top;
      border-bottom: 1px solid rgba(15, 23, 42, 0.08);
      white-space: normal;
      word-break: break-word;
    }
    .answer-table th {
      background: linear-gradient(180deg, rgba(31, 122, 90, 0.12), rgba(31, 122, 90, 0.04));
      color: #123b2d;
      font-weight: 800;
    }
    .answer-table tbody tr:nth-child(even) td {
      background: rgba(248, 250, 252, 0.7);
    }
    .answer-table tbody tr:last-child td {
      border-bottom: 0;
    }
    .answer-line-core {
      font-size: 16px;
      line-height: 1.95;
    }
    .answer-line-main-formula {
      display: grid;
      gap: 6px;
      padding: 10px 12px;
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(31, 122, 90, 0.12), rgba(31, 122, 90, 0.04));
      border: 1px solid rgba(31, 122, 90, 0.16);
    }
    .answer-formula-label {
      display: inline-block;
      color: #475467;
      font-weight: 700;
      letter-spacing: 0.02em;
    }
    .answer-formula-label-main {
      color: var(--accent-strong);
      font-size: 13px;
    }
    .answer-formula-name {
      display: inline-block;
      padding: 2px 10px;
      border-radius: 999px;
      background: rgba(31, 122, 90, 0.14);
      color: #0f5137;
      font-weight: 850;
      font-size: 16px;
      letter-spacing: 0.01em;
    }
	    .answer-formula-name-main {
	      display: block;
	      width: fit-content;
	      max-width: 100%;
	      padding: 6px 14px;
      font-size: 20px;
      line-height: 1.5;
      border-radius: 14px;
	      background: rgba(31, 122, 90, 0.18);
	      box-shadow: inset 0 0 0 1px rgba(31, 122, 90, 0.12);
	    }
	    .prescription-recommendation-panel {
	      display: grid;
	      gap: 14px;
	      padding: 16px;
	      border: 1px solid rgba(31, 122, 90, 0.12);
	      border-radius: 18px;
	      background: rgba(255, 255, 255, 0.96);
	      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
	    }
	    .prescription-recommendation-head {
	      display: grid;
	      gap: 3px;
	      padding: 0 1px;
	    }
	    .prescription-recommendation-kicker {
	      font-size: 12px;
	      line-height: 1.35;
	      font-weight: 760;
	      letter-spacing: 0.06em;
	      color: #9a6a2f;
	    }
	    .prescription-recommendation-title {
	      font-size: 14px;
	      line-height: 1.55;
	      font-weight: 650;
	      color: #475467;
	    }
	    .prescription-recommendation-note {
	      padding: 9px 11px;
	      border: 1px solid rgba(31, 122, 90, 0.08);
	      border-radius: 12px;
	      background: rgba(31, 122, 90, 0.035);
	      color: #475467;
	      font-size: 14px;
	      line-height: 1.7;
	    }
	    .prescription-candidate-list {
	      display: grid;
	      gap: 13px;
	    }
	    .prescription-candidate-card {
	      display: grid;
	      gap: 10px;
	      padding: 17px 18px;
	      border: 1px solid rgba(31, 122, 90, 0.11);
	      border-radius: 18px;
	      background: #ffffff;
	      box-shadow: 0 6px 16px rgba(15, 23, 42, 0.025);
	    }
	    .prescription-candidate-card::before {
	      display: none;
	    }
	    .prescription-candidate-label {
	      width: fit-content;
	      max-width: 100%;
	      padding: 3px 9px;
	      border: 1px solid rgba(154, 106, 47, 0.14);
	      border-radius: 999px;
	      color: #8a5a24;
	      background: rgba(154, 106, 47, 0.055);
	      font-size: 12px;
	      line-height: 1.35;
	      font-weight: 680;
	      letter-spacing: 0.02em;
	    }
	    .prescription-candidate-name {
	      width: fit-content;
	      max-width: 100%;
	      padding: 0;
	      border-radius: 0;
	      background: transparent;
	      color: #123b2d;
	      font-size: 24px;
	      line-height: 1.28;
	      font-weight: 780;
	      letter-spacing: -0.01em;
	      box-shadow: none;
	    }
	    .prescription-candidate-details {
	      display: grid;
	      gap: 9px;
	      color: #344054;
	      font-size: 15.5px;
	      line-height: 1.7;
	    }
	    .prescription-candidate-detail {
	      display: grid;
	      gap: 3px;
	      padding: 0;
	      border: 0;
	      border-radius: 0;
	      background: transparent;
	      white-space: normal;
	      word-break: break-word;
	    }
	    .prescription-candidate-detail-plain {
	      color: #344054;
	      line-height: 1.7;
	    }
	    .prescription-detail-label {
	      color: #123b2d;
	      font-size: 15px;
	      line-height: 1.45;
	      font-weight: 760;
	    }
	    .prescription-detail-body {
	      color: #344054;
	      font-size: 15.5px;
	      line-height: 1.72;
	      font-weight: 400;
	    }
	    .answer-herb-dose {
	      color: #0f5137;
	      font-weight: 800;
	    }
	    .prescription-herb-line {
	      display: grid;
	      gap: 7px;
	      align-items: start;
	    }
	    .prescription-herb-label {
	      width: fit-content;
	    }
	    .prescription-herb-list {
	      display: flex;
	      flex-wrap: wrap;
	      align-items: baseline;
	      gap: 4px 0;
	      max-width: 100%;
	      color: #1f3d35;
	      font-size: 16px;
	      line-height: 1.9;
	      word-break: break-word;
	      overflow-wrap: anywhere;
	    }
	    .herb-inline-item {
	      display: inline-flex;
	      align-items: baseline;
	      max-width: 100%;
	      white-space: nowrap;
	      margin-right: 2px;
	    }
	    .herb-inline-name {
	      color: #116149;
	      font-weight: 760;
	      margin-right: 4px;
	    }
	    .herb-inline-dose {
	      color: #31483f;
	      font-weight: 500;
	    }
    .answer-section-label {
      display: inline-block;
      padding: 1px 7px;
      margin: 0 2px;
      border-radius: 8px;
      background: rgba(15, 23, 42, 0.08);
      color: #0f172a;
      font-weight: 800;
    }
    .answer-line-clinical {
      padding: 7px 10px;
      border-left: 3px solid rgba(31, 122, 90, 0.72);
      border-radius: 0 10px 10px 0;
      background: linear-gradient(90deg, rgba(31, 122, 90, 0.075), transparent 78%);
      color: #243b33;
      line-height: 1.9;
    }
    .answer-clinical-label {
      display: inline-block;
      padding: 2px 8px;
      margin-right: 2px;
      border: 1px solid rgba(31, 122, 90, 0.18);
      border-radius: 7px;
      background: rgba(31, 122, 90, 0.13);
      color: #0f5137;
      font-weight: 850;
      letter-spacing: 0.02em;
    }
    .answer-line-inline-label {
      padding: 3px 0;
      color: #243b33;
      line-height: 1.9;
    }
    .answer-line-formula-thought {
      color: #667085;
      font-size: 14px;
      line-height: 1.75;
    }
    .answer-line-formula-thought .answer-inline-label {
      font-size: 15px;
    }
    .answer-inline-label {
      display: inline-block;
      padding: 1px 7px;
      margin-right: 2px;
      border-radius: 7px;
      background: rgba(31, 122, 90, 0.11);
      color: #0f5137;
      font-size: 15px;
      font-weight: 850;
      letter-spacing: 0.02em;
    }
    .answer-herb-name {
      color: #116149;
      font-weight: 780;
      padding: 0 1px;
      font-size: 1.08em;
    }
    .answer-line-subitem {
      color: #1f2937;
      padding-left: 4px;
      line-height: 1.85;
    }
    .answer-subitem-number {
      color: #667085;
      font-weight: 600;
    }
    .answer-line-heading {
      display: flex;
      align-items: baseline;
      gap: 6px;
      padding: 6px 10px;
      border-left: 4px solid rgba(31, 122, 90, 0.9);
      border-radius: 10px;
      background: linear-gradient(90deg, rgba(31, 122, 90, 0.1), rgba(31, 122, 90, 0.02));
      color: #123b2d;
    }
    .answer-line-secondary-heading {
      padding: 8px 0 3px;
      color: #123b2d;
      font-size: 18px;
      line-height: 1.45;
      font-weight: 830;
      letter-spacing: 0.01em;
    }
    .answer-line-markdown-heading {
      padding: 7px 0 2px;
      color: #123b2d;
      font-size: 17px;
      line-height: 1.5;
      font-weight: 800;
    }
    .answer-line-safety-note {
      display: flex;
      align-items: baseline;
      gap: 6px;
      padding: 3px 2px;
      color: #475467;
      line-height: 1.8;
    }
    .answer-line-followup-question {
      display: flex;
      align-items: baseline;
      gap: 6px;
      padding: 2px 0;
      color: #475467;
      line-height: 1.82;
    }
    .answer-line-followup-question .answer-heading-number {
      color: #98a2b3;
      font-weight: 650;
    }
    .answer-line-followup-question .answer-heading-text {
      color: #475467;
      font-weight: 500;
    }
    .answer-line-safety-note .answer-heading-number {
      color: #98a2b3;
      font-weight: 650;
    }
    .answer-line-safety-note .answer-heading-text {
      color: #475467;
      font-weight: 600;
    }
    .answer-heading-number {
      font-weight: 800;
      color: var(--accent-strong);
      letter-spacing: 0.02em;
      flex: 0 0 auto;
    }
    .answer-heading-text {
      font-weight: 800;
      color: #0f172a;
    }
    .answer-spacer {
      height: 8px;
    }
    @media (max-width: 640px) {
      .bubble {
        max-width: calc(100vw - 44px);
        padding: 14px 14px;
      }
      .answer-line-main-formula {
        padding: 9px 10px;
      }
	      .answer-formula-name-main {
	        font-size: 18px;
	      }
	      .prescription-recommendation-panel {
	        gap: 12px;
	        padding: 14px;
	        border-radius: 16px;
	      }
	      .prescription-recommendation-note {
	        font-size: 13px;
	        line-height: 1.65;
	      }
	      .prescription-candidate-list {
	        gap: 12px;
	      }
	      .prescription-candidate-card {
	        width: 100%;
	        gap: 9px;
	        padding: 14px;
	        border-radius: 16px;
	      }
	      .prescription-candidate-label {
	        font-size: 11px;
	        padding: 3px 8px;
	      }
	      .prescription-candidate-name {
	        font-size: 20px;
	        line-height: 1.3;
	      }
	      .prescription-candidate-details {
	        gap: 8px;
	        font-size: 15px;
	        line-height: 1.68;
	      }
	      .prescription-detail-label {
	        font-size: 15px;
	      }
	      .prescription-detail-body {
	        font-size: 15px;
	        line-height: 1.68;
	      }
	      .prescription-herb-list {
	        font-size: 15px;
	        line-height: 1.8;
	      }
	      .herb-inline-name {
	        margin-right: 3px;
	      }
	      .answer-table {
	        min-width: 360px;
	        font-size: 13px;
	      }
      .answer-table th,
      .answer-table td {
        padding: 9px 10px;
      }
    }
    .message-stack {
      display: grid;
      gap: 10px;
      max-width: min(760px, calc(100vw - 96px));
    }
    .report-card {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
      padding: 14px 16px;
      box-shadow: var(--shadow);
    }
    .report-source-details {
      border: 1px solid #d6e5db;
      border-radius: 14px;
      background: #fbfdfb;
      padding: 12px 16px;
      color: #214638;
    }
    .report-source-details summary {
      cursor: pointer;
      font-weight: 650;
    }
    .report-source-details section {
      margin-top: 12px;
      border-top: 1px solid #e1ebe4;
      padding-top: 12px;
    }
    .report-source-details pre {
      max-height: 360px;
      overflow: auto;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      margin: 8px 0 0;
      font: inherit;
      line-height: 1.7;
    }
    .ocr-horizontal-lines {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 6px 18px;
      line-height: 1.7;
    }
    .ocr-horizontal-lines > span {
      max-width: 100%;
      overflow-wrap: anywhere;
    }
    .report-image-original .ocr-horizontal-lines {
      margin-top: 8px;
    }
    .uploaded-image-previews {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }
    .uploaded-image-previews img {
      width: min(280px, 100%);
      max-height: 360px;
      object-fit: contain;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.65);
      background: #f4f7f5;
    }
    .bubble.has-uploaded-images .uploaded-image-previews {
      margin-top: 0;
    }
    .assistant .bubble.prescription-original-bubble {
      width: min(880px, calc(100vw - 96px));
      max-width: none;
      white-space: normal;
    }
    .prescription-original-card {
      display: block;
    }
    .prescription-original-content {
      min-width: 0;
    }
    .prescription-original-content strong {
      display: block;
      margin-bottom: 8px;
      color: #214638;
    }
    .prescription-inline-analysis {
      margin-top: 18px;
      padding-top: 14px;
      border-top: 1px solid #e1ebe4;
    }
    .prescription-inline-analysis strong {
      display: block;
      margin-bottom: 8px;
      color: #214638;
    }
    .prescription-inline-analysis pre {
      margin: 0;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      font: inherit;
      line-height: 1.7;
    }
    .report-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }
    .report-card-title {
      font-size: 14px;
      font-weight: 700;
    }
    .report-chip {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 4px 9px;
      font-size: 12px;
      font-weight: 700;
      background: rgba(31, 122, 90, 0.12);
      color: var(--accent-strong);
    }
    .report-sections {
      display: grid;
      gap: 10px;
    }
    .report-section {
      border-top: 1px solid var(--line);
      padding-top: 10px;
    }
    .report-section:first-child {
      border-top: 0;
      padding-top: 0;
    }
    .report-section-title {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.04em;
      color: var(--muted);
      text-transform: uppercase;
      margin-bottom: 6px;
    }
    .report-list {
      margin: 0;
      padding-left: 18px;
      display: grid;
      gap: 4px;
      line-height: 1.65;
      font-size: 14px;
    }
    .report-empty {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.6;
    }
    .lab-item-name {
      font-weight: 700;
    }
    .lab-flag-high {
      color: #b42318;
      font-weight: 700;
    }
    .lab-flag-low {
      color: #175cd3;
      font-weight: 700;
    }
    .lab-flag-positive {
      color: #b42318;
      font-weight: 700;
    }
    .status-line {
      max-width: 980px;
      margin: 0 auto;
      padding: 0 18px 10px;
      color: var(--muted);
      font-size: 13px;
    }
