    :root {
      --bg-page: #FAF6F0;
      --bg-surface: #FFFFFF;
      --bg-alt: #F4EFE6;
      --bg-subtle: #F0ECE4;
      --text-main: #1D1D1F;
      --text-sub: #5A5A5E;
      --text-muted: #8E8E93;
      --emerald-dark: #0D7A5F;
      --emerald-light: #E8F5F0;
      --emerald-hover: #095E49;
      --gold-dark: #B6843A;
      --gold-light: #F9F2E6;
      --red-alert: #D93829;
      --red-light: #FDECEB;
      --border-soft: rgba(0, 0, 0, 0.08);
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
      --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
      --shadow-float: 0 16px 40px rgba(0, 0, 0, 0.12);
      --radius-sm: 10px;
      --radius-md: 16px;
      --radius-lg: 22px;
      --radius-pill: 999px;
      --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
      --font-mono: "SF Mono", Menlo, Consolas, monospace;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html,
    body {
      height: 100vh;
      overflow: hidden;
      background: var(--bg-page);
      color: var(--text-main);
      font-family: var(--font-sans);
      line-height: 1.45;
      -webkit-font-smoothing: antialiased;
      display: flex;
      flex-direction: column;
      padding: 0;
    }

    /* Fused 2-Row Top Workbench Header */
    .top-header {
      position: relative;
      z-index: 100;
      background: rgba(250, 246, 240, 0.96);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-soft);
      padding: 5px 14px 4px;
      flex-shrink: 0;
    }

    .header-inner {
      max-width: 1880px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .brand-box {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .brand-logo {
      width: 26px;
      height: 26px;
      border-radius: 7px;
      background: linear-gradient(135deg, #0D7A5F, #19A984);
      color: #fff;
      font-weight: 800;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 6px rgba(13, 122, 95, 0.25);
    }

    .brand-title {
      font-size: 13.5px;
      font-weight: 800;
      color: var(--text-main);
      white-space: nowrap;
    }

    .brand-sub {
      font-size: 11px;
      color: var(--text-muted);
      margin-left: 4px;
      font-weight: 500;
    }

    .pass-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #E8F5F0;
      border: 1px solid rgba(13, 122, 95, 0.2);
      padding: 2px 8px;
      border-radius: var(--radius-pill);
      font-size: 11px;
      font-weight: 600;
      color: var(--emerald-dark);
    }

    .dot-live {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #0D7A5F;
      box-shadow: 0 0 0 3px rgba(13, 122, 95, 0.2);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% {
        box-shadow: 0 0 0 0 rgba(13, 122, 95, 0.4);
      }

      70% {
        box-shadow: 0 0 0 6px rgba(13, 122, 95, 0);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(13, 122, 95, 0);
      }
    }

    .case-selector {
      display: flex;
      align-items: center;
      gap: 6px;
      background: #FFFFFF;
      border: 1px solid var(--border-soft);
      padding: 3px 9px;
      border-radius: var(--radius-pill);
      font-size: 11.5px;
      box-shadow: var(--shadow-sm);
    }

    .case-badge {
      background: var(--gold-light);
      color: var(--gold-dark);
      padding: 1px 6px;
      border-radius: var(--radius-pill);
      font-size: 10px;
      font-weight: 700;
    }

    .btn-action {
      background: #FFFFFF;
      border: 1px solid var(--border-soft);
      padding: 4px 9px;
      border-radius: var(--radius-pill);
      font-size: 11px;
      font-weight: 600;
      color: var(--text-main);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
      transition: all 0.18s;
    }

    .btn-action:hover {
      border-color: var(--emerald-dark);
      color: var(--emerald-dark);
    }

    /* Main Container Locked to Remaining 100vh */
    .workbench-layout {
      flex: 1;
      min-height: 0;
      width: 100%;
      max-width: 1880px;
      margin: 0 auto;
      padding: 7px 14px;
      display: flex;
      flex-direction: column;
    }

    .time-status-group {
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.75);
      border: 1px solid var(--border-soft);
      padding: 2px 8px 2px 4px;
      border-radius: var(--radius-pill);
    }

    .current-day-badge {
      background: var(--emerald-dark);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: var(--radius-pill);
      white-space: nowrap;
    }

    .time-headline {
      font-size: 11.5px;
      font-weight: 700;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 240px;
    }

    .time-subtext {
      font-size: 10.5px;
      color: var(--text-muted);
    }

    .autopause-tag {
      background: var(--gold-light);
      border: 1px solid rgba(182, 132, 58, 0.35);
      color: var(--gold-dark);
      padding: 2px 8px;
      border-radius: var(--radius-pill);
      font-size: 10.5px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }

    .autopause-tag.alert {
      background: var(--red-light);
      border-color: rgba(217, 56, 41, 0.35);
      color: var(--red-alert);
    }

    .ctrl-btns {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .btn-play {
      background: var(--emerald-dark);
      color: #fff;
      border: none;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      font-size: 11.5px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
      box-shadow: 0 2px 8px rgba(13, 122, 95, 0.22);
      transition: all 0.18s;
    }

    .btn-play:hover {
      background: var(--emerald-hover);
    }

    .btn-step {
      background: var(--gold-light);
      color: var(--gold-dark);
      border: 1px solid rgba(182, 132, 58, 0.3);
      padding: 4px 9px;
      border-radius: var(--radius-pill);
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.18s;
    }

    .speed-group {
      display: inline-flex;
      background: var(--bg-subtle);
      padding: 2px;
      border-radius: var(--radius-pill);
      border: 1px solid var(--border-soft);
    }

    .btn-speed {
      background: transparent;
      border: none;
      padding: 2px 6px;
      font-size: 10.5px;
      font-weight: 800;
      color: var(--text-sub);
      border-radius: var(--radius-pill);
      cursor: pointer;
    }

    .btn-speed.active {
      background: #fff;
      color: var(--emerald-dark);
      box-shadow: var(--shadow-sm);
    }

    /* Ultra-Slim 15-Day Capsule Track (Row 2 inside Top Header) */
    .timeline-track-wrap {
      max-width: 1880px;
      margin: 4px auto 0;
      display: grid;
      grid-template-columns: repeat(15, minmax(0, 1fr));
      gap: 4px;
      padding: 1px 0;
    }

    .day-node {
      background: #FFFFFF;
      border: 1px solid var(--border-soft);
      border-radius: 7px;
      padding: 3px 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      cursor: pointer;
      transition: all 0.15s;
      min-width: 0;
    }

    .day-node:hover {
      border-color: var(--emerald-dark);
      background: #F0FDF4;
    }

    .day-node.active {
      background: var(--emerald-dark);
      border-color: var(--emerald-dark);
      color: #fff;
      box-shadow: 0 2px 8px rgba(13, 122, 95, 0.25);
    }

    .day-node.active .dn-num,
    .day-node.active .dn-tag {
      color: #fff;
    }

    .dn-badge-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
      background: #CBD5E1;
    }

    .dn-badge-dot.key-event {
      background: var(--gold-dark);
    }

    .dn-badge-dot.alert-event {
      background: var(--red-alert);
      box-shadow: 0 0 0 2px rgba(217, 56, 41, 0.25);
    }

    .day-node.active .dn-badge-dot {
      background: #A7F3D0;
    }

    .dn-num {
      font-size: 11px;
      font-weight: 800;
      color: var(--text-main);
      flex-shrink: 0;
    }

    .dn-tag {
      font-size: 10px;
      color: var(--text-sub);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Section 2: 3-Column Single-Screen Stage */
    .stage-3col {
      flex: 1;
      min-height: 0;
      height: 100%;
      display: grid;
      grid-template-columns: minmax(320px, 1fr) 402px minmax(340px, 1.08fr);
      gap: 12px;
      align-items: stretch;
    }

    .left-col,
    .right-col {
      height: 100%;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      padding-right: 4px;
    }

    .left-col::-webkit-scrollbar,
    .right-col::-webkit-scrollbar {
      width: 5px;
    }

    .left-col::-webkit-scrollbar-thumb,
    .right-col::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.16);
      border-radius: 99px;
    }

    .col-card {
      background: var(--bg-surface);
      border-radius: 14px;
      border: 1px solid var(--border-soft);
      box-shadow: var(--shadow-sm);
      padding: 11px 13px;
      margin-bottom: 9px;
    }

    .card-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      padding-bottom: 6px;
      border-bottom: 1px solid var(--border-soft);
    }

    .card-title {
      font-size: 12.5px;
      font-weight: 800;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .card-badge {
      font-size: 10.5px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: var(--radius-pill);
      background: var(--bg-alt);
      color: var(--text-sub);
    }

    /* Reusable Click-to-Expand Accordion Drawer */
    .acc-toggle-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      background: #F8FAFC;
      border: 1px solid #E2E8F0;
      border-radius: 8px;
      padding: 5px 9px;
      font-size: 11px;
      font-weight: 700;
      color: #334155;
      cursor: pointer;
      text-align: left;
      transition: all 0.15s;
      margin-top: 6px;
    }

    .acc-toggle-btn:hover {
      border-color: var(--emerald-dark);
      color: var(--emerald-dark);
      background: #F0FDF4;
    }

    .acc-drawer-body {
      display: none;
      margin-top: 6px;
      padding: 8px 10px;
      background: #FAF8F5;
      border: 1px solid var(--border-soft);
      border-radius: 8px;
      font-size: 11.5px;
      line-height: 1.55;
      color: #334155;
    }

    .acc-drawer-body.open {
      display: block;
    }

    /* Left Column Day Dynamic Styles */
    .source-box-card {
      background: #FAF7F0;
      border: 1px solid rgba(182, 132, 58, 0.3);
      border-left: 4px solid var(--gold-dark);
      border-radius: var(--radius-sm);
      padding: 12px;
      margin-bottom: 12px;
    }

    .source-box-title {
      font-size: 12px;
      font-weight: 800;
      color: var(--gold-dark);
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .source-box-text {
      font-size: 12px;
      line-height: 1.55;
      color: #333;
    }

    .action-pending-card {
      background: #F4F8F6;
      border: 1px solid rgba(13, 122, 95, 0.25);
      border-left: 4px solid var(--emerald-dark);
      border-radius: var(--radius-sm);
      padding: 12px;
      margin-bottom: 12px;
    }

    .action-pending-title {
      font-size: 12px;
      font-weight: 800;
      color: var(--emerald-dark);
      margin-bottom: 6px;
    }

    .action-pending-list {
      list-style: none;
      font-size: 12px;
      color: #2D3748;
      line-height: 1.6;
    }

    .action-pending-list li {
      margin-bottom: 4px;
      display: flex;
      align-items: flex-start;
      gap: 6px;
    }

    .action-check-dot {
      color: var(--emerald-dark);
      font-weight: 800;
    }

    /* Report Thumbnails Gallery */
    .report-thumb-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-bottom: 12px;
    }

    .report-thumb-item {
      position: relative;
      border-radius: var(--radius-sm);
      overflow: hidden;
      border: 1px solid var(--border-soft);
      background: #F8F5EE;
      cursor: pointer;
      aspect-ratio: 3/4;
      transition: all 0.2s;
    }

    .report-thumb-item:hover {
      transform: scale(1.03);
      border-color: var(--emerald-dark);
      box-shadow: var(--shadow-sm);
    }

    .report-thumb-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .report-thumb-tag {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(255, 255, 255, 0.94);
      color: #065F46;
      font-weight: 700;
      border-top: 1px solid rgba(13, 122, 95, 0.16);
      font-size: 9.5px;
      padding: 3px 4px;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Patient-Facing Warm Framing Banner (Day 0) */
    .c-end-manifesto-box {
      background: linear-gradient(135deg, #FBF8F2 0%, #F5EFE4 100%);
      border: 1px solid rgba(182, 132, 58, 0.3);
      border-radius: var(--radius-md);
      padding: 14px;
      margin-bottom: 14px;
    }

    .c-end-manifesto-title {
      font-size: 13px;
      font-weight: 800;
      color: #7A5314;
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 6px;
    }

    .c-end-manifesto-body {
      font-size: 12px;
      color: #4A3E2C;
      line-height: 1.6;
    }

    /* Prompt Core Drawer */
    .prompt-core-drawer {
      background: #F8F9FA;
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: var(--radius-md);
      margin-bottom: 14px;
      overflow: hidden;
    }

    .prompt-core-header {
      padding: 10px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      background: #ECEFF1;
      font-size: 12px;
      font-weight: 700;
      color: #37474F;
    }

    .prompt-core-content {
      padding: 12px 14px;
      font-size: 11.5px;
      line-height: 1.55;
      color: #455A64;
      display: none;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .prompt-core-content.open {
      display: block;
    }

    /* Center Column: Phone Shell & Real Native App Component */
    .phone-column {
      height: 100%;
      min-height: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      overflow: hidden;
    }

    .phone-mode-selector {
      display: flex;
      background: #EAE6DF;
      border-radius: var(--radius-pill);
      padding: 2px;
      margin-bottom: 4px;
      width: 400px;
      max-width: 400px;
      justify-content: space-between;
      flex-shrink: 0;
    }

    .phone-mode-btn {
      flex: 1;
      background: transparent;
      border: none;
      padding: 3px 8px;
      font-size: 11px;
      font-weight: 700;
      color: #666;
      border-radius: var(--radius-pill);
      cursor: pointer;
      text-align: center;
      white-space: nowrap;
      transition: all 0.2s;
    }

    .phone-mode-btn.active {
      background: #fff;
      color: var(--emerald-dark);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .phone-titanium-shell {
      width: 400px;
      max-width: 400px;
      flex: 1;
      height: 100%;
      min-height: 0;
      display: flex;
      flex-direction: column;
      background: linear-gradient(145deg, #FFFFFF, #EAE5DC);
      border-radius: 34px;
      padding: 6px;
      box-shadow: 0 12px 32px rgba(13, 122, 95, 0.12);
      border: 2px solid #D5CEC2;
    }

    .phone-screen {
      background: #F8FAFC;
      border-radius: 27px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      height: auto;
      position: relative;
    }

    /* Phone Toast */
    .phone-toast-box {
      position: absolute;
      top: 50px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(13, 122, 95, 0.95);
      color: #fff;
      font-size: 12px;
      font-weight: 600;
      padding: 6px 14px;
      border-radius: var(--radius-pill);
      z-index: 99;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
      display: none;
      animation: fadeInDown 0.3s;
    }

    @keyframes fadeInDown {
      from {
        opacity: 0;
        transform: translate(-50%, -10px);
      }

      to {
        opacity: 1;
        transform: translate(-50%, 0);
      }
    }

    /* Native Phone App Elements */
    .phone-statusbar {
      padding: 12px 20px 4px;
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      font-weight: 600;
      color: #333;
      background: #FFFFFF;
    }

    .phone-dynamic-island {
      width: 90px;
      height: 20px;
      background: #E2E8F0;
      border-radius: 12px;
      margin: 0 auto;
    }

    .phone-navbar-real {
      background: #FFFFFF;
      padding: 8px 16px 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .phone-user-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #F0F4F2;
      padding: 3px 10px;
      border-radius: var(--radius-pill);
      font-size: 12px;
      font-weight: 700;
      color: var(--emerald-dark);
    }

    .phone-app-scroll {
      flex: 1;
      overflow-y: auto;
      padding: 12px;
    }

    /* Real App Component Cards */
    .app-phase-banner {
      background: #E8F5F0;
      border-radius: var(--radius-sm);
      padding: 6px 12px;
      font-size: 11px;
      font-weight: 700;
      color: var(--emerald-dark);
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px;
    }

    .app-hero-organ-card {
      background: #FFFFFF;
      border-radius: var(--radius-md);
      border: 1px solid rgba(0, 0, 0, 0.06);
      padding: 12px;
      margin-bottom: 10px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .organ-thumb-box {
      width: 68px;
      height: 68px;
      border-radius: 12px;
      background: linear-gradient(135deg, #F0F7F4, #E2EFE9);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .organ-thumb-box img {
      width: 54px;
      height: 54px;
      object-fit: contain;
    }

    .organ-meta-box {
      flex: 1;
    }

    .organ-tag {
      font-size: 10px;
      font-weight: 800;
      color: var(--emerald-dark);
      text-transform: uppercase;
    }

    .organ-name {
      font-size: 13px;
      font-weight: 800;
      color: #111;
      margin: 2px 0 4px;
    }

    .organ-stats-row {
      display: flex;
      gap: 12px;
      font-size: 11px;
      color: #555;
    }

    /* Tasks / Actions Card */
    .app-section-head {
      font-size: 12px;
      font-weight: 800;
      color: #333;
      margin: 10px 0 6px;
      display: flex;
      justify-content: space-between;
    }

    .app-task-card {
      background: #FFFFFF;
      border-radius: var(--radius-sm);
      border: 1px solid rgba(0, 0, 0, 0.06);
      padding: 10px 12px;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      transition: all 0.2s;
    }

    .app-task-card:hover {
      background: #FAFAFA;
      border-color: var(--emerald-dark);
    }

    .app-task-card.checked {
      background: #F6FAF8;
      border-color: rgba(13, 122, 95, 0.3);
    }

    .task-title {
      font-size: 12.5px;
      font-weight: 700;
      color: #222;
    }

    .task-desc {
      font-size: 11px;
      color: #777;
    }

    .task-check-circle {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 2px solid #D1D5DB;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 800;
      color: transparent;
      transition: all 0.2s;
    }

    .app-task-card.checked .task-check-circle {
      border-color: var(--emerald-dark);
      background: var(--emerald-dark);
      color: #fff;
    }

    /* Micro-tools Grid */
    .app-tools-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      margin-bottom: 10px;
    }

    .app-tool-card {
      background: #FFFFFF;
      border-radius: var(--radius-sm);
      border: 1px solid rgba(0, 0, 0, 0.06);
      padding: 10px;
      cursor: pointer;
    }

    .app-tool-card:hover {
      border-color: var(--gold-dark);
    }

    .app-tool-name {
      font-size: 12px;
      font-weight: 700;
      color: #222;
    }

    .app-tool-sub {
      font-size: 10.5px;
      color: #888;
      margin-top: 2px;
    }

    /* Offline Care Service Card */
    .app-offline-card {
      background: linear-gradient(135deg, #FFF9F2 0%, #FFFFFF 100%);
      border: 1px solid rgba(182, 132, 58, 0.3);
      border-radius: var(--radius-sm);
      padding: 10px 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      cursor: pointer;
    }

    /* AI Advisor Floating Entry */
    .app-advisor-bar {
      background: #FFFFFF;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      padding: 8px 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .advisor-pill-btn {
      flex: 1;
      background: #F1EFEA;
      border: 1px solid rgba(0, 0, 0, 0.06);
      border-radius: var(--radius-pill);
      padding: 8px 14px;
      font-size: 12px;
      color: #666;
      cursor: pointer;
      text-align: left;
    }

    /* Day 0 Interactive Onboarding View inside Phone */
    .onboard-card-inner {
      background: #FFFFFF;
      border-radius: var(--radius-md);
      border: 1px solid rgba(0, 0, 0, 0.08);
      padding: 14px;
      margin-bottom: 10px;
    }

    .onboard-opt-item {
      background: #FAF9F6;
      border: 1px solid #E5E7EB;
      border-radius: 8px;
      padding: 8px 10px;
      margin-bottom: 6px;
      font-size: 11.5px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .onboard-opt-item.selected {
      background: #E8F5F0;
      border-color: var(--emerald-dark);
      color: var(--emerald-dark);
      font-weight: 700;
    }

    /* Phone Chat Mode & Generative UI Cards */
    .chat-mode-container {
      display: flex;
      flex-direction: column;
      height: 100%;
      background: #F4F5F7;
    }

    .phone-app-header {
      background: #FFFFFF;
      padding: 8px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .phone-body {
      flex: 1;
      overflow-y: auto;
      padding: 12px 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .chat-bubble-wrap {
      display: flex;
      flex-direction: column;
      max-width: 88%;
    }

    .chat-bubble-wrap.ai {
      align-self: flex-start;
    }

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

    .chat-time-tag {
      font-size: 10px;
      color: #999;
      margin-bottom: 3px;
      padding: 0 4px;
    }

    .chat-bubble {
      padding: 10px 12px;
      border-radius: 14px;
      font-size: 12px;
      line-height: 1.55;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }

    .chat-bubble.ai {
      background: #FFFFFF;
      color: #1D1D1F;
      border-top-left-radius: 4px;
      border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .chat-bubble.user {
      background: var(--emerald-dark);
      color: #FFFFFF;
      border-top-right-radius: 4px;
    }

    .genui-card {
      margin-top: 8px;
      background: #FAF8F5;
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 10px;
      padding: 9px 11px;
      color: #222;
    }

    .genui-badge {
      display: inline-block;
      font-size: 10px;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 999px;
      margin-bottom: 4px;
    }

    .genui-badge.emerald {
      background: #E8F5F0;
      color: #0D7A5F;
    }

    .genui-badge.alert {
      background: #FDECEB;
      color: #D93829;
    }

    .genui-badge.gold {
      background: #F9F2E6;
      color: #B6843A;
    }

    .genui-title {
      font-size: 12px;
      font-weight: 800;
      color: #111;
      margin-bottom: 3px;
    }

    .genui-desc {
      font-size: 11px;
      color: #555;
      line-height: 1.45;
    }

    .phone-input-bar {
      background: #FFFFFF;
      padding: 8px 12px 12px;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .phone-input {
      flex: 1;
      border: 1px solid #DDD;
      border-radius: 999px;
      padding: 7px 12px;
      font-size: 12px;
      outline: none;
    }

    .phone-send-btn {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: var(--emerald-dark);
      color: #fff;
      border: none;
      font-weight: 800;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Right Column: Humanized Clinical Decision Cards */
    .decision-story-card {
      background: #FFFFFF;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-soft);
      box-shadow: var(--shadow-card);
      padding: 18px;
      margin-bottom: 16px;
    }

    .section-eyebrow {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .eyebrow-source {
      color: var(--gold-dark);
    }

    .eyebrow-mutation {
      color: var(--emerald-dark);
    }

    .eyebrow-impact {
      color: #1E6091;
    }

    .story-hero-title {
      font-size: 14px;
      font-weight: 800;
      color: var(--text-main);
      margin-bottom: 8px;
      line-height: 1.4;
    }

    .story-body-text {
      font-size: 12.5px;
      color: #3A3A3C;
      line-height: 1.6;
      background: #FAF8F5;
      padding: 10px 12px;
      border-radius: var(--radius-sm);
      border-left: 3px solid var(--gold-dark);
      margin-bottom: 10px;
    }

    .compare-pill-row {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 8px;
    }

    .compare-pill-item {
      background: #F7FAF8;
      border: 1px solid rgba(13, 122, 95, 0.18);
      border-radius: var(--radius-sm);
      padding: 8px 10px;
      font-size: 12px;
    }

    .compare-item-name {
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 4px;
      display: flex;
      justify-content: space-between;
    }

    .compare-flux {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11.5px;
    }

    .flux-from {
      background: #EEEEEE;
      color: #666;
      padding: 2px 6px;
      border-radius: 4px;
      text-decoration: line-through;
    }

    .flux-arrow {
      color: var(--emerald-dark);
      font-weight: 800;
    }

    .flux-to {
      background: var(--emerald-light);
      color: var(--emerald-dark);
      padding: 2px 8px;
      border-radius: 4px;
      font-weight: 700;
    }

    .flux-to.alert {
      background: var(--red-light);
      color: var(--red-alert);
    }

    .ripple-link-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .ripple-link-card {
      background: #F3F8FC;
      border: 1px solid rgba(30, 96, 145, 0.2);
      border-radius: var(--radius-sm);
      padding: 10px;
      font-size: 12px;
    }

    .ripple-link-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 4px;
      font-weight: 700;
      color: #1E6091;
    }

    .btn-ripple-jump {
      background: #fff;
      border: 1px solid #1E6091;
      color: #1E6091;
      font-size: 11px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: var(--radius-pill);
      cursor: pointer;
    }

    .btn-ripple-jump:hover {
      background: #1E6091;
      color: #fff;
    }

    /* Modal / Lightbox */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(244, 239, 230, 0.78);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .modal-overlay.open {
      display: flex;
    }

    .modal-content-card {
      background: #FFFFFF;
      border-radius: var(--radius-lg);
      border: 1.5px solid #D1FAE5;
      box-shadow: 0 18px 48px rgba(13, 122, 95, 0.14);
      max-width: 1000px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      padding: 24px;
      position: relative;
    }

    .modal-close-btn {
      position: absolute;
      top: 16px;
      right: 18px;
      background: #eee;
      border: none;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 14px;
    }

    @keyframes cardPulseGlow {
      0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
        border-color: #10B981 !important;
        transform: translateY(-1px);
      }

      50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15);
        border-color: #059669 !important;
      }

      100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        transform: translateY(0);
      }
    }

    .flash-highlight {
      animation: cardPulseGlow 1.3s ease-out;
    }

    /* Past ⬅ Present ⬅ Future Cross-Column Flying Event Capsule */
    .flying-event-pill {
      position: fixed;
      left: 0;
      top: 0;
      z-index: 9999;
      pointer-events: none;
      max-width: 280px;
      padding: 7px 12px;
      border-radius: 12px;
      font-family: var(--font-sans);
      font-size: 11px;
      line-height: 1.35;
      box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22), 0 0 0 2px rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(8px);
      will-change: transform, opacity;
      transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.62s ease;
    }

    .flying-event-pill.theme-emerald {
      background: linear-gradient(135deg, #059669 0%, #0D7A5F 100%);
      color: #FFFFFF;
      border: 1.5px solid #6EE7B7;
    }

    .flying-event-pill.theme-amber {
      background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
      color: #92400E;
      border: 1.5px solid #F59E0B;
    }

    .flying-event-pill.theme-indigo {
      background: linear-gradient(135deg, #4338CA 0%, #312E81 100%);
      color: #FFFFFF;
      border: 1.5px solid #A5B4FC;
    }

    .future-node-card {
      background: #FFFFFF;
      border: 1px solid #D1FAE5;
      border-left: 3.5px solid #10B981;
      border-radius: 8px;
      padding: 6px 9px;
      cursor: pointer;
      transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    }

    .future-node-card:hover {
      transform: translateX(-3px);
      border-color: #059669;
      box-shadow: 0 4px 12px rgba(13, 122, 95, 0.12);
      background: #F0FDF4;
    }

    .future-node-card:active {
      transform: translateX(-5px) scale(0.99);
    }

    @keyframes pastItemEnter {
      0% {
        opacity: 0;
        transform: translateX(14px);
        background-color: #DCFCE7;
      }
      100% {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .past-stream-item-fresh {
      animation: pastItemEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .phone-shield-banner {
      position: absolute;
      top: 90px;
      left: 12px;
      right: 12px;
      z-index: 98;
      border-radius: 12px;
      padding: 8px 11px;
      font-size: 11px;
      line-height: 1.4;
      box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
      animation: fadeInDown 0.25s ease-out;
      pointer-events: none;
    }