/*
  Header assistant panel (prototype).
  Everything is scoped under .tsl-asst / #tslAsst so it cannot collide with
  base.css or Bootstrap. Tokens are defined on the panel root, not :root.
*/

/* Assistant trigger: identical to the other header buttons -- the house rule
   supplies the 30px box, #2b3035 ground and #495057 hover. The only departure
   is the label colour, in the same mint the notifications menu uses. */

#base-body-header .header-assistant-trigger {
  padding: 0 10px;
  font-size: 1.03rem;
  font-weight: 500;
  color: #43e8b2;
}

#base-body-header .header-assistant-trigger:hover,
#base-body-header .header-assistant-trigger:focus,
#base-body-header .header-assistant-trigger[aria-expanded="true"] {
  color: #5cf0c2;
}

/* ---------- scrim + panel shell ---------- */

.tsl-asst-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 25, .34);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s;
  z-index: 1049;
}

.tsl-asst-scrim.is-open { opacity: 1; visibility: visible; }

/* ---------- push mode ----------
   Wide screens: the panel docks under the header and the shared content
   wrapper gives up the width, so the page stays usable (no scrim).
   Narrow screens fall back to the overlay above. One rule covers every
   template, because they all render inside #tslAsstContent. */

.tsl-asst-pushable,
#base-body-header {
  transition: margin-right .22s cubic-bezier(.32, .72, .35, 1);
}

@media (min-width: 1100px) {
  .tsl-asst-scrim { display: none; }

  /* full height: the panel becomes the right column of the app, header included */
  .tsl-asst { box-shadow: none; }

  body.tsl-asst-open .tsl-asst-pushable,
  body.tsl-asst-open #base-body-header {
    margin-right: var(--asst-w, 420px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tsl-asst-pushable,
  #base-body-header { transition: none; }
}

.tsl-asst {
  /* Same visual language as the notifications menu: dark #1f2328 surface,
     #3f4750 hairlines, mint accent. Everything below is token-driven, so the
     components did not change -- only these values did. */
  --asst-surface: #1f2328;
  --asst-sunken: #191c20;
  --asst-line: #3f4750;
  --asst-line-strong: #495057;
  --asst-ink: #f1f5f9;
  --asst-ink-2: #c3ccd6;
  --asst-ink-3: #a8b2bd;
  --asst-hover: #3a3d42;

  --asst-brand: #43e8b2;
  --asst-brand-tint: rgba(67, 232, 178, .14);
  --asst-brand-strong: #43e8b2;

  --asst-series-bar: #9085e9;
  --asst-series-1: #3987e5;
  --asst-series-2: #d95926;

  --asst-good: #43e8b2;
  --asst-good-bg: rgba(67, 232, 178, .14);
  --asst-warn: #e0a526;
  --asst-warn-bg: rgba(224, 165, 38, .14);
  --asst-crit: #f07f99;
  --asst-crit-bg: rgba(240, 127, 153, .14);

  --asst-grid: #343a40;
  --asst-chrome: #14171a;

  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  width: var(--asst-w, 420px);
  max-width: 100vw;
  background: var(--asst-surface);
  box-shadow: -10px 0 34px rgba(0, 0, 0, .46);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .22s cubic-bezier(.32, .72, .35, 1);
  z-index: 1050;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--asst-ink);
}

.tsl-asst.is-open { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .tsl-asst, .tsl-asst-scrim { transition: none; }
}

/* ---------- scrollbars ----------
   The panel is dark, so the platform scrollbar renders light against it.
   Same treatment the omnibox results use (rgba(255,255,255,.15) thumb on a
   transparent track), applied to every scrollable region in the panel. */

.tsl-asst__scroll,
.tsl-asst__tblWrap,
.tsl-asst__code,
.tsl-asst__threadMenu {
  scrollbar-width: thin;                                   /* Firefox */
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.tsl-asst__scroll::-webkit-scrollbar,
.tsl-asst__tblWrap::-webkit-scrollbar,
.tsl-asst__code::-webkit-scrollbar,
.tsl-asst__threadMenu::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.tsl-asst__scroll::-webkit-scrollbar-track,
.tsl-asst__tblWrap::-webkit-scrollbar-track,
.tsl-asst__code::-webkit-scrollbar-track,
.tsl-asst__threadMenu::-webkit-scrollbar-track {
  background: transparent;
}

.tsl-asst__scroll::-webkit-scrollbar-thumb,
.tsl-asst__tblWrap::-webkit-scrollbar-thumb,
.tsl-asst__code::-webkit-scrollbar-thumb,
.tsl-asst__threadMenu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .15);
  border-radius: 8px;
}

.tsl-asst__scroll::-webkit-scrollbar-thumb:hover,
.tsl-asst__tblWrap::-webkit-scrollbar-thumb:hover,
.tsl-asst__code::-webkit-scrollbar-thumb:hover,
.tsl-asst__threadMenu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .28);
}

/* the stepper arrows read as chrome the panel does not have */
.tsl-asst__scroll::-webkit-scrollbar-button,
.tsl-asst__tblWrap::-webkit-scrollbar-button,
.tsl-asst__code::-webkit-scrollbar-button,
.tsl-asst__threadMenu::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

/* corner where the two bars meet on a scrollable table */
.tsl-asst__tblWrap::-webkit-scrollbar-corner {
  background: transparent;
}

/* ---------- resize grip ---------- */

.tsl-asst__grip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  cursor: col-resize;
  z-index: 2;
  background: transparent;
  transition: background-color .15s ease;
}

.tsl-asst__grip:hover,
.tsl-asst__grip:focus-visible,
.tsl-asst.is-resizing .tsl-asst__grip {
  background: var(--asst-brand);
  outline: none;
}

.tsl-asst.is-resizing { transition: none; user-select: none; }

/* ---------- head ---------- */

.tsl-asst__head {
  display: flex;
  align-items: center;
  gap: 10px;
  /* same height as #base-body-header, so the two bottom edges line up.
     base.js measures the bar into --app-header-h; the panel re-syncs it on
     boot because base.js only sets it on window 'load'. */
  height: var(--app-header-h);
  box-sizing: border-box;
  padding: 0 12px 0 16px;
  flex: 0 0 auto;
}

.tsl-asst__threadBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 4px 8px;
  margin-left: -4px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--asst-ink);
  cursor: pointer;
  max-width: 240px;
}

.tsl-asst__threadBtn:hover,
.tsl-asst__threadBtn[aria-expanded="true"] {
  background: var(--asst-hover);
  border-color: var(--asst-line);
}

.tsl-asst__threadBtn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsl-asst__threadBtn i {
  width: 14px;
  height: 14px;
  display: block;
  color: var(--asst-ink-3);
  flex: 0 0 auto;
}

.tsl-asst__threadMenu {
  --bs-dropdown-bg: var(--asst-surface);
  --bs-dropdown-border-color: var(--asst-line);
  --bs-dropdown-link-color: var(--asst-ink);
  --bs-dropdown-link-hover-bg: var(--asst-hover);
  --bs-dropdown-link-hover-color: var(--asst-ink);
  --bs-dropdown-link-active-bg: var(--asst-brand-tint);
  --bs-dropdown-link-active-color: var(--asst-ink);
  min-width: 248px;
  font-size: 13px;
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.tsl-asst__threadMenu .dropdown-item {
  border-radius: 7px;
  padding: 7px 9px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.tsl-asst__threadMenu .dropdown-item b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsl-asst__threadMenu .dropdown-item small {
  margin-left: auto;
  color: var(--asst-ink-3);
  font-size: 11px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.tsl-asst__threadMenu .dropdown-header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--asst-ink-3);
  padding: 7px 9px 4px;
}

.tsl-asst__threadMenu .dropdown-divider {
  border-color: var(--asst-line);
  margin: 4px 0;
}

.tsl-asst__close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--asst-ink-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.tsl-asst__close:hover { background: var(--asst-hover); color: var(--asst-ink); }
.tsl-asst__close i { width: 16px; height: 16px; display: block; }

/* ---------- transcript ---------- */

.tsl-asst__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.tsl-asst__user {
  align-self: flex-end;
  max-width: 85%;
  background: var(--asst-brand-tint);
  border: 1px solid color-mix(in oklab, var(--asst-brand) 40%, transparent);
  color: var(--asst-ink);
  padding: 8px 12px;
  border-radius: 12px 12px 3px 12px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tsl-asst__bot { display: flex; flex-direction: column; gap: 11px; }

.tsl-asst__prose { font-size: 13.5px; color: var(--asst-ink); }
.tsl-asst__prose p { margin: 0 0 9px; }
.tsl-asst__prose p:last-child { margin-bottom: 0; }
.tsl-asst__prose strong { font-weight: 600; }
.tsl-asst__prose em { color: var(--asst-ink-2); font-style: italic; }
.tsl-asst__inlineLink {
  color: var(--asst-brand-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--asst-brand) 45%, transparent);
  text-underline-offset: 2px;
}
.tsl-asst__inlineLink:hover { text-decoration-color: currentColor; }
.tsl-asst .num { font-variant-numeric: tabular-nums; }

.tsl-asst__caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--asst-brand-strong);
  vertical-align: -2px;
  animation: tslAsstBlink .9s steps(2) infinite;
}

@keyframes tslAsstBlink { 50% { opacity: 0; } }

/* ---------- staged pipeline ---------- */

.tsl-asst__stages {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: var(--asst-ink-2);
}

.tsl-asst__stage { display: flex; align-items: center; gap: 8px; }

.tsl-asst__stageLabel { display: inline-block; color: inherit; }
.tsl-asst__stage.is-live .tsl-asst__stageLabel,
.tsl-asst__agentTrace.is-working [data-agent-elapsed] {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--asst-ink);
}
.tsl-asst__stageDetail { max-width: 480px; margin: 0; color: var(--asst-ink-3); font-size: 11px; line-height: 1.6; }

/* Text stays readable in both themes; only the highlight moves, not the label.
   Unsupported clipping and reduced-motion preferences get plain static text. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  @media (prefers-reduced-motion: no-preference) {
    .tsl-asst__stage.is-live .tsl-asst__stageLabel,
    .tsl-asst__agentTrace.is-working [data-agent-elapsed] {
      background-image: linear-gradient(110deg, var(--asst-ink) 38%, #8195b0 48%, #8195b0 52%, var(--asst-ink) 62%);
      background-size: 240% 100%;
      background-position: 100% 0;
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      animation: tslAsstTextShimmer 2s ease-in-out infinite;
    }
  }
}

.tsl-asst__stage.is-todo { color: var(--asst-ink-3); opacity: .65; }
.tsl-asst__stage.is-done { color: var(--asst-ink-3); }

/* An oversized gradient at 100% starts left of the text and exits on the right. */
@keyframes tslAsstTextShimmer {
  0%, 15% { background-position: 100% 0; }
  85%, 100% { background-position: 0% 0; }
}

@media (forced-colors: active) {
  .tsl-asst__stage.is-live .tsl-asst__stageLabel,
  .tsl-asst__agentTrace.is-working [data-agent-elapsed] { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; animation: none; }
}

/* ---------- empty state ---------- */

.tsl-asst__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  margin-block: auto;
  color: var(--asst-ink-3);
  font-size: 14px;
  line-height: 1.6;
  padding: 28px 12px 36px;
  text-align: center;
}

.tsl-asst__welcomeGraphic { width: 144px; height: 110px; margin-bottom: 16px; background: radial-gradient(ellipse at center, var(--asst-brand-tint), transparent 68%); }
.tsl-asst__welcomeGraphic svg { display: block; width: 100%; height: 100%; }
.tsl-asst__welcomeEyebrow { color: var(--asst-ink-3); font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.tsl-asst .tsl-asst__welcomeTitle { margin: 8px 0 12px; max-width: 330px; color: var(--asst-ink); font-size: clamp(22px, 2.4vw, 26px); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.tsl-asst__empty-state .tsl-asst__welcomeCopy { margin: 0; max-width: 290px; color: var(--asst-ink-3); font-size: 14px; line-height: 1.6; }
.tsl-asst__empty-state .tsl-asst__starters { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 310px; gap: 7px; margin-top: 24px; }
.tsl-asst__empty-state .tsl-asst__starters:empty { display: none; }
.tsl-asst__empty-state .tsl-asst__chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--asst-line); border-radius: 9px; background: transparent; color: var(--asst-ink-2); font-size: 13px; line-height: 1.45; text-align: left; }
.tsl-asst__empty-state .tsl-asst__chip::after { content: "↗"; flex-shrink: 0; color: var(--asst-ink-3); font-size: 16px; }
.tsl-asst__empty-state .tsl-asst__chip:hover { border-color: var(--asst-line-strong); background: var(--asst-hover); color: var(--asst-ink); }

@media (max-height: 620px) {
  .tsl-asst__empty-state { padding-block: 16px; }
  .tsl-asst__welcomeGraphic { width: 108px; height: 83px; margin-bottom: 10px; }
  .tsl-asst__empty-state .tsl-asst__starters { margin-top: 16px; }
}

.tsl-asst__empty-hint {
  color: var(--asst-ink-3);
  font-style: italic;
}

/* ---------- cards ----------
   One component for every entity. Compact cards stack in a list; the detail
   card adds sections. The kind drives only the accent stripe, so a trip, an
   activity and a reservation are structurally identical. */

.tsl-asst__cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--asst-line);
  border-radius: 8px;
  overflow: hidden;
}

.tsl-asst__card {
  border: 1px solid var(--asst-line);
  border-radius: 8px;
  background: var(--asst-sunken);
  padding: 14px;
}

.tsl-asst__cards .tsl-asst__card { border: 0; border-radius: 0; }
.tsl-asst__cards .tsl-asst__card + .tsl-asst__card { border-top: 1px solid var(--asst-line); }

.tsl-asst__card.is-detail { background: var(--asst-sunken); }
.tsl-asst__cardHead { display: flex; align-items: flex-start; gap: 11px; }
.tsl-asst__recordIdentity { flex: 1; min-width: 0; }
.tsl-asst__recordIcon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--asst-line);
  border-radius: 6px;
  color: var(--asst-ink-2);
}
.tsl-asst__recordIcon svg { width: 18px; height: 18px; }
.tsl-asst__recordKind { display: block; font-size: 11px; color: var(--asst-ink-3); text-transform: capitalize; margin-bottom: 2px; }

.tsl-asst__cardTitle {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--asst-ink);
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.tsl-asst a.tsl-asst__cardTitle:hover { color: var(--asst-brand); text-decoration: underline; }

.tsl-asst__cardSub {
  font-size: 13px;
  color: var(--asst-ink-3);
  margin-top: 1px;
}

.tsl-asst__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 7px 12px;
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--asst-line);
}

.tsl-asst__stat dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--asst-ink-3);
}

.tsl-asst__stat dd {
  margin: 1px 0 0;
  font-size: 14px;
  color: var(--asst-ink);
  font-variant-numeric: tabular-nums;
}

.tsl-asst__cardSection { margin-top: 10px; }

.tsl-asst__cardSection h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--asst-ink-3);
  margin: 0 0 3px;
}

.tsl-asst__cardSection p,
.tsl-asst__cardSection ul {
  margin: 0;
  font-size: 14px;
  color: var(--asst-ink-2);
  line-height: 1.5;
}

.tsl-asst__cardSection ul { padding-left: 16px; }

.tsl-asst__cardLink {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--asst-line);
  border-radius: 6px;
  color: var(--asst-ink-2);
  text-decoration: none;
}

.tsl-asst__cardLink svg { width: 17px; height: 17px; }
.tsl-asst__cardLink:hover { color: var(--asst-ink); background: var(--asst-hover); }
.tsl-asst__recordDetails { border-top: 1px solid var(--asst-line); margin-top: 13px; padding-top: 10px; }
.tsl-asst__recordDetails > summary { font-size: 13px; color: var(--asst-ink-2); cursor: pointer; }
.tsl-asst__recordActions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--asst-line); }
.tsl-asst__recordAction { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--asst-line); border-radius: 6px; background: transparent; color: var(--asst-ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.tsl-asst__recordAction svg { width: 14px; height: 14px; }
.tsl-asst__recordAction:hover { background: var(--asst-hover); color: var(--asst-ink); }
.tsl-asst__recordAction[aria-expanded="true"] { background: var(--asst-hover); border-color: var(--asst-line-strong); color: var(--asst-ink); }
.tsl-asst__recordAction:focus-visible { outline: 2px solid var(--asst-brand); outline-offset: 3px; }
.tsl-asst__card a:focus-visible,
.tsl-asst__recordDetails > summary:focus-visible { outline: 2px solid var(--asst-brand); outline-offset: 3px; }

/* Related data stays inside its record, with one on-demand section at a time. */
.tsl-asst__expansion[hidden] { display: none; }
.tsl-asst__expansion { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--asst-line); }
.tsl-asst__expansionHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tsl-asst__expansionHead h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--asst-ink); }
.tsl-asst__expansionClose { display: grid; place-items: center; width: 28px; height: 28px; padding: 3px; border: 0; border-radius: 5px; background: transparent; color: var(--asst-ink-3); cursor: pointer; }
.tsl-asst__expansionClose:hover { background: var(--asst-hover); color: var(--asst-ink); }
.tsl-asst__expansionClose svg { width: 16px; height: 16px; }
.tsl-asst__expansion .tsl-asst__previewSummary { margin: 3px 0 12px; color: var(--asst-ink-3); font-size: 12px; line-height: 1.5; }
.tsl-asst__previewList { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.tsl-asst__previewItem { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--asst-line); }
.tsl-asst__previewItem:first-child { border-top: 0; padding-top: 2px; }
.tsl-asst__previewContent { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tsl-asst__previewTitle { font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--asst-ink); }
.tsl-asst__previewTitle a { color: inherit; text-decoration: none; }
.tsl-asst__previewTitle a:hover { color: var(--asst-brand); text-decoration: underline; }
.tsl-asst__previewMeta { margin-top: 3px; color: var(--asst-ink-3); font-size: 12px; line-height: 1.5; }
.tsl-asst__expansion .tsl-asst__previewText { margin: 7px 0 0; white-space: pre-wrap; color: var(--asst-ink-2); font-size: 14px; line-height: 1.55; }
.tsl-asst__previewFields { display: flex; flex-wrap: wrap; gap: 5px 18px; margin: 7px 0 0; }
.tsl-asst__previewFields > div { min-width: 0; max-width: 100%; }
.tsl-asst__previewFields dt { color: var(--asst-ink-3); font-size: 11px; font-weight: 400; }
.tsl-asst__previewFields dd { margin: 1px 0 0; color: var(--asst-ink-2); font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.tsl-asst__fileIcon { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; color: var(--asst-ink-3); }
.tsl-asst__previewList.is-timeline .tsl-asst__previewItem { position: relative; margin-left: 4px; padding-left: 17px; border-top: 0; border-left: 1px solid var(--asst-line-strong); }
.tsl-asst__previewList.is-timeline .tsl-asst__previewItem::before { content: ""; position: absolute; left: -4px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--asst-ink-3); }
.tsl-asst__previewList.is-timeline .tsl-asst__previewItem:first-child::before { top: 8px; }
.tsl-asst__expansion .tsl-asst__previewNotice { margin: 10px 0 0; color: var(--asst-ink-3); font-size: 12px; line-height: 1.5; }
.tsl-asst__previewAsk, .tsl-asst__previewRetry { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 0; background: transparent; border: 0; font: inherit; font-size: 12px; color: var(--asst-ink-2); cursor: pointer; }
.tsl-asst__previewAsk:hover, .tsl-asst__previewRetry:hover { color: var(--asst-brand); }
.tsl-asst__previewAsk svg { width: 14px; height: 14px; }
.tsl-asst__previewBack { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; margin: 0 0 6px; border: 0; background: transparent; font: inherit; font-size: 12px; color: var(--asst-ink-3); cursor: pointer; }
.tsl-asst__previewBack:hover { color: var(--asst-ink); }
.tsl-asst__previewBack svg { width: 14px; height: 14px; }
.tsl-asst__collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 7px; }
.tsl-asst__collection { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--asst-line); border-radius: 6px; font: inherit; font-size: 13px; background: transparent; color: var(--asst-ink-2); cursor: pointer; }
.tsl-asst__collection:hover { background: var(--asst-hover); color: var(--asst-ink); }
.tsl-asst__collection span:last-child { display: inline-flex; align-items: center; gap: 4px; color: var(--asst-ink-3); }
.tsl-asst__collection svg { width: 14px; height: 14px; }
.tsl-asst__expansion button:focus-visible { outline: 2px solid var(--asst-brand); outline-offset: 3px; }

/* ---------- prompt chips ---------- */

.tsl-asst__starters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tsl-asst__chip {
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--asst-brand-strong);
  background: var(--asst-brand-tint);
  border: 1px solid color-mix(in oklab, var(--asst-brand) 38%, transparent);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  text-align: left;
}

.tsl-asst__chip:hover { filter: brightness(.97); }
.tsl-asst .tsl-asst__chip:focus { outline: none; box-shadow: none; }
.tsl-asst .tsl-asst__chip:focus-visible { outline: 2px solid var(--asst-line-strong); outline-offset: 2px; border-color: var(--asst-ink-2); }
.tsl-asst .tsl-asst__chip:disabled { opacity: .5; cursor: default; }
.tsl-asst__followups { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 3px; }
.tsl-asst__followups[hidden] { display: none; }

/* ---------- referenced records ---------- */

.tsl-asst__references {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tsl-asst__referencesLabel {
  color: var(--asst-ink-3);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tsl-asst__referenceLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tsl-asst__referenceLink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid var(--asst-line);
  border-radius: 8px;
  background: var(--asst-surface);
  color: var(--asst-ink-2);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.tsl-asst__referenceLink:hover {
  border-color: var(--asst-brand);
  color: var(--asst-brand-strong);
  background: var(--asst-brand-tint);
}

.tsl-asst__referenceLink span {
  color: var(--asst-ink-3);
  font-size: 12px;
}

/* ---------- failure banner ---------- */
/* Both pipeline stages fall back silently, so a failed call otherwise looks
   like a normal (unhelpful) answer. This says what actually happened. */

.tsl-asst__warn {
  border: 1px solid color-mix(in oklab, var(--asst-crit) 40%, transparent);
  background: var(--asst-crit-bg);
  border-radius: 10px;
  padding: 10px 12px;
}

.tsl-asst__warnHead {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--asst-crit);
}

.tsl-asst__warnHead i { width: 14px; height: 14px; display: block; flex: 0 0 auto; }

.tsl-asst__warnBody {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--asst-ink-2);
  line-height: 1.5;
}

.tsl-asst__warnMeta {
  margin-top: 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--asst-ink-3);
}

.tsl-asst__empty {
  display: block;
  padding: 7px 9px;
  color: var(--asst-ink-3);
  font-size: 12px;
}

.tsl-asst__foot {
  margin: 0;
  font-size: 11.5px;
  color: var(--asst-ink-3);
}

/* ---------- table ---------- */

.tsl-asst__tblWrap {
  border: 1px solid var(--asst-line);
  border-radius: 10px;
  overflow-x: auto;
  background: var(--asst-surface);
}

.tsl-asst__tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 330px;
  margin: 0;
}

.tsl-asst__tbl th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--asst-ink-3);
  background: var(--asst-sunken);
  padding: 8px 11px;
  border-bottom: 1px solid var(--asst-line);
  white-space: nowrap;
}

.tsl-asst__tbl td {
  padding: 8px 11px;
  border-bottom: 1px solid var(--asst-line);
  color: var(--asst-ink);
  white-space: nowrap;
}

.tsl-asst__tbl tr:last-child td { border-bottom: 0; }
.tsl-asst__tbl .is-r { text-align: right; font-variant-numeric: tabular-nums; }
.tsl-asst__tbl .is-name { white-space: normal; min-width: 130px; }

.tsl-asst__pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.tsl-asst__pill.is-good { color: var(--asst-good); background: var(--asst-good-bg); }
.tsl-asst__pill.is-warn { color: var(--asst-warn); background: var(--asst-warn-bg); }
.tsl-asst__pill.is-crit { color: var(--asst-crit); background: var(--asst-crit-bg); }

/* ---------- chart ---------- */

.tsl-asst__viz {
  border: 1px solid var(--asst-line);
  border-radius: 10px;
  background: var(--asst-surface);
  overflow: hidden;
  position: relative;
}

.tsl-asst__vizHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--asst-line);
  background: var(--asst-sunken);
}

.tsl-asst__vizHeading { min-width: 0; }
.tsl-asst__vizTitle { font-size: 12.5px; font-weight: 650; color: var(--asst-ink); line-height: 1.35; }
.tsl-asst__vizNote { font-size: 10.5px; color: var(--asst-ink-3); margin-top: 2px; }

.tsl-asst__vizMeta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 6px;
  max-width: 62%;
}

.tsl-asst__vizMeta span {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid var(--asst-line);
  border-radius: 6px;
  background: var(--asst-surface);
  color: var(--asst-ink-2);
  font-size: 9.5px;
  line-height: 1.25;
}

.tsl-asst__vizMeta b {
  color: var(--asst-ink-3);
  font-size: 8.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tsl-asst__vizBody { padding: 10px 12px 8px; }
.tsl-asst__viz svg { width: 100%; height: auto; display: block; overflow: visible; }

@media (max-width: 520px) {
  .tsl-asst__vizHeader { flex-direction: column; }
  .tsl-asst__vizMeta { justify-content: flex-start; max-width: 100%; }
}

.tsl-asst__legend {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-bottom: 9px;
  font-size: 11.5px;
  color: var(--asst-ink-2);
}

.tsl-asst__legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 5px;
}

.tsl-asst__tip {
  position: absolute;
  pointer-events: none;
  background: var(--asst-chrome);
  color: #fff;
  font-size: 11.5px;
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .1s;
  z-index: 5;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.tsl-asst__tip.is-on { opacity: 1; }

/* ---------- query plan ---------- */

.tsl-asst__plan {
  border: 1px solid var(--asst-line);
  border-radius: 8px;
  background: var(--asst-sunken);
  font-size: 11.5px;
  overflow: hidden;
}

.tsl-asst__plan summary {
  cursor: pointer;
  padding: 7px 11px;
  color: var(--asst-ink-2);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
}

.tsl-asst__plan summary::-webkit-details-marker { display: none; }

.tsl-asst__plan summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid var(--asst-ink-3);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  transition: transform .15s;
}

.tsl-asst__plan[open] summary::before { transform: rotate(90deg); }

.tsl-asst__planBody { padding: 0 11px 10px; border-top: 1px solid var(--asst-line); }

.tsl-asst__code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.6;
  color: var(--asst-ink-2);
  margin: 9px 0 0;
  white-space: pre;
  overflow-x: auto;
  background: transparent;
  border: 0;
  padding: 0;
}

.tsl-asst__meter {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 9px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--asst-ink-3);
}

.tsl-asst__meter b { color: var(--asst-ink-2); font-weight: 500; }

/* ---------- composer ---------- */

.tsl-asst__composer {
  padding: 12px 14px 14px;
  flex: 0 0 auto;
  background: var(--asst-surface);
}

/* Multiline composer: draft files, text and a quiet bottom toolbar. */
.tsl-asst__field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--asst-line-strong);
  border-radius: 18px;
  background: var(--asst-sunken);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.tsl-asst__field:focus-within {
  border-color: var(--asst-brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--asst-brand) 20%, transparent);
}

.tsl-asst__input {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  max-height: 180px;
  resize: none;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  padding: 2px 2px 8px;
  border: 0;
  background: transparent;
  color: var(--asst-ink);
}

.tsl-asst__input:focus,
.tsl-asst__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.tsl-asst__input::placeholder { color: var(--asst-ink-3); }
/* Composer with inline @-mentions (assistant-mentions.js). */
.tsl-asst__field { position: relative; }
.tsl-asst__editor { overflow-y: hidden; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }
.tsl-asst__editor:empty::before { content: attr(data-placeholder); color: var(--asst-ink-3); pointer-events: none; }
.tsl-asst__mention { display: inline-block; margin: 0 1px; padding: 0 6px; border-radius: 6px; background: var(--asst-brand-tint); color: var(--asst-brand-strong); font-weight: 500; line-height: 1.5; white-space: nowrap; vertical-align: baseline; user-select: all; }
.tsl-asst__user .tsl-asst__mention { background: color-mix(in oklab, currentColor 12%, transparent); color: inherit; }
.tsl-asst__mentionMenu { position: absolute; z-index: 20; min-width: 200px; max-width: calc(100% - 16px); max-height: 220px; overflow-y: auto; padding: 4px; border: 1px solid var(--asst-line); border-radius: 9px; background: var(--asst-surface); color: var(--asst-ink); box-shadow: 0 8px 20px rgba(15, 23, 42, .14); scrollbar-width: thin; }
.tsl-asst__mentionMenu[hidden] { display: none; }
.tsl-asst__mentionOption { display: flex; flex-direction: column; gap: 1px; padding: 6px 9px; border-radius: 6px; cursor: pointer; }
.tsl-asst__mentionOption strong { font-size: 13px; font-weight: 400; white-space: nowrap; }
.tsl-asst__mentionOption small { color: var(--asst-ink-3); font-size: 11px; line-height: 1.35; }
.tsl-asst__mentionOption[aria-selected="true"], .tsl-asst__mentionOption:hover { background: var(--asst-hover); }
.tsl-asst__composerTools { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.tsl-asst__add { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--asst-ink-2); cursor: pointer; }
.tsl-asst__add:hover { background: var(--asst-hover); color: var(--asst-ink); }
.tsl-asst__add:disabled { opacity: .45; cursor: default; }
.tsl-asst__add svg { width: 20px; height: 20px; }
.tsl-asst__composeHint { display: block; margin: 7px 3px 0; font-size: 10.5px; line-height: 1.4; color: var(--asst-ink-3); }
.tsl-asst__toolbarSpacer { flex: 1; }
.tsl-asst__composerPicker { position: relative; min-width: 0; }
.tsl-asst__composerPicker > summary { display: flex; align-items: center; gap: 4px; min-height: 30px; padding: 4px 6px; border: 1px solid transparent; border-radius: 8px; color: var(--asst-ink-2); font-size: 12px; line-height: 1.3; list-style: none; cursor: pointer; white-space: nowrap; }
.tsl-asst__composerPicker > summary::-webkit-details-marker { display: none; }
.tsl-asst__composerPicker > summary::marker { content: ""; }
.tsl-asst__composerPicker > summary:hover, .tsl-asst__composerPicker[open] > summary { background: var(--asst-hover); color: var(--asst-ink); }
.tsl-asst__composerPicker > summary[aria-disabled="true"] { opacity: .45; cursor: default; }
.tsl-asst__composerPicker > summary:focus-visible { outline: 2px solid var(--asst-brand); outline-offset: 3px; }
.tsl-asst__composerPicker [data-composer-selection] { display: inline-flex; align-items: center; gap: 5px; }
.tsl-asst__composerPicker [data-composer-selection] svg { width: 14px; height: 14px; }
.tsl-asst__composerPicker .tsl-asst__pickerChevron { width: 11px; height: 11px; color: var(--asst-ink-3); }
.tsl-asst__composerPicker.is-action > summary { background: var(--asst-hover); border-radius: 16px; padding-inline: 9px; }
.tsl-asst__composerPicker.is-auto > summary { color: var(--asst-warn); }
.tsl-asst__pickerMenu { position: absolute; bottom: calc(100% + 12px); left: 0; width: 310px; max-width: calc(100vw - 64px); padding: 5px; border: 1px solid var(--asst-line-strong); border-radius: 12px; background: var(--asst-surface); color: var(--asst-ink); box-shadow: 0 12px 35px rgba(0, 0, 0, .4); z-index: 30; max-height: min(360px, 60vh); overflow-y: auto; }
.tsl-asst__composerPicker:not([open]) > .tsl-asst__pickerMenu { display: none; }
.tsl-asst__composerPicker.is-action .tsl-asst__pickerMenu { left: auto; right: 0; }
.tsl-asst__pickerHeading { padding: 4px 7px 6px; color: var(--asst-ink-2); font-size: 12px; font-weight: 500; }
.tsl-asst__pickerOption { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 6px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--asst-ink-2); font: inherit; text-align: left; cursor: pointer; }
.tsl-asst__pickerOption:hover { background: var(--asst-hover); }
.tsl-asst__pickerOption:disabled { opacity: .45; cursor: default; }
.tsl-asst__pickerOption > svg { flex: 0 0 16px; width: 16px; height: 16px; align-self: center; margin: 0; }
.tsl-asst__pickerOption > span { flex: 1; min-width: 0; }
.tsl-asst__composerPicker .tsl-asst__pickerOption strong { display: block; color: var(--asst-ink); font-size: 13px; font-weight: 500; line-height: 1.35; }
.tsl-asst__pickerOption small { display: block; margin-top: 0; color: var(--asst-ink-3); font-size: 12px; line-height: 1.3; }
.tsl-asst__pickerOption em { display: inline-block; margin-left: 3px; padding: 1px 4px; border: 1px solid var(--asst-line); border-radius: 4px; font-size: 10px; font-style: normal; color: var(--asst-ink-3); }
.tsl-asst__pickerOption .tsl-asst__pickerCheck { visibility: hidden; width: 14px; height: 14px; flex-basis: 14px; margin: 0; }
.tsl-asst__pickerOption[aria-pressed="true"] .tsl-asst__pickerCheck { visibility: visible; color: var(--asst-brand); }
.tsl-asst__composerPicker.is-action .tsl-asst__pickerOption em { padding: 0 4px; font-size: 9px; line-height: 1.5; vertical-align: 1px; }
.tsl-asst__composerPicker.is-auto [data-composer-approval="auto"][aria-pressed="true"] > svg { color: var(--asst-warn); }
.tsl-asst__composer .tsl-asst__pickerNote { margin: 6px 7px 3px; padding-top: 9px; border-top: 1px solid var(--asst-line); color: var(--asst-ink-3); font-size: 11px; line-height: 1.45; }
.tsl-asst__composer .tsl-asst__actionPreview { display: flex; align-items: flex-start; gap: 12px; box-sizing: border-box; width: 100%; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--asst-line); border-radius: 14px; background: var(--asst-hover); color: var(--asst-ink-2); font-size: 12px; line-height: 1.5; }
.tsl-asst__composer .tsl-asst__actionPreview[hidden] { display: none; }
.tsl-asst__actionPreviewText { flex: 1; min-width: 0; }
.tsl-asst__actionPreviewText strong { display: block; margin-bottom: 3px; color: var(--asst-ink); font-size: 12px; font-weight: 600; }
.tsl-asst__composer .tsl-asst__actionPreviewText p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.tsl-asst__actionPreviewClose { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; margin: -3px -5px 0 0; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--asst-ink-2); cursor: pointer; }
.tsl-asst__actionPreviewClose:hover { background: var(--asst-line); color: var(--asst-ink); }
.tsl-asst__actionPreviewClose:focus-visible { outline: 2px solid var(--asst-brand); outline-offset: 2px; }
.tsl-asst__actionPreviewClose svg { width: 16px; height: 16px; }
.tsl-asst.is-file-dragging::after {
  content: "Drop files to attach";
  position: absolute;
  inset: 10px;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 2px dashed var(--asst-brand);
  border-radius: 14px;
  background: rgba(25, 28, 32, .94);
  color: var(--asst-ink);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}
.tsl-asst__draftFiles[hidden], .tsl-asst__composeError[hidden] { display: none; }
.tsl-asst__draftFiles, .tsl-asst__sentFiles { display: flex; flex-wrap: wrap; gap: 8px; white-space: normal; }
.tsl-asst__sentFiles { margin-top: 9px; }
.tsl-asst__fileTile { position: relative; display: flex; align-items: center; gap: 9px; width: 210px; max-width: 100%; min-width: 0; padding: 7px 9px 7px 7px; border: 1px solid var(--asst-line); border-radius: 10px; background: var(--asst-surface); }
.tsl-asst__fileThumb { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; overflow: hidden; border-radius: 6px; background: var(--asst-sunken); color: var(--asst-ink-3); }
.tsl-asst__fileThumb img { width: 100%; height: 100%; object-fit: cover; }
.tsl-asst__fileThumb svg { width: 21px; height: 21px; }
.tsl-asst__fileInfo { flex: 1; min-width: 0; }
.tsl-asst__fileName { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--asst-ink); }
.tsl-asst__fileMeta { display: block; margin-top: 3px; font-size: 11px; color: var(--asst-ink-3); }
.tsl-asst__fileRemove { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--asst-ink-3); cursor: pointer; }
.tsl-asst__fileRemove:hover { background: var(--asst-hover); color: var(--asst-ink); }
.tsl-asst__fileRemove svg { width: 14px; height: 14px; }
.tsl-asst__composer .tsl-asst__composeError { margin: 7px 3px 0; color: var(--asst-ink-2); font-size: 12px; line-height: 1.5; }
.tsl-asst__composer button:focus-visible { outline: 2px solid var(--asst-brand); outline-offset: 3px; }

.tsl-asst__send {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--asst-ink);
  color: #14171a;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.tsl-asst__send:hover { filter: brightness(1.12); }
.tsl-asst__send[disabled] { opacity: .45; cursor: default; }
.tsl-asst__send i, .tsl-asst__send svg { width: 18px; height: 18px; display: block; }

@media (max-width: 480px) {
  .tsl-asst { width: 100vw; }
  .tsl-asst__grip { display: none; }
}

/* Same assistant component embedded in the overview, without drawer behavior. */
.tsl-asst.tsl-asst--inline {
  --asst-surface: #fff;
  --asst-sunken: #f7f9fb;
  --asst-line: #e1e6ed;
  --asst-line-strong: #cbd4df;
  /* Keep small menu descriptions and helper text readable on white,
     sunken and hovered surfaces, not just the primary option labels. */
  --asst-ink: #101828;
  --asst-ink-2: #344054;
  --asst-ink-3: #526074;
  --asst-hover: #edf1f5;
  --asst-brand: #279269;
  --asst-brand-strong: #279269;
  --asst-brand-tint: rgba(39,146,105,.08);
  --asst-warn: #a16b18;
  --asst-good: #279269;
  --asst-good-bg: rgba(39,146,105,.08);
  --asst-grid: #e1e6ed;
  position: relative;
  inset: auto;
  z-index: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition: none;
}
.tsl-asst--inline .tsl-asst__composer { padding: 0; background: transparent; }
.tsl-asst--inline .tsl-asst__field { padding: 12px; border-color: var(--asst-line); border-radius: 16px; background: var(--asst-surface); }
.tsl-asst--inline .tsl-asst__field:focus-within { border-color: var(--asst-brand); box-shadow: 0 0 0 2px var(--asst-brand-tint); }
.oa-page .tsl-asst--inline .tsl-asst__input,
.oa-page .tsl-asst--inline .tsl-asst__input:focus,
.oa-page .tsl-asst--inline .tsl-asst__input:focus-visible,
.tsl-asst--page .tsl-asst__input,
.tsl-asst--page .tsl-asst__input:focus,
.tsl-asst--page .tsl-asst__input:focus-visible {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  min-height: 44px;
}
.tsl-asst--inline .tsl-asst__send { background: #1a2233; color: #fff; }
.tsl-asst--inline .tsl-asst__composerPicker.is-action > summary { background: var(--asst-hover); }
/* The overview composer sits at the top of the page, so its pickers open downward. */
.tsl-asst--inline:not(.tsl-asst--page) .tsl-asst__pickerMenu { top: calc(100% + 8px); bottom: auto; box-shadow: 0 8px 28px rgba(17,24,39,.12); }
.tsl-asst--inline .tsl-asst__scroll { flex: none; max-height: 560px; padding: 18px 0 0; gap: 14px; }
.tsl-asst--inline .tsl-asst__scroll:empty { display: none; }
.tsl-asst--inline.is-file-dragging::after { background: rgba(247,249,251,.96); font-size: 14px; }

/* Dedicated conversation: fixed header/composer, independently scrolling turns. */
.tsl-asst { --asst-workspace-inset: 12px; }
.tsl-asst__draftButton { align-self: flex-start; padding: 7px 11px; border: 1px solid var(--asst-line-strong); border-radius: 8px; background: var(--asst-sunken); color: var(--asst-ink); font: inherit; font-size: 12px; cursor: pointer; }
.tsl-asst__clarification { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tsl-asst__clarification .tsl-asst__draftButton:disabled { opacity: .55; cursor: default; }
.tsl-asst__questionDock { padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--asst-line); border-radius: 12px; background: var(--asst-surface); color: var(--asst-ink); animation: tslQuestionIn .18s ease-out; max-height: min(300px, 35vh); overflow-y: auto; scrollbar-width: thin; }
.tsl-asst__questionDock[hidden] { display: none; }
.tsl-asst__questionTitle { font-size: 13px; font-weight: 600; line-height: 1.5; color: inherit; overflow-wrap: anywhere; }
.tsl-asst__questionDock .tsl-asst__clarification { margin-top: 8px; }
.tsl-asst__questionDock button { white-space: normal; text-align: left; max-width: 100%; }
.tsl-asst__questionDock details { flex-basis: 100%; font-size: 12px; }
.tsl-asst__questionDock details button { margin: 8px 8px 0 0; }
@keyframes tslQuestionIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .tsl-asst__questionDock { animation: none; } }
.tsl-asst__head[hidden] { display: none !important; }
.tsl-asst.tsl-asst--page.has-workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0fr) minmax(0, 0fr); grid-template-rows: auto minmax(0, 1fr) auto; transition: grid-template-columns .38s cubic-bezier(.22, 1, .36, 1); }
.tsl-asst--page.has-workspace-layout > .tsl-asst__pageHead { grid-column: 1 / -1; }
.tsl-asst--page.has-workspace-layout > .tsl-asst__scroll { grid-column: 1; grid-row: 2; }
.tsl-asst--page.has-workspace-layout > .tsl-asst__composer { grid-column: 1; grid-row: 3; min-width: 0; }
.tsl-asst--page.has-workspace-layout > :is(.tsl-asst__scroll, .tsl-asst__composer) { transition: padding .38s cubic-bezier(.22, 1, .36, 1); }
.tsl-asst.tsl-asst--page:is(.has-reservation, .has-synxis) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.tsl-asst--page:is(.has-reservation, .has-synxis) > .tsl-asst__pageHead { grid-column: 1 / -1; }
.tsl-asst--page:is(.has-reservation, .has-synxis) > .tsl-asst__scroll { grid-column: 1; grid-row: 2; padding: 24px var(--asst-workspace-inset); }
.tsl-asst--page:is(.has-reservation, .has-synxis) > .tsl-asst__composer { grid-column: 1; grid-row: 3; padding: 12px var(--asst-workspace-inset) 18px; }
.tsl-asst:is(.has-reservation, .has-synxis):not(.tsl-asst--page) { width: min(1100px, calc(100vw - 48px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.tsl-asst:is(.has-reservation, .has-synxis):not(.tsl-asst--page) > .tsl-asst__head { grid-column: 1 / -1; }
.tsl-asst:is(.has-reservation, .has-synxis):not(.tsl-asst--page) > .tsl-asst__scroll { grid-column: 1; grid-row: 2; padding-inline: var(--asst-workspace-inset); }
.tsl-asst:is(.has-reservation, .has-synxis):not(.tsl-asst--page) > .tsl-asst__composer { grid-column: 1; grid-row: 3; padding-inline: var(--asst-workspace-inset); }
@media (min-width: 901px) {
  .tsl-asst.tsl-asst--page.has-synxis, .tsl-asst.has-synxis:not(.tsl-asst--page) { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr) minmax(0, 0fr); }
}
.tsl-reservation { grid-column: 2; grid-row: 2 / 4; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--asst-surface); border-left: 1px solid var(--asst-line); color: var(--asst-ink); }
.tsl-reservation[hidden] { display: none !important; }
.tsl-reservation__head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--asst-workspace-inset); border-bottom: 1px solid var(--asst-line); }
.tsl-reservation__head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.tsl-reservation__head p { margin: 3px 0 0; font-size: 12px; color: var(--asst-ink-2); }
.tsl-reservation__head button { display: grid; place-items: center; box-sizing: border-box; width: 30px; height: 30px; flex-shrink: 0; padding: 0; border: 1px solid var(--asst-line); border-radius: 7px; background: transparent; color: var(--asst-ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.tsl-reservation__head button > svg { display: block; width: 16px; height: 16px; pointer-events: none; }
.tsl-reservation__head button:hover { background: var(--asst-hover); color: var(--asst-ink); }
.tsl-reservation__head button:focus-visible { outline: 2px solid var(--asst-brand); outline-offset: 2px; }
.tsl-reservation__body { flex: 1; min-height: 0; overflow: auto; padding: 14px var(--asst-workspace-inset); font-size: 13px; }
.tsl-reservation__notice { margin: 0 0 14px; font-size: 12px; line-height: 1.5; color: var(--asst-ink-2); }
.tsl-reservation__error { padding: 10px var(--asst-workspace-inset); margin: 0; color: var(--asst-ink); background: var(--asst-sunken); font-size: 12px; }
.tsl-reservation__warnings { padding: 10px 12px 10px 25px; background: var(--asst-sunken); border-radius: 8px; font-size: 12px; }
.tsl-reservation fieldset { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.tsl-reservation legend { float: none; width: 100%; margin: 0 0 10px; padding: 0 0 6px; border-bottom: 1px solid var(--asst-line); font-size: 14px; font-weight: 600; }
.tsl-reservation__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tsl-reservation__fields > div { min-width: 0; }
.tsl-reservation label { display: block; margin: 0 0 5px; font-size: 12px; font-weight: 500; color: var(--asst-ink-2); }
.tsl-reservation label small { float: right; font-size: 10px; color: var(--asst-brand-strong); }
.tsl-reservation .form-control, .tsl-reservation .form-select { min-height: 36px; padding: 7px 12px; border: 1px solid var(--asst-line-strong); border-radius: 8px; background-color: var(--asst-surface); color: var(--asst-ink); font-size: 12px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
/* Same box as the 36px comboboxes; textareas keep growing from min-height. */
.tsl-reservation :is(input.form-control, .form-select) { box-sizing: border-box; height: 36px; padding-top: 0; padding-bottom: 0; line-height: 34px; }
.tsl-reservation .form-control:hover, .tsl-reservation .form-select:hover { border-color: var(--asst-ink-3); }
.tsl-reservation .form-control:focus, .tsl-reservation .form-select:focus { border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .14); outline: none; }
.tsl-reservation .errorlist { margin: 5px 0 0; padding-left: 16px; color: #a12632; font-size: 12px; }
/* Sticky at bottom: 0 with no body padding underneath, so the bar keeps one height whether stuck or at the end of the scroll. */
.tsl-reservation__body:has(> form) { padding-bottom: 0; }
.tsl-reservation__formActions { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: center; gap: 8px; box-sizing: border-box; min-height: 61px; padding: 12px 0; background: var(--asst-surface); border-top: 1px solid var(--asst-line); }
.tsl-reservation__formActions button, .tsl-reservation__body > button { box-sizing: border-box; height: 36px; padding: 0 14px; border: 1px solid var(--asst-line-strong); border-radius: 8px; background: var(--asst-surface); color: var(--asst-ink); font: inherit; font-size: 13px; line-height: 1; cursor: pointer; }
.tsl-reservation__formActions button:hover { background: var(--asst-hover); }
.tsl-reservation__formActions .is-primary { border-color: var(--asst-ink); background: var(--asst-ink); color: var(--asst-surface); }
.tsl-reservation__formActions .is-primary:hover { background: var(--asst-ink); opacity: .9; }
.tsl-reservation button:disabled { opacity: .5; cursor: wait; }
/* Comboboxes mirror Overview AI's .dw-combobox / .dw-combobox-menu (dashboard-widgets.css), on assistant tokens. */
.tsl-reservation .select2-selection--single { height: 36px !important; border: 1px solid var(--asst-line-strong) !important; border-radius: 8px !important; background: var(--asst-surface) !important; box-shadow: none !important; outline: none !important; transition: border-color .15s, box-shadow .15s; }
.tsl-reservation .select2-selection--single:hover { border-color: var(--asst-ink-3) !important; }
.tsl-reservation .select2-selection__rendered { padding: 0 32px 0 12px !important; line-height: 34px !important; color: var(--asst-ink) !important; font-size: 12px; }
.tsl-reservation .select2-selection__placeholder { color: var(--asst-ink-3) !important; }
.tsl-reservation .select2-selection__arrow { width: 14px !important; height: 100% !important; top: 0 !important; right: 10px !important; display: flex; align-items: center; }
.tsl-reservation .select2-selection__arrow b { display: none; }
.tsl-reservation .select2-selection__arrow svg { width: 14px; height: 14px; color: var(--asst-ink-3); }
.tsl-reservation .select2-container--focus .select2-selection, .tsl-reservation .select2-container--open .select2-selection { border-color: #86b7fe !important; box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .14) !important; border-radius: 8px !important; }
.tsl-reservation .select2-container--disabled .select2-selection { background: var(--asst-sunken) !important; cursor: default; }
.tsl-reservation .select2-container--disabled .select2-selection__rendered { color: var(--asst-ink-3) !important; }
.tsl-reservation .select2-container { max-width: 100%; }
.tsl-reservation .tsl-reservation__menu { margin: 5px 0 !important; border: 1px solid var(--asst-line) !important; border-radius: 9px !important; background: var(--asst-surface); color: var(--asst-ink); padding: .3rem; box-shadow: 0 12px 28px rgba(15, 23, 42, .16); font-size: 12px; }
.tsl-reservation .tsl-reservation__menu .select2-search--dropdown { padding: 2px 2px 6px; }
.tsl-reservation .tsl-reservation__menu .select2-search__field { width: 100%; min-width: 0; height: 32px; margin: 0; padding: 6px 9px !important; border: 1px solid var(--asst-line-strong) !important; border-radius: 6px !important; background: var(--asst-surface) !important; color: var(--asst-ink); font: inherit; box-shadow: none !important; outline: none !important; }
.tsl-reservation .tsl-reservation__menu .select2-search__field::placeholder { color: var(--asst-ink-3); }
.tsl-reservation .tsl-reservation__menu .select2-search__field:focus { border-color: var(--asst-ink-3) !important; }
.tsl-reservation .tsl-reservation__menu .select2-results__options { max-height: 240px; padding: 0; margin: 0; border: 0 !important; scrollbar-width: thin; }
.tsl-reservation .tsl-reservation__menu .select2-results__option { padding: .48rem .55rem; margin: 0; border-radius: 6px; background: transparent !important; color: var(--asst-ink) !important; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.tsl-reservation .tsl-reservation__menu .select2-results__option--selected, .tsl-reservation .tsl-reservation__menu .select2-results__option[aria-selected="true"] { background: var(--asst-hover) !important; color: var(--asst-ink) !important; font-weight: 600; }
.tsl-reservation .tsl-reservation__menu .select2-results__option--highlighted.select2-results__option--selectable, .tsl-reservation .tsl-reservation__menu .select2-results__option--selectable:hover { background: var(--asst-hover) !important; color: var(--asst-ink) !important; }
.tsl-reservation .tsl-reservation__menu .select2-results__option--disabled { color: var(--asst-ink-3) !important; }
.tsl-reservation .tsl-reservation__menu .select2-results__message { color: var(--asst-ink-2) !important; }
.tsl-reservation__saved h3 { font-size: 18px; }
.tsl-reservation__saved a { color: var(--asst-brand-strong); }
@media (max-width: 900px) {
  .tsl-asst.tsl-asst--page:is(.has-reservation, .has-synxis), .tsl-asst:is(.has-reservation, .has-synxis):not(.tsl-asst--page) { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(100px, .6fr) auto minmax(160px, 1fr); }
  .tsl-reservation { grid-column: 1; grid-row: 4; border-left: 0; border-top: 1px solid var(--asst-line); }
}
.tsl-asst-workspace-hidden { display: none !important; }
/* One canvas: whitespace and a quiet ambient wash, not a central panel divider. */
.tsl-synxis { position: relative; isolation: isolate; border: 0; background: transparent; overflow: hidden; }
.tsl-synxis > .tsl-reservation__head { border-bottom: 0; padding-top: 20px; padding-bottom: 12px; }
.tsl-synxis > .tsl-reservation__body { position: relative; z-index: 1; }
.tsl-synxis > .tsl-reservation__head, .tsl-synxis > .tsl-reservation__error { position: relative; z-index: 1; }
.tsl-synxis::before { content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 80% 8%, color-mix(in srgb, var(--asst-brand) 8%, transparent), transparent 55%), radial-gradient(ellipse at 30% 60%, color-mix(in srgb, var(--asst-ink-3) 7%, transparent), transparent 65%); transition: opacity .5s ease; }
.tsl-synxis.is-loading::before { opacity: 1; }
.tsl-synxis__progress { padding: 20px 0 14px; }
.tsl-synxis__progress[hidden] { display: none; }
.tsl-synxis__progressTitle { margin: 0 0 22px; font-size: 14px; font-weight: 500; color: var(--asst-ink-2); }
.tsl-synxis__steps { display: grid; gap: 16px; margin: 0 0 28px; padding: 0; list-style: none; }
.tsl-synxis__steps li { display: flex; align-items: center; gap: 10px; color: var(--asst-ink-2); font-size: 12px; line-height: 1.5; }
.tsl-synxis__steps li.is-todo { color: var(--asst-ink-3); }
.tsl-synxis__stepNumber { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--asst-hover); font-size: 10px; }
.tsl-synxis__steps li.is-live .tsl-synxis__stepNumber { background: var(--asst-brand-tint); color: var(--asst-brand-strong); box-shadow: 0 0 0 3px var(--asst-brand-tint); }
.tsl-synxis__steps li.is-done .tsl-synxis__stepNumber { color: var(--asst-brand-strong); }
.tsl-synxis__steps li > small { flex-shrink: 0; margin-left: auto; color: var(--asst-ink-3); font-size: 10px; }
.tsl-synxis__skeleton { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--asst-line); border-radius: 12px; }
.tsl-synxis__skeleton span { height: 12px; width: 100%; border-radius: 5px; background: var(--asst-hover); }
.tsl-synxis__skeleton span:nth-child(2) { width: 82%; }
.tsl-synxis__skeleton span:nth-child(3) { width: 92%; }
.tsl-synxis__skeleton span:nth-child(4) { width: 65%; }
@media (prefers-reduced-motion: no-preference) {
  .tsl-synxis:not([hidden]) { animation: tslSynxisReveal .38s cubic-bezier(.22, 1, .36, 1) both; }
  .tsl-synxis.is-loading::before { animation: tslSynxisAmbient 6s ease-in-out infinite alternate; }
  .tsl-synxis__skeleton span { background-image: linear-gradient(100deg, transparent 25%, var(--asst-surface) 50%, transparent 75%); background-size: 250% 100%; animation: tslAsstTextShimmer 2.6s ease-in-out infinite; }
  .tsl-synxis:not(.is-loading) .tsl-synxis__tableWrap { animation: tslSynxisReveal .3s ease-out both; }
}
@keyframes tslSynxisReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tslSynxisAmbient { from { transform: translate3d(0, -12px, 0) scale(1); } to { transform: translate3d(-10px, 14px, 0) scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .tsl-asst.tsl-asst--page.has-workspace-layout, .tsl-asst--page.has-workspace-layout > :is(.tsl-asst__scroll, .tsl-asst__composer), .tsl-synxis::before { transition: none; }
}
@media (forced-colors: active) { .tsl-synxis::before { display: none; } .tsl-synxis__stepNumber { border: 1px solid CanvasText; } }
@media (max-width: 900px) { .tsl-asst.tsl-asst--page.has-workspace-layout, .tsl-asst--page.has-workspace-layout > :is(.tsl-asst__scroll, .tsl-asst__composer) { transition: none; } }
.tsl-synxis__criteria, .tsl-synxis__note, .tsl-synxis__count { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: var(--asst-ink-2); overflow-wrap: anywhere; }
.tsl-synxis__filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.tsl-synxis__filters[hidden], .tsl-synxis__empty[hidden], .tsl-synxis__tableWrap[hidden] { display: none; }
.tsl-synxis__filters label:first-child { flex: 1 1 170px; }
.tsl-synxis__filters label { margin: 0; min-width: 0; flex: 1 1 100px; font-size: 11px; }
.tsl-synxis__filters input, .tsl-synxis__filters select { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 34px; margin-top: 4px; padding: 6px 8px; border: 1px solid var(--asst-line-strong); border-radius: 8px; background: var(--asst-surface); color: var(--asst-ink); font: inherit; font-size: 12px; }
.tsl-synxis__filters :is(input, select):focus-visible { outline: 2px solid var(--asst-brand); outline-offset: 2px; }
.tsl-synxis__tableWrap { max-width: 100%; overflow: auto; margin-bottom: 14px; border: 1px solid var(--asst-line); border-radius: 10px; }
.tsl-synxis table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: 12px; }
.tsl-synxis th, .tsl-synxis td { padding: 9px 10px; border-bottom: 1px solid var(--asst-line); text-align: left; vertical-align: top; color: var(--asst-ink-2); }
.tsl-synxis th { position: sticky; top: 0; background: var(--asst-sunken); color: var(--asst-ink); font-size: 11px; font-weight: 600; white-space: nowrap; }
.tsl-synxis td:first-child { min-width: 160px; }
.tsl-synxis td.tsl-synxis__date { white-space: nowrap; }
.tsl-synxis__agency { min-width: 125px; overflow-wrap: anywhere; }
.tsl-synxis__agency > span { display: block; }
.tsl-synxis__hotel { min-width: 140px; overflow-wrap: anywhere; }
.tsl-synxis__hotel > span { display: block; }
.tsl-synxis td small { display: block; margin-top: 3px; color: var(--asst-ink-3); font-size: 10px; line-height: 1.45; }
.tsl-synxis td strong { color: var(--asst-ink); }
.tsl-synxis tbody tr:last-child td { border-bottom: 0; }
.tsl-synxis tbody tr { --asst-row-bg: var(--asst-surface); background: var(--asst-row-bg); }
.tsl-synxis tbody tr:hover { --asst-row-bg: var(--asst-sunken); }
.tsl-synxis td a { color: var(--asst-brand-strong); text-decoration: underline; }
.tsl-synxis__assignButton { display: block; margin: 0; padding: 5px 8px; border: 1px solid var(--asst-line-strong); border-radius: 7px; background: var(--asst-surface); color: var(--asst-ink); font: inherit; font-size: 11px; white-space: nowrap; cursor: pointer; }
.tsl-synxis__assignButton:hover { background: var(--asst-hover); }
.tsl-synxis__assignButton[aria-expanded="true"] { background: var(--asst-brand-tint); border-color: var(--asst-brand); }
.tsl-synxis__reservationLink { display: block; margin: 0; font-size: 11px; }
.tsl-synxis td.tsl-synxis__actions { position: sticky; right: 0; z-index: 1; min-width: 105px; background: var(--asst-row-bg); box-shadow: -1px 0 var(--asst-line); }
.tsl-synxis th.tsl-synxis__actions { right: 0; z-index: 3; box-shadow: -1px 0 var(--asst-line); }
.tsl-synxis tbody tr.is-selected { --asst-row-bg: color-mix(in srgb, var(--asst-brand) 8%, var(--asst-surface)); }
.tsl-synxis__assignPanel { grid-column: 3; grid-row: 2 / 4; border: 0; position: relative; background: transparent; }
.tsl-synxis__assignPanel > header { border: 0; padding: 20px var(--asst-workspace-inset) 12px; }
.tsl-synxis__assignPanel > header p { margin: 3px 0 0; font-size: 12px; }
.tsl-synxis__assignBody { flex: 1; min-height: 0; overflow: auto; padding: 14px var(--asst-workspace-inset) 18px; }
/* Adjacent half-insets make one 12px gutter, matching the canvas outer inset. */
@media (min-width: 901px) {
  .tsl-asst:is(.has-reservation, .has-synxis) > :is(.tsl-asst__scroll, .tsl-asst__composer) { padding-inline-end: calc(var(--asst-workspace-inset) / 2); }
  .tsl-asst:is(.has-reservation, .has-synxis) > .tsl-reservation > :is(.tsl-reservation__head, .tsl-reservation__body, .tsl-reservation__error, .tsl-synxis__assignBody) { padding-inline-start: calc(var(--asst-workspace-inset) / 2); }
}
@media (min-width: 1400px) {
  .tsl-asst.has-synxis-assignment > .tsl-synxis > :is(.tsl-reservation__head, .tsl-reservation__body, .tsl-reservation__error) { padding-inline-end: calc(var(--asst-workspace-inset) / 2); }
}
.tsl-synxis__assignPanel form, .tsl-synxis__assignLoading { margin: 0; padding: 18px; border: 1px solid var(--asst-line); border-radius: 14px; background: var(--asst-sunken); }
.tsl-synxis__assignPanel p { margin: 0 0 16px; color: var(--asst-ink-2); font-size: 13px; line-height: 1.6; }
.tsl-synxis__assignPanel label { display: block; margin-bottom: 5px; color: var(--asst-ink); font-size: 12px; }
.tsl-synxis__assignPanel select { width: 100%; min-height: 36px; border: 1px solid var(--asst-line-strong); border-radius: 8px; background: var(--asst-surface); color: var(--asst-ink); font-size: 13px; }
.tsl-synxis__assignPanel .form-text { margin-top: 6px; color: var(--asst-ink-3) !important; font-size: 11px; }
.tsl-synxis__assignPanel footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.tsl-synxis__assignPanel .tsl-synxis__assignBody button { padding: 7px 12px; border: 1px solid var(--asst-line-strong); border-radius: 8px; background: var(--asst-hover); color: var(--asst-ink); font: inherit; font-size: 12px; cursor: pointer; }
.tsl-synxis__assignPanel button.is-primary { background: var(--asst-ink); color: var(--asst-surface); }
.tsl-synxis__assignPanel :is(button, select):disabled { opacity: .6; cursor: wait; }
.tsl-synxis__assignPanel .select2-container { max-width: 100%; }
.tsl-asst .tsl-synxis__assignPanel .select2-container--default .select2-selection--single { height: 36px !important; border: 1px solid var(--asst-line-strong) !important; border-radius: 8px !important; background: var(--asst-surface) !important; box-shadow: none !important; }
.tsl-asst .tsl-synxis__assignPanel .select2-container--focus .select2-selection--single { border-color: var(--asst-brand) !important; }
.tsl-asst .tsl-synxis__assignPanel .select2-selection__rendered { line-height: 34px !important; padding-left: 9px !important; color: var(--asst-ink) !important; font-size: 13px !important; }
.tsl-asst .tsl-synxis__assignPanel .select2-dropdown { padding: 5px; border: 1px solid var(--asst-line-strong) !important; border-radius: 8px !important; background: var(--asst-surface) !important; color: var(--asst-ink) !important; box-shadow: 0 8px 22px #0f17241f; }
.tsl-asst .tsl-synxis__assignPanel .select2-search__field { padding: 6px 8px !important; border: 1px solid var(--asst-line-strong) !important; border-radius: 6px !important; background: var(--asst-surface) !important; color: var(--asst-ink) !important; font-size: 13px !important; }
.tsl-asst .tsl-synxis__assignPanel .select2-results__option { padding: 6px 8px; font-size: 12px !important; line-height: 1.5; }
.tsl-asst .tsl-synxis__assignPanel .select2-results__option--highlighted[aria-selected] { background: var(--asst-hover) !important; color: var(--asst-ink) !important; }
.tsl-synxis__assignPanel .tsl-synxis__assignError { margin-top: 14px; color: var(--asst-ink); }
.tsl-synxis__assignWarning { padding: 10px; border-radius: 8px; background: var(--asst-hover); }
@media (min-width: 1400px) {
  .tsl-asst.tsl-asst--page.has-synxis.has-synxis-assignment { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(280px, 3fr); }
}
@media (min-width: 901px) and (max-width: 1399px) {
  .tsl-asst.tsl-asst--page.has-synxis.has-synxis-assignment { grid-template-rows: auto minmax(220px, 1fr) minmax(250px, .8fr); }
  .tsl-asst.has-synxis-assignment > .tsl-synxis { grid-row: 2; }
  .tsl-asst.has-synxis-assignment > .tsl-synxis__assignPanel { grid-column: 2; grid-row: 3; }
  .tsl-asst.has-synxis-assignment > .tsl-asst__composer { align-self: end; }
}
@media (max-width: 900px) {
  .tsl-asst.tsl-asst--page.has-synxis.has-synxis-assignment { overflow: auto; grid-template-rows: auto minmax(100px, .4fr) auto auto minmax(180px, 1fr); }
  .tsl-asst.has-synxis-assignment > .tsl-synxis__assignPanel { grid-column: 1; grid-row: 4; min-height: 280px; }
  .tsl-asst.has-synxis-assignment > .tsl-synxis { grid-row: 5; }
}
@media (prefers-reduced-motion: no-preference) { .tsl-synxis__assignPanel:not([hidden]) { animation: tslSynxisReveal .3s ease-out both; } }
.tsl-synxis__empty { padding: 20px 12px; background: var(--asst-sunken); border-radius: 10px; color: var(--asst-ink-2); }
.tsl-asst--page.is-thread-loading .tsl-asst__scroll { opacity: .65; transition: opacity .12s ease; }
@keyframes tslAsstEnter { from { opacity: .6; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .tsl-asst.tsl-asst--page.tsl-asst--entering { animation: tslAsstEnter .16s ease-out; }
}
.tsl-asst.tsl-asst--page {
  height: var(--asst-page-height, calc(100dvh - var(--app-header-h, 48px)));
  min-height: 240px;
  overflow: hidden;
  background: var(--asst-surface);
}
.tsl-asst--page .tsl-asst__pageHead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: 0 0 auto; min-height: 52px; padding: 9px 18px; border-bottom: 1px solid var(--asst-line); }
.tsl-asst--page .tsl-asst__pageHead .dropdown { min-width: 0; flex: 1; }
.tsl-asst--page .tsl-asst__pageActions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.tsl-asst--page .tsl-asst__pageClose { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--asst-line); border-radius: 50%; background: transparent; color: var(--asst-ink-2); text-decoration: none; }
.tsl-asst--page .tsl-asst__pageClose svg { width: 17px; height: 17px; }
.tsl-asst--page .tsl-asst__pageClose:hover { background: var(--asst-hover); color: var(--asst-ink); }
.tsl-asst--page .tsl-asst__pageClose:focus-visible { outline: 2px solid var(--asst-brand); outline-offset: 3px; }
.tsl-asst--page .tsl-asst__pageClose[aria-disabled="true"] { opacity: .45; cursor: wait; }
.tsl-asst--page .tsl-asst__threadBtn { max-width: min(100%, 600px); font-size: 14px; font-weight: 600; }
.tsl-asst--page .tsl-asst__threadBtn > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tsl-asst--page .tsl-asst__threadBtn > svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--asst-ink-3); }
.tsl-asst--page .tsl-asst__pageNew { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 7px 12px; border: 1px solid var(--asst-line); border-radius: 20px; background: var(--asst-hover); color: var(--asst-ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.tsl-asst--page .tsl-asst__pageNew svg { width: 17px; height: 17px; }
.tsl-asst--page .tsl-asst__pageNew:hover { border-color: var(--asst-line-strong); }
.tsl-asst--page .tsl-asst__pageNew:disabled { opacity: .45; cursor: default; }
.tsl-asst--page .tsl-asst__pageNew:focus-visible { outline: 2px solid var(--asst-brand); outline-offset: 3px; }
.tsl-asst--page .tsl-asst__scroll { display: flex; flex: 1 1 0; min-height: 0; max-height: none; padding: 29px max(24px, calc((100% - 800px) / 2)); gap: 22px; }
.tsl-asst--page .tsl-asst__scroll:empty { display: flex; }
.tsl-asst--page .tsl-asst__prose { font-size: 14px; line-height: 1.55; }
.tsl-asst--page .tsl-asst__user { max-width: 85%; padding: 7px 11px; font-size: 14px; }
.tsl-asst--page .tsl-asst__composer { flex: 0 0 auto; padding: 11px max(24px, calc((100% - 840px) / 2)) 18px; }
.tsl-asst--page .tsl-asst__field { padding: 11px; }
/* A modest density increase without shrinking text, icons or action targets. */
.tsl-asst--page .tsl-asst__card { padding: 12.5px; }
.tsl-asst--page .tsl-asst__cardHead { gap: 10px; }
.tsl-asst--page .tsl-asst__stats { gap: 6px 11px; margin-top: 12px; padding-top: 10px; }
.tsl-asst--page .tsl-asst__recordActions { gap: 6px; margin-top: 12px; padding-top: 10px; }
.tsl-asst--page .tsl-asst__cardSection { margin-top: 9px; }
.tsl-asst--page .tsl-asst__recordDetails { margin-top: 12px; padding-top: 9px; }
.tsl-asst--page .tsl-asst__expansion { margin-top: 12px; padding-top: 12px; }
.tsl-asst--page .tsl-asst__previewItem { gap: 9px; padding-block: 10px; }
.tsl-asst--page .tsl-asst__previewItem:first-child { padding-top: 2px; }
.tsl-asst--page .tsl-asst__collection { padding: 9px; }
.tsl-asst--page .tsl-asst__tbl th, .tsl-asst--page .tsl-asst__tbl td { padding: 7px 10px; }
.tsl-asst--page .tsl-asst__vizHeader { gap: 11px; padding: 9px 11px; }
.tsl-asst--page .tsl-asst__vizBody { padding: 9px 11px 7px; }
.tsl-asst--page .tsl-asst__empty-state { flex: 1; justify-content: center; padding-block: 32px; }
.tsl-asst--page .tsl-asst__welcomeCopy { max-width: 400px; }
.tsl-asst--page .tsl-asst__pageWelcomeIcon { width: 32px; height: 32px; color: var(--asst-ink-2); }
.tsl-asst--page .tsl-asst__threadMenu { max-width: min(380px, 85vw); }
.tsl-asst--page .tsl-asst__threadMenu [aria-current="true"] { background: var(--asst-hover); }
@media (max-width: 600px) {
  .tsl-asst--page .tsl-asst__pageHead { padding: 8px 12px; }
  .tsl-asst--page .tsl-asst__scroll { padding: 18px 16px; }
  .tsl-asst--page .tsl-asst__composer { padding: 8px 12px 12px; }
}

/* Outputs occupy the column between the conversation and its workspace. */
.tsl-outputs{grid-column:2;grid-row:2 / 4;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--asst-surface,#fff);color:var(--asst-ink,#102e50);border-left:1px solid var(--asst-line,#dce4ee);font:inherit;overflow:hidden}
.tsl-outputs[hidden]{display:none!important}
.tsl-outputs__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 12px;border-bottom:1px solid var(--asst-line,#dce4ee);flex-shrink:0}
.tsl-outputs__head h2{font-size:14px;font-weight:600;margin:0}
.tsl-outputs__head button{border:1px solid var(--asst-line,#dce4ee);border-radius:7px;background:transparent;color:inherit;width:28px;height:28px;font-size:20px;cursor:pointer;flex-shrink:0}
.tsl-outputs__status{margin:0;padding:12px;font-size:12px;color:var(--asst-ink-2,#60728a)}.tsl-outputs__status:empty{display:none}
.tsl-outputs__list{padding:8px;overflow:auto;min-height:0;font-size:12px}
.tsl-outputs__item{display:flex;align-items:flex-start;gap:8px;text-align:left;width:100%;padding:11px 8px;margin:0 0 6px;border:1px solid transparent;border-radius:9px;background:transparent;color:inherit;cursor:pointer;font:inherit}
.tsl-outputs__item:hover,.tsl-outputs__item[aria-current=true]{background:var(--asst-sunken,#f4f7fa);border-color:var(--asst-line,#dce4ee)}
.tsl-outputs__item svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}.tsl-outputs__item span{min-width:0}.tsl-outputs__item strong{display:block;font-weight:500;overflow-wrap:anywhere}.tsl-outputs__item small{display:block;margin-top:5px;color:var(--asst-ink-2,#60728a);text-transform:capitalize}
.tsl-outputs__preview{padding:14px 12px;min-width:0;min-height:0;overflow:auto;font-size:13px;flex:1}.tsl-outputs__preview .asst-widget{margin-top:0}
.tsl-outputs button:focus-visible{outline:2px solid var(--asst-brand,#537b9e);outline-offset:2px}
.tsl-asst.tsl-asst--page.has-outputs{display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:auto minmax(0,1fr) auto}
.tsl-asst.tsl-asst--page.has-output-view:not(.has-outputs){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
.tsl-asst--page:is(.has-outputs,.has-output-view)>.tsl-asst__pageHead{grid-column:1 / -1}
.tsl-asst--page:is(.has-outputs,.has-output-view)>.tsl-asst__scroll{grid-column:1;grid-row:2}
.tsl-asst--page:is(.has-outputs,.has-output-view)>.tsl-asst__composer{grid-column:1;grid-row:3;min-width:0}
.tsl-asst.tsl-asst--page.has-outputs:is(.has-reservation,.has-synxis,.has-output-view){grid-template-columns:minmax(0,1fr) 300px minmax(0,1fr)}
.tsl-asst--page.has-outputs>.tsl-reservation{grid-column:3;grid-row:2 / 4}
@media(max-width:1000px){
 .tsl-asst.tsl-asst--page.has-outputs,.tsl-asst.tsl-asst--page.has-output-view:not(.has-outputs),.tsl-asst.tsl-asst--page.has-outputs:is(.has-reservation,.has-synxis,.has-output-view){grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(100px,1fr) auto minmax(100px,.4fr)}
 .tsl-asst.tsl-asst--page.has-outputs:is(.has-reservation,.has-synxis,.has-output-view){grid-template-rows:auto minmax(100px,.6fr) auto minmax(100px,.3fr) minmax(160px,1fr)}
 .tsl-asst.tsl-asst--page.has-output-view:not(.has-outputs){grid-template-rows:auto minmax(100px,.6fr) auto minmax(160px,1fr)}
 .tsl-asst--page.has-outputs>.tsl-outputs{grid-column:1;grid-row:4;border-left:0;border-top:1px solid var(--asst-line,#dce4ee);max-height:220px}
 .tsl-asst--page.has-outputs>.tsl-reservation{grid-column:1;grid-row:5;min-height:0}
 .tsl-asst--page.has-output-view:not(.has-outputs)>.tsl-output-view{grid-column:1;grid-row:4;min-height:0}
}

@media(min-width:1400px){
 .tsl-asst.tsl-asst--page.has-outputs.has-synxis.has-synxis-assignment{grid-template-columns:minmax(0,3fr) 300px minmax(0,6fr) minmax(280px,3fr)}
 .tsl-asst.has-outputs.has-synxis-assignment>.tsl-synxis__assignPanel{grid-column:4;grid-row:2 / 4}
}
@media(min-width:1001px) and (max-width:1399px){
 .tsl-asst.has-outputs.has-synxis-assignment>.tsl-synxis{grid-column:3;grid-row:2}
 .tsl-asst.has-outputs.has-synxis-assignment>.tsl-synxis__assignPanel{grid-column:3;grid-row:3}
}
@media(max-width:1000px){
 .tsl-asst.tsl-asst--page.has-outputs.has-synxis.has-synxis-assignment{grid-template-rows:auto minmax(100px,.4fr) auto minmax(100px,.3fr) minmax(180px,1fr) minmax(180px,1fr)}
 .tsl-asst.has-outputs.has-synxis-assignment>.tsl-synxis__assignPanel{grid-column:1;grid-row:6}
}

/* Shared header geometry for the output list, chart preview and draft workspace. */
.tsl-asst>:is(.tsl-outputs,.tsl-output-view,.tsl-reservation:not(.tsl-synxis))>:is(.tsl-outputs__head,.tsl-reservation__head){box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 56px;height:56px;min-height:56px;padding:12px;border-bottom:1px solid var(--asst-line);background:var(--asst-surface)}
.tsl-asst>:is(.tsl-outputs,.tsl-output-view,.tsl-reservation:not(.tsl-synxis))>header>div{min-width:0}
.tsl-asst>:is(.tsl-outputs,.tsl-output-view,.tsl-reservation:not(.tsl-synxis))>header h2{min-width:0;margin:0;font-size:14px;font-weight:600;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsl-asst>:is(.tsl-outputs,.tsl-output-view,.tsl-reservation:not(.tsl-synxis))>header button{box-sizing:border-box;display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;padding:0;border:1px solid var(--asst-line);border-radius:7px;background:transparent;color:var(--asst-ink-2);cursor:pointer}
.tsl-asst>:is(.tsl-outputs,.tsl-output-view,.tsl-reservation:not(.tsl-synxis))>header button>svg{display:block;width:16px;height:16px;pointer-events:none}
.tsl-asst>:is(.tsl-outputs,.tsl-output-view,.tsl-reservation:not(.tsl-synxis))>header button:hover{background:var(--asst-hover);color:var(--asst-ink)}
.tsl-asst>:is(.tsl-outputs,.tsl-output-view,.tsl-reservation:not(.tsl-synxis))>header button:focus-visible{outline:2px solid var(--asst-brand);outline-offset:2px}

/* Reveal workspaces and their loaded content without delaying interaction. */
@keyframes tslWorkspaceReveal{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
@keyframes tslOutputContentReveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference){
 .tsl-asst>.tsl-outputs:not([hidden]){animation:tslWorkspaceReveal .18s ease-out}
 .tsl-asst>.tsl-reservation.is-fresh-output:not([hidden]){animation:tslOutputContentReveal .18s ease-out}
 .tsl-reservation.is-fresh-output .tsl-reservation__body>iframe{opacity:0;transition:opacity .18s ease-out}
 .tsl-reservation__body>iframe.is-ready{opacity:1}
}

.tsl-outputs__item>.tsl-outputs__spinner{display:none;box-sizing:border-box;width:16px;height:16px;flex:0 0 16px;margin-top:2px;border:2px solid var(--asst-line-strong);border-top-color:currentColor;border-radius:50%}
.tsl-outputs__item.is-loading{opacity:1;cursor:progress;background:var(--asst-sunken);border-color:var(--asst-line)}
.tsl-outputs__item.is-loading>:is(svg,i){display:none}
.tsl-outputs__item.is-loading>.tsl-outputs__spinner{display:block}
@keyframes tslOutputLoading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:no-preference){.tsl-outputs__item.is-loading>.tsl-outputs__spinner{animation:tslOutputLoading .75s linear infinite}}

/* Quiet, rounded scrollbars across the conversation and output workspaces. */
.tsl-asst :is(.tsl-asst__scroll,.tsl-asst__tblWrap,.tsl-asst__code,.tsl-asst__threadMenu,.tsl-outputs__list,.tsl-outputs__preview,.tsl-reservation__body){scrollbar-width:thin;scrollbar-color:rgba(110,120,132,.45) transparent}
@supports selector(::-webkit-scrollbar){
 .tsl-asst :is(.tsl-asst__scroll,.tsl-asst__tblWrap,.tsl-asst__code,.tsl-asst__threadMenu,.tsl-outputs__list,.tsl-outputs__preview,.tsl-reservation__body){scrollbar-width:auto;scrollbar-color:auto}
 .tsl-asst :is(.tsl-asst__scroll,.tsl-asst__tblWrap,.tsl-asst__code,.tsl-asst__threadMenu,.tsl-outputs__list,.tsl-outputs__preview,.tsl-reservation__body)::-webkit-scrollbar{width:6px;height:6px}
 .tsl-asst :is(.tsl-asst__scroll,.tsl-asst__tblWrap,.tsl-asst__code,.tsl-asst__threadMenu,.tsl-outputs__list,.tsl-outputs__preview,.tsl-reservation__body)::-webkit-scrollbar-track{background:transparent}
 .tsl-asst :is(.tsl-asst__scroll,.tsl-asst__tblWrap,.tsl-asst__code,.tsl-asst__threadMenu,.tsl-outputs__list,.tsl-outputs__preview,.tsl-reservation__body)::-webkit-scrollbar-thumb{background:rgba(110,120,132,.45);border-radius:999px}
 .tsl-asst :is(.tsl-asst__scroll,.tsl-asst__tblWrap,.tsl-asst__code,.tsl-asst__threadMenu,.tsl-outputs__list,.tsl-outputs__preview,.tsl-reservation__body)::-webkit-scrollbar-thumb:hover{background:rgba(110,120,132,.7)}
 .tsl-asst :is(.tsl-asst__scroll,.tsl-asst__tblWrap,.tsl-asst__code,.tsl-asst__threadMenu,.tsl-outputs__list,.tsl-outputs__preview,.tsl-reservation__body)::-webkit-scrollbar-button{display:none!important;width:0!important;height:0!important}
 .tsl-asst :is(.tsl-asst__scroll,.tsl-asst__tblWrap,.tsl-asst__code,.tsl-asst__threadMenu,.tsl-outputs__list,.tsl-outputs__preview,.tsl-reservation__body)::-webkit-scrollbar-corner{background:transparent}
}

/* A self-contained Outputs card replaces the canvas column dividers. */
.tsl-asst--page .tsl-asst__pageHead{border-bottom:0}
.tsl-asst>.tsl-outputs{margin:8px;border:1px solid var(--asst-line);border-radius:14px;background:var(--asst-sunken);box-shadow:0 3px 14px rgba(16,46,80,.04)}
.tsl-asst--page.has-outputs>.tsl-reservation{border-left:0}
@media(min-width:1001px){
 .tsl-asst.tsl-asst--page.has-outputs>.tsl-outputs{grid-row:1 / 4}
 .tsl-asst.tsl-asst--page.has-outputs:not(.has-synxis)>.tsl-asst__pageHead{grid-column:1;flex-wrap:wrap;padding-inline:12px;gap:6px}
 .tsl-asst.tsl-asst--page.has-outputs:not(.has-synxis)>.tsl-asst__pageHead .tsl-asst__pageActions{gap:5px}
 .tsl-asst.tsl-asst--page.has-outputs:not(.has-synxis)>.tsl-asst__pageHead .tsl-asst__pageNew{padding-inline:8px;font-size:12px}
 .tsl-asst.tsl-asst--page.has-outputs:not(.has-synxis)>.tsl-reservation{grid-row:1 / 4}
}
@media(max-width:1000px){.tsl-asst--page.has-outputs>.tsl-outputs{border:1px solid var(--asst-line)}}

/* Artifact-library styling: compact progress, visual tiles and quiet file rows. */
.tsl-asst>.tsl-outputs{background:var(--asst-surface);border-radius:16px}
.tsl-asst>.tsl-outputs>.tsl-outputs__head{position:relative;background:transparent;border-bottom:0;padding-inline:16px}
.tsl-outputs__list{padding:8px 10px 14px;flex:1;min-height:0}.tsl-outputs__tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 6px;margin-bottom:12px}.tsl-outputs__tiles:empty,.tsl-outputs__files:empty{display:none}
.tsl-outputs__item.is-tile{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:7px;margin:0;padding:5px;border-radius:9px;min-width:0}
.tsl-outputs__thumbnail{height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;border:1px solid var(--asst-line);border-radius:7px;background:linear-gradient(150deg,var(--asst-sunken),var(--asst-surface));overflow:hidden;color:var(--asst-ink-2)}
.tsl-outputs__thumbnail>svg{width:40px;height:40px;margin:0;opacity:.7}.tsl-outputs__thumbnail.has-chart>svg{width:100%;height:100%;padding:4px;box-sizing:border-box;opacity:1}
.tsl-outputs__thumbnail-line{height:3px;width:55%;background:var(--asst-line);border-radius:2px}.tsl-outputs__thumbnail-line.is-short{width:35%}
.tsl-outputs__caption{display:block;padding:0 1px;min-width:0}.tsl-outputs__item.is-tile strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.4}.tsl-outputs__item.is-tile small{margin-top:2px;font-size:10px;line-height:1.5}
.tsl-outputs__item.is-file{align-items:center;gap:8px;padding:8px;margin:0 0 2px;border-radius:8px}.tsl-outputs__item.is-file>span:not(.tsl-outputs__spinner){flex:1;min-width:0}.tsl-outputs__item.is-file strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:400}.tsl-outputs__item.is-file>svg{margin:0}.tsl-outputs__file-kind{flex:0 0 auto;font-size:10px;color:var(--asst-ink-3)}
.tsl-outputs__item.is-tile.is-loading>.tsl-outputs__spinner{position:absolute;top:34px;left:calc(50% - 8px);margin:0}.tsl-outputs__item.is-tile.is-loading .tsl-outputs__thumbnail{opacity:.35}


.tsl-outputs__item.is-file>.tsl-outputs__file-kind{margin:0;text-transform:none}
@media(max-width:1000px){
 .tsl-asst.tsl-asst--page.has-outputs{grid-template-rows:auto minmax(100px,1fr) auto minmax(280px,.7fr)}
 .tsl-asst.tsl-asst--page.has-outputs:is(.has-reservation,.has-output-view){grid-template-rows:auto minmax(100px,.6fr) auto minmax(280px,.7fr) minmax(160px,1fr)}
 .tsl-asst--page.has-outputs>.tsl-outputs{max-height:none}
}

/* One newest-first stream: a form row never moves below an older chart tile. */
.tsl-outputs__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:6px}
.tsl-outputs__list>.is-file,.tsl-outputs__list>[data-pending-output]{grid-column:1 / -1}
.tsl-outputs__item:hover,.tsl-outputs__item[aria-current=true],.tsl-outputs__item.is-loading{border-color:transparent}

/* Full-width previews and one quiet outer frame keep titles easy to scan. */
.tsl-asst.tsl-asst--page>.tsl-outputs{box-shadow:none}
.tsl-asst.tsl-asst--page>.tsl-outputs>.tsl-outputs__head{border-bottom:1px solid var(--asst-line)}
.tsl-outputs__list{grid-template-columns:minmax(0,1fr);gap:8px}
.tsl-outputs__item.is-tile{padding:8px;gap:8px}
.tsl-outputs__thumbnail{box-sizing:border-box;height:100px;flex:0 0 100px}
.tsl-outputs__item.is-tile strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden;text-overflow:clip;overflow-wrap:anywhere;font-size:13px;line-height:18px;min-height:36px;max-height:36px}
.tsl-outputs__item.is-tile.is-loading>.tsl-outputs__spinner{top:50px}

.tsl-asst__agentMode{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:18px;background:var(--asst-sunken);color:var(--asst-ink-2);font-size:11px;line-height:18px;white-space:nowrap}
.tsl-asst__agentMode svg{width:14px;height:14px;flex-shrink:0}
.tsl-asst__recordBrief{margin-top:14px;padding-top:14px;border-top:1px solid var(--asst-line);overflow-wrap:anywhere}
.tsl-asst__recordBrief h4{margin:0 0 9px;font-size:12px;font-weight:600;color:var(--asst-ink)}
.tsl-asst__recordBrief p{margin:0 0 10px;font-size:13px;line-height:1.65;color:var(--asst-ink)}
.tsl-asst__recordBrief p:last-child{margin-bottom:0}
.tsl-asst__briefLinks{display:flex;flex-wrap:wrap;gap:5px 14px;margin-top:10px;font-size:12px}
.tsl-asst__briefLinks a{color:var(--asst-brand-strong);text-decoration:underline;text-underline-offset:3px}
.tsl-outputs__entry{min-width:0}.tsl-outputs__entry>.tsl-outputs__item{margin:0;width:100%}
.tsl-outputs__actions{display:flex;justify-content:flex-end;gap:4px;padding:0 7px 5px;opacity:0;transition:opacity .15s ease}
.tsl-outputs__entry:hover .tsl-outputs__actions,.tsl-outputs__entry:focus-within .tsl-outputs__actions{opacity:1}
.tsl-outputs__actions button{display:grid;place-items:center;width:25px;height:25px;padding:4px;border:0;border-radius:6px;background:transparent;color:var(--asst-ink-2);cursor:pointer}.tsl-outputs__actions button:hover{background:var(--asst-sunken)}.tsl-outputs__actions button:disabled{opacity:.35;cursor:default}.tsl-outputs__actions svg{width:15px;height:15px}
.tsl-outputs__rename{display:flex;flex-wrap:wrap;gap:5px;padding:8px}.tsl-outputs__rename input{box-sizing:border-box;width:100%;min-width:0;padding:7px;border:1px solid var(--asst-line-strong);border-radius:6px;font:inherit}.tsl-outputs__rename button{padding:5px 8px;background:var(--asst-surface);border:1px solid var(--asst-line);border-radius:5px;color:inherit;font:inherit;cursor:pointer}
@media(hover:none){.tsl-outputs__actions{opacity:1}}
@media(prefers-reduced-motion:reduce){.tsl-outputs__actions{transition:none}}

/* Small interaction cues; restored messages and saved outputs remain still. */
.tsl-asst__agentCurrent{position:relative}
.tsl-asst__agentCurrent>.tsl-asst__statusPrevious{position:absolute;left:27px;right:0;top:8px;pointer-events:none}
.tsl-outputs__item[aria-current=true]{background:color-mix(in srgb,var(--asst-brand) 8%,var(--asst-surface))}
.tsl-reservation__formActions button.is-saved{color:var(--asst-brand-strong);background:var(--asst-brand-tint)}
@media(prefers-reduced-motion:no-preference){
 .tsl-asst__scroll>.is-new-turn{animation:tslOutputContentReveal .18s ease-out}
 .tsl-asst__send{transition:transform .15s ease-out,filter .15s ease-out}
 .tsl-asst__send:not(:disabled):active{transform:scale(.93)}
 .tsl-outputs__item{transition:background-color .18s ease-out,color .18s ease-out}
 .tsl-outputs__thumbnail{transition:opacity .18s ease-out}
 .tsl-reservation__formActions button{transition:background-color .18s,color .18s}
}

.tsl-asst__projectFileActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}
.tsl-asst__projectFileActions>a,.tsl-asst__projectFileActions>button{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid var(--asst-line);border-radius:7px;background:transparent;color:var(--asst-ink-2);font:inherit;font-size:12px;text-decoration:none;cursor:pointer}
.tsl-asst__projectFileActions :is(svg,i){width:14px;height:14px}
.tsl-asst__projectFileActions>:hover{background:var(--asst-hover);color:var(--asst-ink)}
.tsl-asst__projectFileActions>:focus-visible{outline:2px solid var(--asst-brand);outline-offset:2px}

.tsl-outputs__filters{display:flex;gap:6px;padding:10px 10px 2px;flex-wrap:wrap}
.tsl-outputs__filters :is(input,select){box-sizing:border-box;min-width:0;padding:7px 8px;border:1px solid var(--asst-line);border-radius:7px;background:var(--asst-surface);color:var(--asst-ink);font:inherit;font-size:12px}
.tsl-outputs__filters input{flex:1 1 130px;width:100%}
.tsl-outputs__filters select{flex:0 1 125px;max-width:100%}
.tsl-outputs__filters :focus-visible{outline:2px solid var(--asst-brand);outline-offset:2px}
.tsl-outputs__entry[hidden]{display:none!important}
.tsl-asst__runRecovery{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.tsl-asst__runRecovery button{padding:7px 11px;border:1px solid var(--asst-line);border-radius:8px;background:var(--asst-surface);color:var(--asst-ink);font:inherit;font-size:12px;cursor:pointer}
.tsl-asst__runRecovery button:focus-visible{outline:2px solid var(--asst-brand);outline-offset:2px}

.tsl-research{padding:14px;font-size:13px;line-height:1.6;color:var(--asst-ink)}
.tsl-research :is(input,textarea,select){box-sizing:border-box;width:100%;min-width:0;padding:8px 10px;border:1px solid var(--asst-line);border-radius:8px;background:var(--asst-surface);color:inherit;font:inherit}
.tsl-research textarea{resize:vertical;min-height:120px}.tsl-research label{display:grid;gap:5px;margin:12px 0}
.tsl-research section{margin:16px 0}.tsl-research button{padding:7px 10px;border:1px solid var(--asst-line);border-radius:8px;background:var(--asst-surface);color:inherit;font:inherit;cursor:pointer}
.tsl-research button:disabled{opacity:.5;cursor:wait}.tsl-research__actions{display:flex;flex-wrap:wrap;gap:8px}
.tsl-research__stamp,.tsl-research__status{font-size:12px;color:var(--asst-ink-2)}.tsl-research__status{position:sticky;top:0;background:var(--asst-surface);padding:8px 0}.tsl-research__status:empty{display:none}
.tsl-research details{margin-top:18px;padding-top:12px;border-top:1px solid var(--asst-line)}.tsl-research summary{font-weight:600;cursor:pointer}
.tsl-research__reports button{margin:5px 8px 5px 0}.tsl-research__sources p{overflow-wrap:anywhere}.tsl-research :focus-visible{outline:2px solid var(--asst-brand);outline-offset:2px}

.tsl-asst__visual{min-width:0;max-width:100%;margin:12px 0}
.tsl-asst__visualTools{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;margin:8px 0 0;font-size:11px;color:var(--asst-ink-2)}
.tsl-asst__visualTools button{border:0;background:transparent;padding:4px 0;color:inherit;font:inherit;cursor:pointer}
.tsl-asst__visualTools button:hover{color:var(--asst-ink);text-decoration:underline;text-underline-offset:3px}.tsl-asst__visualTools button:disabled{opacity:.65;cursor:default;text-decoration:none}
.tsl-asst__visualTools button:focus-visible{outline:2px solid var(--asst-brand);outline-offset:3px;border-radius:3px}
