/* Task two reuses the approved task-one layout. Only table/chart content differs. */
.t2-screen .analysis-table { margin: 0; }
.t2-screen .analysis-table__scroll { max-height: none; overflow-x: auto; overscroll-behavior: auto; }
.t2-screen .analysis-table table { min-width: 650px; }
.t2-screen .t1-input-row textarea { height: 76px; }
.t2-chart { margin: 14px 0; padding: 20px; border: 1px solid #e6e0f9; border-radius: 14px; background: #fff; color: #25203e; }
.t2-chart h2 { margin: 0; max-width: none; font-size: 22px; line-height: 1.25; letter-spacing: -.4px; }
.t2-chart figcaption p { margin: 5px 0 14px; font-size: 12px; color: #6b6580; }
.t2-legend { display: flex; gap: 20px; margin-bottom: 16px; font-size: 12px; }
.t2-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.t2-legend i { display: inline-block; width: 16px; height: 9px; border-radius: 3px; }
.t2-key-plan, .t2-bar--plan { background: #d5cdf9; }
.t2-key-actual, .t2-bar--actual { background: #6746ed; }
.t2-chart-axis { display: flex; justify-content: space-between; margin: 0 48px 6px 155px; color: #78718e; font-size: 11px; }
.t2-chart-row { display: grid; grid-template-columns: 145px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f1eef8; }
.t2-chart-row:last-child { border-bottom: 0; }
.t2-chart-row > strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.t2-bar-pair { padding-right: 48px; background: linear-gradient(90deg, #ede8f5 1px, transparent 1px); }
.t2-bar-line { position: relative; height: 13px; display: flex; align-items: center; margin: 3px 0; }
.t2-bar { display: block; height: 10px; flex: 0 0 auto; border-radius: 0 3px 3px 0; }
.t2-bar-line > span:not(.sr-only) { margin-left: 6px; font-size: 11px; font-variant-numeric: tabular-nums; }
.t2-findings { display: grid; gap: 12px; list-style: none; padding: 0; margin: 16px 0 4px; font-size: 14px; line-height: 1.55; }
.t2-findings li { padding-left: 12px; border-left: 3px solid #b7a5fb; }
.t2-findings strong { font-weight: 600; }
.t2-screen.t1-marina .t1-message--user { width: 78%; max-width: 78%; }
.t2-screen .t1-sent-plan[open] > .t2-chart { margin-top: 12px; }
@media (max-width: 760px) {
  .t2-screen .t1-input-row textarea { height: 110px; }
  /* One page scroll: the sheet must neither pan sideways nor trap upward gestures. */
  .t2-screen .analysis-table { overflow: visible; grid-template-rows: auto auto; }
  .t2-screen .analysis-table__header { min-height: 0; padding: 10px 12px; border-radius: 14px 14px 0 0; }
  .t2-screen .analysis-table__header b { font-size: 14px; }
  .t2-screen .analysis-table__eyebrow,
  .t2-screen .analysis-table__meta { display: none; }
  .t2-screen .analysis-table__scroll { overflow: visible; overscroll-behavior: auto; scrollbar-gutter: auto; }
  .t2-screen .analysis-table table { width: 100%; min-width: 0; table-layout: fixed; padding-inline: 0; font-size: 10px; }
  .t2-screen .analysis-table th,
  .t2-screen .analysis-table td { padding: 7px 2px; }
  .t2-screen .analysis-table th:first-child,
  .t2-screen .analysis-table td:first-child { width: 33%; padding-left: 6px; white-space: normal; line-height: 1.1; }
  .t2-screen .analysis-table th:nth-child(2),
  .t2-screen .analysis-table td:nth-child(2),
  .t2-screen .analysis-table th:nth-child(3),
  .t2-screen .analysis-table td:nth-child(3) { width: 11%; }
  .t2-screen .analysis-table th:nth-child(4),
  .t2-screen .analysis-table td:nth-child(4) { width: 10%; }
  .t2-screen .analysis-table th:nth-child(5),
  .t2-screen .analysis-table td:nth-child(5) { width: 21%; padding-left: 4px; text-align: left; }
  .t2-screen .analysis-table th:nth-child(6),
  .t2-screen .analysis-table td:nth-child(6) { width: 14%; padding-left: 4px; text-align: left; }
  .t2-screen .analysis-table thead th { position: static; font-size: 8px; letter-spacing: 0; }
  .t2-screen.t1-source .t1-actions { position: sticky; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 -6px 22px #55418812, 0 8px 24px #55418816; }
  .t2-screen .t1-result { display: block; }
  .t2-screen .t1-result > .t1-ai-icon { margin-bottom: 8px; }
  .t2-chart { padding: 12px 9px; }
  .t2-chart h2 { font-size: 18px; }
  .t2-chart-axis { margin-left: 0; margin-right: 36px; }
  .t2-chart-row { display: block; padding: 8px 0; }
  .t2-chart-row > strong { display: block; margin-bottom: 4px; font-size: 12px; }
  .t2-bar-pair { padding-right: 36px; }
  .t2-screen.t1-marina .t1-message--user { width: 100%; max-width: 100%; }
  .t2-findings { font-size: 13px; }
}
