.case-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-selector-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.case-selector-section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

.case-selector-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.case-selector-chip {
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  padding: 0 10px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
}

.case-intake-panel-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.case-intake-panel-back-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-weight: 700;
}


.case-selector-chip--active {
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
  opacity: 1;
}

.case-selector-suggested-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-selector-suggested-title {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}

.case-selector-suggested-btn {
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.12s ease;
}

.case-selector-suggested-btn:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.case-selector-suggested-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.case-selector-suggested-primary {
  font-size: 13px;
  font-weight: 800;
  color: rgba(17, 24, 39, 0.95);
}

.case-selector-suggested-secondary {
  font-size: 12px;
  opacity: 0.75;
}

.case-selector-suggested-reason {
  font-size: 12px;
  opacity: 0.65;
  margin-top: 2px;
}

.case-selector-confidence-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 8px;
}

.case-selector-confidence-pill--high {
  background: rgba(16, 185, 129, 0.18);
  color: rgb(6, 95, 70);
}

.case-selector-confidence-pill--mid {
  background: rgba(34, 197, 94, 0.14);
  color: rgb(20, 83, 45);
}

.case-selector-confidence-pill--low {
  background: rgba(245, 158, 11, 0.16);
  color: rgb(146, 64, 14);
}

.case-selector-confidence-pill--none {
  background: rgba(107, 114, 128, 0.14);
  color: rgb(55, 65, 81);
}

.case-selector-combo-wrap {
  position: relative;
}

.case-selector-input {
  height: 40px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  box-sizing: border-box;
  transition: box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.case-selector-input:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.case-selector-input::placeholder {
  color: rgba(17, 24, 39, 0.45);
}

.case-selector-menu {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: white;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

.case-selector-menu-inner {
  max-height: 260px;
  overflow-y: auto;
}

.case-selector-client-row {
  padding: 10px 10px 8px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}

.case-selector-item-row {
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.case-selector-item-row--active {
  background: rgba(37, 99, 235, 0.10);
}

.case-selector-item-primary {
  font-weight: 800;
  color: rgba(17, 24, 39, 0.95);
}

.case-selector-item-secondary {
  font-size: 12px;
  opacity: 0.72;
}

.case-selector-empty {
  padding: 12px;
  font-size: 13px;
  opacity: 0.7;
}

.case-selector-title {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.9;
}

.case-selector-selected-hint {
  font-size: 12px;
  opacity: 0.7;
}

.case-selector-loading {
  font-size: 13px;
  opacity: 0.7;
  padding: 6px 0;
}

.case-selector-suggested-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-selector-suggested-btn--active {
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.06);
}

.case-selector-other-toggle {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
}

.case-selector-other-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.case-selector-other-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
}

.case-selector-other-item:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.case-selector-other-item--active {
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.06);
}

.case-selector-other-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-selector-other-primary {
  font-size: 13px;
  font-weight: 800;
  color: rgba(17, 24, 39, 0.95);
  line-height: 1.4;
  /* Wrap long case names to multiple lines instead of truncating (SIN-19440) */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.case-selector-other-secondary {
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.case-selector-other-tertiary {
  font-size: 11px;
  opacity: 0.60;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.case-selector-other-item--subcase {
  border-left: 3px solid rgba(99, 102, 241, 0.40);
}

.case-selector-other-spacer {
  width: 1px;
  height: 1px;
}

.case-selector-suggested-btn--secondary {
  margin-top: 8px;
  opacity: 0.95;
}

.case-selector-input--search {
  height: 40px;
  width: 100%;
  border-radius: 12px;
  padding-left: 12px;

  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 24, 39, 0.10);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);

  transition: box-shadow 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.case-selector-input--search:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background-color: rgba(255, 255, 255, 0.98);
}

/* Selected Case Section - Minimal and Clean */
.case-selector-selected-section {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.case-selector-selected-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(16, 185, 129, 0.85);
  margin-bottom: 6px;
}

.case-selector-selected-card {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-left: 3px solid rgba(37, 99, 235, 0.85); /* Accent border — overridden below */
  padding: 10px 12px;
  background: rgba(37, 99, 235, 0.04);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.15s ease;
}

.case-selector-selected-card:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* New green card — view-scoped replacement for the blue .case-selector-selected-card.
   Applied in JSX alongside the layout-only base class to override all blue colors. */
.case-selector-selected-card-green {
  border-color: rgba(16, 185, 129, 0.35);
  border-left-color: rgba(16, 185, 129, 0.80);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
}

.case-selector-selected-card-green:hover {
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}

.case-selector-selected-card-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.case-selector-checkmark-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: rgb(6, 95, 70);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px; /* Align with text */
}

.case-selector-selected-info {
  flex: 1;
  min-width: 0;
}

.case-selector-selected-primary {
  font-size: 13px;
  font-weight: 700;
  color: rgba(17, 24, 39, 0.95);
  margin-bottom: 3px;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Allow wrapping to multiple lines */
}

.case-selector-selected-secondary {
  font-size: 11px;
  font-weight: 500;
  color: rgba(17, 24, 39, 0.60);
  line-height: 1.3;
}

.case-selector-selected-badge-large {
  /* Removed - no longer using large badge */
  display: none;
}

/* Checkmark in suggestion buttons and search items - Subtle */
.case-selector-checkmark {
  color: rgb(6, 95, 70);
  font-weight: 700;
  font-size: 13px;
  margin-right: 4px;
}

/* Selected badge in suggestions and search items - Minimal */
.case-selector-selected-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.15);
  color: rgb(6, 95, 70);
  flex-shrink: 0;
  margin-top: 4px;
}

/* Clean selected state for suggestion buttons (blue — explicit manual pick) */
.case-selector-suggested-btn--selected {
  border: 1px solid rgba(37, 99, 235, 0.30) !important;
  border-left: 3px solid rgba(37, 99, 235, 0.75) !important;
  background: rgba(37, 99, 235, 0.05) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Recommended state (green — system suggestion, not yet manually selected) */
.case-selector-suggested-btn--recommended {
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  border-left: 3px solid rgba(16, 185, 129, 0.80) !important;
  background: rgba(16, 185, 129, 0.05) !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
}

/* Clean selected state for search items */
.case-selector-other-item--selected {
  border: 1px solid rgba(37, 99, 235, 0.30) !important;
  border-left: 3px solid rgba(37, 99, 235, 0.75) !important;
  background: rgba(37, 99, 235, 0.05) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ── Unified row-selection highlight (green only, replaces all blue selection styles) ── */

/* Applied to exactly ONE row at a time — the active case (manually selected,
   or the top suggestion when nothing has been manually chosen yet). */
.case-selector-row-selected {
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  border-left: 3px solid rgba(16, 185, 129, 0.80) !important;
  background: rgba(16, 185, 129, 0.05) !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
}

/* .case-selector-row-suggested — no CSS rule needed: normal button background applies.
   The class exists only for semantic clarity in the JSX. Badge remains visible via JSX. */

/* Favourites list */
.case-selector-favourites-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

/* Infinite-scroll sentinel — zero-footprint marker observed to trigger the
   next page (SIN-19215). */
.case-selector-scroll-sentinel {
  width: 100%;
  height: 1px;
}

/* Manual pagination fallback for hosts without IntersectionObserver (IE11). */
.case-selector-load-more-btn {
  width: 100%;
  padding: 8px 0;
  border: none;
  background: none;
  font-size: 13px;
  font-family: inherit;
  color: inherit;
  opacity: 0.8;
  cursor: pointer;
  text-decoration: underline;
}

/* MainWorkspace - all classes prefixed with mw to avoid global collisions */

@keyframes mwBounce {
  0% {
    transform: translateY(0px);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-3px);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0px);
    opacity: 0.35;
  }
}

.mwPage {
  height: calc(100vh - 74px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  box-sizing: border-box;
  overflow: hidden;
}

.mwHero {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 8px;
  text-align: left;
}

.mwGreeting {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(17, 24, 39, 0.94);
}

.mwQuestion {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.5);
}

/* ---- Filed summary card (compact IW3-style) ---- */
.mwFiledSummaryCard {
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* SIN-19237 scroll fix: cap the card height so a long document list can't
     push the case header off the top or shove the chat card / actions bar out
     of reach. The header + meta below are pinned (flex-shrink: 0) and only
     .mwFiledDocsMini scrolls. Default flex-shrink (1) lets the card yield space
     to the chat card on short viewports. */
  max-height: 58vh;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  padding: 6px 8px;
  margin-bottom: 6px;
  overflow: hidden;
}

.mwFiledSummaryHeader {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 8px;
  row-gap: 2px;
  min-height: 0;
}

.mwFiledSummaryHeaderLeft {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mwFiledSummaryLabel,
.mwFiledCaseVisibleId {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(17, 24, 39, 0.55);
  line-height: 1.2;
  flex-shrink: 0;
}

.mwFiledCaseVisibleId {
  letter-spacing: 0.02em;
}

.mwFiledSummaryTitleWrap {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-height: 1.18;
}

.mwFiledCaseLink {
  font-size: 11.5px;
  font-weight: 800;
  color: rgba(0, 32, 74, 0.95);
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  display: block;
  width: 100%;
  min-width: 0;
}

.mwFiledCaseName {
  font-size: 11.5px;
  font-weight: 800;
  color: rgba(17, 24, 39, 0.92);
  display: block;
  min-width: 0;
}

.mwFiledPill {
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
  color: rgba(6, 95, 70, 0.95);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  align-self: start;
  flex-shrink: 0;
}

.mwFiledSummaryMeta {
  flex-shrink: 0;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.25;
}

.mwFiledSummaryMetaItem {
  white-space: nowrap;
}

.mwFiledSummaryMetaItem + .mwFiledSummaryMetaItem::before {
  content: "· ";
  margin-right: 2px;
}

.mwFiledDocsMini {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  /* The only scrollable region of the card — fills the space left by the
     pinned header/meta and scrolls independently (SIN-19237). */
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* HARDENED: ensure actions never disappear */
.mwFiledDocMiniRow {
  display: flex;
  align-items: flex-start; /* multi-line names: keep action icons pinned to the top line */
  gap: 8px;
  padding: 10px 2px; /* airier vertical rhythm so rows aren't cramped */
}

/* Subtle divider between consecutive document rows (not after the last). */
.mwFiledDocMiniRow + .mwFiledDocMiniRow {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mwFiledDocMiniName {
  min-width: 0;
  flex: 1 1 auto; /* force shrink instead of pushing actions away */
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(17, 24, 39, 0.9);
  white-space: normal; /* long filenames wrap to a new line — never truncated */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mwFiledDocMiniActions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.mwMiniIconBtn {
  width: 26px;
  height: 26px;
  flex: 0 0 26px; /* lock sizing */
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  color: rgba(17, 24, 39, 0.9);
}

.mwMiniIconBtnPrimary {
  width: 26px;
  height: 26px;
  flex: 0 0 26px; /* lock sizing */
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #00204a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  box-shadow: 0 4px 12px rgba(0, 32, 74, 0.15);
  color: #ffffff;
}

.mwIconSvg {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.mwIconSvgPrimary {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
  color: #ffffff;
}

/* Document row wrapper + hover card */
.mwFiledDocMiniRowWrapper {
  position: relative;
}

.mwDocRowTrigger {
  cursor: help;
}

.mwDocRowTrigger:focus {
  outline: 1px solid rgba(0, 32, 74, 0.25);
  outline-offset: 1px;
}

.mwDocRowTrigger .mwFiledDocMiniName {
  min-width: 0;
}

/* ---- Chat card ---- */
.mwChatCard {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.mwChatBody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mwChatBubble {
  align-self: flex-start;
  max-width: 92%;
  border-radius: 12px;
  padding: 8px 10px;
  background-color: rgba(0, 32, 74, 0.06);
  border: 1px solid rgba(0, 32, 74, 0.1);
  color: rgba(17, 24, 39, 0.92);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  margin-left: 2px;
  margin-right: 2px;
}

.mwChatBubbleSuccess {
  align-self: flex-start;
  max-width: 92%;
  border-radius: 12px;
  padding: 8px 10px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: rgba(6, 95, 70, 0.95);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  margin-left: 2px;
  margin-right: 2px;
}

.mwChatBubbleWarning {
  align-self: flex-start;
  max-width: 92%;
  border-radius: 12px;
  padding: 8px 10px;
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: rgba(78, 42, 0, 0.95);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  margin-left: 2px;
  margin-right: 2px;
}

.mwPromptNote {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}

.mwChatMuted {
  align-self: flex-start;
  max-width: 92%;
  border-radius: 12px;
  padding: 8px 10px;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: rgba(17, 24, 39, 0.6);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  margin-left: 2px;
  margin-right: 2px;
}

.mwActionsBar {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background-color: rgba(255, 255, 255, 0.62);
}

.mwGhostBtn {
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 11.5px;
  color: rgba(17, 24, 39, 0.82);
}

.mwGhostBtn2 {
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #00204a;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 11.5px;
  color: rgba(255, 255, 255);
}

.mwPrimaryBtn {
  height: 34px;
  border-radius: 999px;
  border: none;
  background-color: #00204a;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
  font-size: 11.5px;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  line-height: 34px;
}

.mwPrimaryBtnDisabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mwThinking {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.mwDot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background-color: rgba(17, 24, 39, 0.35);
}

.mwAttachmentsStep {
  margin-top: 10px;
}

.mwAttachmentsStepHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mwAttachmentsStepTitle {
  font-size: 11.5px;
  font-weight: 800;
}

.mwAttachmentsStepToggle {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(0, 32, 74, 0.85);
  text-decoration: underline;
}

.mwAttachmentsStepList {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mwAttachmentsStepRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mwAttachmentsStepLabel {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.mwAttachmentsStepName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mwAttachmentsStepEdit {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.mwAttachmentsStepRenameInput {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 11.5px;
  border: 1px solid rgba(0, 32, 74, 0.3);
  border-radius: 4px;
  padding: 2px 4px;
}

.mwAttachmentsStepExtension {
  white-space: nowrap;
  opacity: 0.7;
}

.mwAttachmentsStepRenameBtn {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.mwAttachmentsStepRenameBtn:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.mwDestinationStep {
  margin-top: 10px;
}

.mwDestinationStepHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mwDestinationStepExplorer {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 2px;
  padding-top: 16px;
}

.mwDestinationStepExplorerItem {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  background: none;
  color: inherit;
  border: none;
  padding: 0px;
  outline: none;
  border-radius: 4px;
}

.mwDestinationStepExplorerItem:hover {
  background: rgba(0, 32, 74, 0.05);
}

.mwDestinationStepExplorerItem:focus {
  background: rgba(0, 32, 74, 0.1);
  outline: 1px solid rgba(0, 32, 74, 0.25);
  outline-offset: -1px;
}

.mwDestinationStepExplorerItem > button {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.mwDestinationStepExplorerItemSelected {
  background: rgba(37, 99, 235, 0.25);
}

.mwDestinationStepExplorerItemSelected:hover {
  background: rgba(37, 100, 235, 0.35);
}

.mwDestinationStepModeChips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mwDestinationStepModeChip {
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0 10px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}

.mwDestinationStepModeChipActive {
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
  opacity: 1;
}

.mwDestinationStepExplorerLoading {
  opacity: 0.5;
  pointer-events: none;
}

.mwDestinationStepError {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background-color: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: rgba(120, 20, 20, 0.95);
  font-size: 11.5px;
  font-weight: 600;
}

.mwDestinationStepRetryButton {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(220, 38, 38, 0.4);
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  cursor: pointer;
}

.mwDestinationStepRetryButton:hover {
  background: rgba(255, 255, 255, 0.9);
}

.mwDestinationStepFolderName {
  flex-grow: 1;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mwDestinationStepItemIcon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mwDestinationStepTitle {
  font-size: 11.5px;
  font-weight: 800;
}

.mwRenameOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.mwRenameDialog {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  padding: 12px;
}

.mwRenameTitle {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.mwRenameInput {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: 0 10px;
  font-size: 12px;
  box-sizing: border-box;
  outline: none;
}

.mwRenameActions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.mwDotBounce1 {
  animation: mwBounce 900ms infinite;
}
.mwDotBounce2 {
  animation: mwBounce 900ms infinite 120ms;
}
.mwDotBounce3 {
  animation: mwBounce 900ms infinite 240ms;
}

/* Compact height: tighten further on short viewports */
@media (max-height: 700px) {
  .mwPage {
    padding: 6px 10px 8px;
    height: calc(100vh - 54px);
  }

  .mwHero {
    padding: 2px 0 4px;
    gap: 0;
  }

  .mwGreeting {
    font-size: 15px;
    line-height: 1.1;
  }

  .mwQuestion {
    font-size: 10.5px;
  }

  .mwFiledSummaryCard {
    padding: 5px 6px;
    margin-bottom: 4px;
    border-radius: 8px;
  }

  .mwFiledSummaryMeta {
    margin-top: 3px;
    font-size: 10px;
  }

  .mwFiledDocsMini {
    margin-top: 6px;
  }

  .mwFiledDocMiniRow {
    padding: 7px 2px;
  }

  .mwChatBody {
    padding: 8px;
    gap: 6px;
  }

  .mwChatBubble,
  .mwChatMuted {
    padding: 6px 8px;
    font-size: 11.5px;
  }

  .mwActionsBar {
    padding: 6px 8px 8px;
  }

  .mwGhostBtn,
  .mwPrimaryBtn {
    height: 30px;
    font-size: 11px;
    line-height: 30px;
  }
}
.mwFiledDocMiniText {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mwFiledDocMiniMeta {
  font-size: 10px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.5);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mwDetectedCard {
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.07);
  padding: 10px;
  margin-bottom: 8px;
}
.mwDetectedTitle {
  font-size: 11.5px;
  font-weight: 800;
  color: rgba(6, 95, 70, 0.9);
  margin-bottom: 8px;
}

.mwDetectedCaseRow {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 8px 10px;
}

.mwDetectedCaseName {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 900;
  color: rgba(17, 24, 39, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mwDetectedUseBtn {
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 11.5px;
}

.mwDetectedActions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.mwDetectedToggle {
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(255, 255, 255, 0.65);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 11.5px;
  color: rgba(6, 95, 70, 0.95);
  text-align: left;
}

.mwDetectedToggleOn {
  background: rgba(16, 185, 129, 0.12);
}

.mwDetectedCancel {
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.25);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.95);
}

.mwQuickReplies {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mwQuickReplyBtn {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: white;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mwQuickReplyBtn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ---- Pending filing confirmation banner ---- */
.mwPendingFilingBanner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 2px;
}

.mwPendingFilingText {
  font-size: 12px;
  font-weight: 650;
  color: rgba(78, 42, 0, 0.95);
  line-height: 1.3;
}

.mwPendingFilingHelper {
  font-size: 11px;
  font-weight: 500;
  color: rgba(78, 42, 0, 0.65);
  margin-top: 3px;
}

.mwPendingFilingActions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.mwPendingFilingBtn {
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.15s ease;
}

.mwPendingFilingBtn--primary {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: rgba(78, 42, 0, 0.95);
}

.mwPendingFilingBtn--primary:hover {
  background: rgba(245, 158, 11, 0.25);
}

.mwPendingFilingBtn--secondary {
  background: white;
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(17, 24, 39, 0.65);
}

.mwPendingFilingBtn--secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

