:root {
  --bg: #f3f0e7;
  --bg-accent: #e3dcc9;
  --ink: #1f2a2a;
  --accent: #9e2a2b;
  --accent-2: #0a7a64;
  --panel: #fffaf0;
  --border: #d7cfbf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, var(--bg-accent), var(--bg));
}

a {
  color: var(--accent);
}

.shell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #1f2a2a;
  color: #f5f5f1;
}

.shell-header nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.shell-header nav a {
  color: #f5f5f1;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.shell-header nav a:hover {
  border-bottom-color: #f5f5f1;
}

.shell-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shell-main {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.grid.two-up {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.collapsible-stack {
  display: grid;
  gap: 0.6rem;
}

.collapsible-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.collapsible-row summary {
  cursor: pointer;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
}

.collapsible-row[open] summary {
  border-bottom: 1px solid var(--border);
}

.collapsible-body {
  padding: 0.8rem;
}

.report-embed {
  display: block;
  width: 100%;
  min-height: 240px;
  overflow-x: auto;
  padding: 0.8rem;
}

.report-embed > * {
  max-width: 100%;
}

.wrap-anywhere {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: end;
}

.filter-form {
  margin-bottom: 1rem;
}

.filter-form-live {
  align-items: stretch;
}

.filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.filter-meta {
  color: #655e51;
  font-size: 0.88rem;
  font-weight: 600;
}

.filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-checkboxes {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.filter-checkboxes legend {
  width: 100%;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.filter-checkbox {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 500;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
}

.filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-chip-pill {
  --position-bg: #ebe8de;
  --position-fg: #1f2a2a;
  --position-border: #cbbfa6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  border: 1px solid var(--position-border);
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  background: #fff;
  color: #5d564a;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  transition: all 120ms ease;
}

.filter-chip input:checked + .filter-chip-pill {
  background: var(--position-bg);
  color: var(--position-fg);
  border-color: var(--position-border);
}

.filter-chip:hover .filter-chip-pill {
  border-color: #94886f;
  color: #3d362c;
}

.filter-chip input:focus-visible + .filter-chip-pill {
  outline: 2px solid #807863;
  outline-offset: 1px;
}

.button.secondary {
  background: #605850;
}

.filter-chip-all {
  border-color: #1f2a2a;
  color: #1f2a2a;
  background: #fff;
  font-weight: 700;
}

.filter-chip-all.is-active {
  background: #1f2a2a;
  color: #fff;
  border-color: #1f2a2a;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
  padding: 0.56rem 0.86rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.button,
button {
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.operator-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  padding: 0.2rem 0;
}

.operator-layout {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.operator-lineup-column,
.operator-widgets-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.operator-widgets-column {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.widget-panel {
  display: grid;
  gap: 1rem;
  padding: 0;
  overflow: hidden;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem;
}

.widget-header::-webkit-details-marker {
  display: none;
}

.widget-header-title {
  display: grid;
  gap: 0.15rem;
}

.widget-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.widget-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.widget-refresh-form {
  display: none;
}

.widget-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #d9ccb6;
  background: #f4ecde;
  color: var(--ink);
  cursor: pointer;
}

.widget-icon-button:hover {
  background: #ede1cd;
}

.widget-icon-button-static {
  cursor: inherit;
  pointer-events: none;
}

.widget-action-icon,
.widget-toggle-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.widget-toggle-icon {
  transition: transform 0.16s ease;
}

.widget-collapsible[open] .widget-toggle-icon {
  transform: rotate(180deg);
}

.widget-body {
  display: grid;
  gap: 0.85rem;
  padding: 0 1rem 1rem;
  border-top: 1px solid #e8dfcf;
}

.widget-meta {
  color: #655e51;
  font-size: 0.88rem;
  font-weight: 700;
}

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

.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.widget-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8dfcf;
}

.widget-list.compact li {
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  justify-content: start;
}

.widget-list.compact li strong {
  grid-row: span 2;
}

.player-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.player-warning-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.player-warning-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #b7472a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.widget-list.dense {
  gap: 0.45rem;
}

.widget-list.dense li {
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
}

.widget-list.dense strong,
.widget-list.dense span,
.widget-list.dense small {
  line-height: 1.2;
}

.widget-list small,
.widget-stats small {
  display: block;
  color: #655e51;
}

.widget-stats {
  text-align: right;
}

.widget-error {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: #fff0eb;
  color: #8a2f1a;
  border: 1px solid #e6b3a6;
}

.widget-error-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.widget-error-row form {
  margin: 0;
}

.scoreboard-shell {
  display: grid;
  gap: 1rem;
}

.scoreboard-status-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.scoreboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scorebug-card {
  display: grid;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.95), rgb(247 241 230 / 0.96)),
    linear-gradient(135deg, #fff 0%, #f0e6d4 100%);
  border: 1px solid #d8cfbe;
  box-shadow: 0 8px 24px rgb(40 33 26 / 0.08);
}

.scorebug-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.scorebug-status-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.scorebug-status-badge,
.scorebug-total-badge,
.scorebug-badge {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scorebug-inning {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.8rem;
  color: #5d564a;
}

.scorebug-scoreline {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  background: #1b2323;
  color: #f6f3ea;
}

.scorebug-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
}

.scorebug-team-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}

.scorebug-team-star {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8f8573;
  font-size: 1rem;
  line-height: 1;
}

.scorebug-team-star.is-active {
  color: #bc7a17;
}

.scorebug-team-star:hover {
  color: #8d5610;
}

.scorebug-team-abbr {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.scorebug-team-name {
  color: #d7d1c5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorebug-team-score {
  min-width: 1.5rem;
  text-align: right;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.scorebug-matchup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.scorebug-side {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.scorebug-context-team {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.scorebug-context-label {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #786f61;
}

.scorebug-context-name {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorebug-boxscore {
  border-top: 1px solid #e1d8c7;
  padding-top: 0.45rem;
  display: grid;
  gap: 0.45rem;
}

.scorebug-boxscore-group {
  display: grid;
  gap: 0.12rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dotted #ddd2bf;
}

.scorebug-boxscore-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.scorebug-boxscore-label {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6f6658;
  font-weight: 700;
}

.scorebug-boxscore-count {
  color: #2f2a22;
}

.scorebug-boxscore-players {
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
  display: grid;
  gap: 0.12rem;
}

.scorebug-boxscore-player-name {
  font-weight: 600;
  color: var(--ink);
}

.scorebug-boxscore-player {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.scorebug-boxscore-player-pos {
  margin-left: 0.35rem;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  color: #837a6b;
}

.scorebug-boxscore-empty {
  color: #857c6d;
}

.scorebug-boxscore-row-success .scorebug-boxscore-label {
  color: #17543b;
}

.scorebug-boxscore-row-warning .scorebug-boxscore-label {
  color: #8b560d;
}

.scorebug-boxscore-row-secondary .scorebug-boxscore-label,
.scorebug-boxscore-row-outline .scorebug-boxscore-label {
  color: #5d564a;
}

@media (max-width: 1080px) {
  .scorebug-context-name {
    white-space: normal;
  }
}

.empty-state {
  margin: 0;
  color: #655e51;
}

.widget-list.warnings li {
  justify-content: start;
  background: #fff8e7;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-auth-button,
.nav-auth-link {
  margin: 0;
}

@media (max-width: 720px) {
  .operator-layout {
    grid-template-columns: 1fr;
  }

  .operator-widgets-column {
    grid-template-columns: 1fr;
  }

  .operator-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .widget-list li {
    display: grid;
  }

  .widget-stats {
    text-align: left;
  }
}

.assistant-chat-line,
.assistant-tool-line {
  margin: 0.35rem 0;
  padding: 0.4rem 0.55rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: pre-wrap;
}

.run-live-log {
  margin: 0.5rem 0 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem;
  background: #fff;
  min-height: 180px;
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.35;
}

.table-frame {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.load-more-wrap {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
}

.load-more-button {
  border-radius: 999px;
  padding: 0.58rem 1.15rem;
  min-width: 8.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
}

.load-more-done {
  margin: 0;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 0.45rem;
}

.position-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.position-pill {
  --position-bg: #ebe8de;
  --position-fg: #1f2a2a;
  --position-border: #cbbfa6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--position-border);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  background: var(--position-bg);
  color: var(--position-fg);
}

.position-color-c {
  --position-bg: #e8f4ff;
  --position-fg: #083e72;
  --position-border: #6ea7d8;
}

.position-color-first {
  --position-bg: #fef3df;
  --position-fg: #6d480b;
  --position-border: #d8a453;
}

.position-color-second {
  --position-bg: #f2ecff;
  --position-fg: #4a2a84;
  --position-border: #8b73cb;
}

.position-color-third {
  --position-bg: #ffe9eb;
  --position-fg: #7b1827;
  --position-border: #d27a84;
}

.position-color-ss {
  --position-bg: #ebfff5;
  --position-fg: #0d5b3b;
  --position-border: #6cbf97;
}

.position-color-of {
  --position-bg: #e8fbff;
  --position-fg: #0f5f6e;
  --position-border: #74b8c3;
}

.position-color-util {
  --position-bg: #f1efe9;
  --position-fg: #4a4337;
  --position-border: #a99f8a;
}

.position-color-dh {
  --position-bg: #fff2f8;
  --position-fg: #7d2a5f;
  --position-border: #d28bb5;
}

.position-color-sp {
  --position-bg: #e8f0ff;
  --position-fg: #183b80;
  --position-border: #6e8fcb;
}

.position-color-rp {
  --position-bg: #eaf8f0;
  --position-fg: #1a5b38;
  --position-border: #74b293;
}

.position-color-strategy {
  --position-bg: #f7edff;
  --position-fg: #5a2a8e;
  --position-border: #a57dcf;
}

.position-color-pitcher {
  --position-bg: #edf6ff;
  --position-fg: #1f4f86;
  --position-border: #7ea8d1;
}

.position-color-all {
  --position-bg: #f0eee8;
  --position-fg: #2d2b27;
  --position-border: #9d9788;
}

pre {
  max-height: 24rem;
  overflow: auto;
  background: #f7f4eb;
  padding: 0.8rem;
  border-radius: 8px;
}

.flash {
  margin: 0.6rem 1.2rem;
  padding: 0.7rem;
  border-radius: 8px;
}

.flash.notice {
  background: #d8f5ea;
}

.flash.alert,
.error {
  background: #ffd7d7;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.badge-plus {
  background: #d8f5ea;
}

.badge-minus {
  background: #ffd7d7;
}

.badge-neutral {
  background: #ebe8de;
}

.table-column-head {
  min-width: 120px;
}

.table-column-head-link,
.table-column-head-static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
}

.table-column-head-link {
  text-decoration: none;
}

.table-column-head-link:hover {
  text-decoration: underline;
}

.table-column-head-left {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.table-column-head-sort {
  margin-left: auto;
  min-width: 1rem;
  text-align: right;
  font-size: 0.78rem;
  color: #6d665b;
  flex-shrink: 0;
}

.table-head-info {
  display: inline-flex;
  align-items: center;
  margin-left: 0.3rem;
}

.table-head-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  color: #6d665b;
}

.table-head-info-icon {
  display: inline-block;
  stroke: currentColor;
}

/* Fallback visibility rules for RubyUI tooltips in non-utility CSS contexts */
[data-controller~="ruby-ui--tooltip"] {
  position: relative;
  display: inline-flex;
  align-items: center;
}

[data-controller~="ruby-ui--tooltip"] [data-ruby-ui--tooltip-target="content"] {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%);
  z-index: 5000;
  max-width: min(42ch, 80vw);
  width: max-content;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.18);
  padding: 0.45rem 0.55rem;
  line-height: 1.25;
  font-size: 0.75rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

[data-controller~="ruby-ui--tooltip"] [data-ruby-ui--tooltip-target="trigger"]:hover + [data-ruby-ui--tooltip-target="content"],
[data-controller~="ruby-ui--tooltip"] [data-ruby-ui--tooltip-target="trigger"]:focus-visible + [data-ruby-ui--tooltip-target="content"] {
  visibility: visible;
  opacity: 1;
}

.grid.two-up.dashboard-health-snippets {
  grid-template-columns: 2fr 1fr;
}

@media (max-width: 980px) {
  .grid.two-up.dashboard-health-snippets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.assistant-shell {
  display: grid;
  gap: 1rem;
}

.assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.assistant-header h1,
.assistant-row h2 {
  margin: 0;
}

.assistant-subtitle {
  margin: 0.35rem 0 0;
  color: #655e51;
}

.assistant-settings {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.assistant-settings label {
  min-width: 10rem;
}

.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1rem;
  align-items: start;
}

.assistant-main,
.assistant-side {
  display: grid;
  gap: 0.85rem;
}

.assistant-main {
  min-height: 72vh;
  grid-template-rows: auto minmax(20rem, 1fr) auto;
}

.assistant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.assistant-status {
  margin: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: #655e51;
  font-size: 0.82rem;
  font-weight: 700;
}

.assistant-transcript,
.assistant-tools {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-height: 0;
  max-height: 68vh;
  overflow: auto;
}

.assistant-empty-state {
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: #fff;
  color: #655e51;
}

.assistant-message {
  display: grid;
  gap: 0.28rem;
}

.assistant-message-user {
  justify-items: end;
}

.assistant-message-assistant {
  justify-items: start;
}

.assistant-message-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #655e51;
}

.assistant-message-body {
  max-width: min(78ch, 92%);
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  white-space: pre-wrap;
  line-height: 1.45;
}

.assistant-message-user .assistant-message-body {
  background: #20373b;
  border-color: #20373b;
  color: #fffaf2;
  border-bottom-right-radius: 6px;
}

.assistant-message-assistant .assistant-message-body {
  border-bottom-left-radius: 6px;
}

.assistant-composer {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.3rem;
  border-top: 1px solid #e8dfcf;
}

.assistant-composer textarea {
  width: 100%;
  resize: vertical;
  background: #fff;
}

.assistant-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.assistant-tool-line {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.77rem;
  line-height: 1.35;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .assistant-header,
  .assistant-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .assistant-main {
    min-height: auto;
  }

  .assistant-transcript,
  .assistant-tools {
    max-height: none;
  }
}
