/* Mission workspace: a quiet, form-first surface. Legacy DOM hooks are retained. */
#view-timed-work {
  background: var(--vx-design-bg,#0b0b0c);
  color: #f4f4f4;
  font: 400 15px/1.45 Inter, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -.015em;
  padding: 0;
}
#view-timed-work .tw-wrap {
  box-sizing: border-box;
  width: min(100%, 760px);
  min-width: 0;
  margin: 0 auto;
  padding: 28px 0 max(28px, env(safe-area-inset-bottom));
}
#view-timed-work *,
#view-timed-work *::before,
#view-timed-work *::after {
  box-sizing: border-box;
}
#view-timed-work [hidden] { display: none !important; }
#view-timed-work svg { display: block; flex-shrink: 0; }
#view-timed-work :is(button, input, select, textarea, summary) { font-family: inherit; }
#view-timed-work :is(button, input, select, textarea, summary):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

#view-timed-work .tw-hero-image {
  width: 100%;
  display: block;
  height: auto;
  aspect-ratio: 941/334;
  object-fit: contain;
  object-position: center;
  background: #101011;
  filter: grayscale(1);
  user-select: none;
  -webkit-user-drag: none;
}

#view-timed-work .tw-hero-matte { display: none; }

#view-timed-work .tw-hero-matte::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(0deg,#080809 1%,#080809aa 33%,transparent);
  pointer-events: none;
}

#view-timed-work .tw-mission-heading {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  padding: 0 20px;
  background: none;
}

#view-timed-work .tw-mission-heading h1 {
  margin: 0;
  color: white;
  font-size: clamp(28px,5.9vw,35px);
  line-height: 1.1;
  font-weight: 720;
  letter-spacing: -.054em;
  text-shadow: none;
}

#view-timed-work .tw-target-rule { display: none; }

#view-timed-work .tw-target-rule:before {
  content: '';
  width: 21px;
  height: 21px;
  display: block;
  flex: none;
  border: 1.3px solid #f6f6f6;
  border-radius: 50%;
  background: radial-gradient(circle,#efefef 0 1px,transparent 2px);
  box-shadow: 0 0 0 2px #080809 inset;
}

#view-timed-work .tw-target-rule .tw-cross {
  position: relative;
  display: block;
  flex: none;
  width: 2px;
  height: 21px;
  background: #a1a1a1;
  margin-left: -19px;
  margin-right: 8px;
  transform: scaleX(.5);
}

#view-timed-work .tw-target-rule .tw-cross:before {
  content: '';
  height: 2px;
  width: 21px;
  background: #d3d3d3;
  position: absolute;
  left: -10px;
  top: 9px;
}

#view-timed-work .tw-target-rule .tw-dash {
  letter-spacing: 5px;
  font-size: 23px;
  font-weight: 250;
  line-height: 1;
  transform: skew(-19deg);
  color: #dfdfdf;
}

#view-timed-work .tw-target-rule .tw-hairline {
  height: 1px;
  background: linear-gradient(90deg,#e7e7e7,#b7b7b7 93%,transparent);
  flex: 1;
  align-self: center;
}

#view-timed-work .tw-target-rule .tw-end {
  font-size: 15px;
  letter-spacing: 1px;
  color: #dadada;
}

#view-timed-work .tw-main-space {
  padding: 0 16px;
}

#view-timed-work .tw-tabbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--vx-design-line,#353539);
  border-radius: 0;
  margin: 0 0 16px;
}

#view-timed-work .tw-tactical-tab {
  min-width: 0;
  height: 44px;
  border: 1px solid transparent;
  background: transparent;
  color: #d5d5d5;
  clip-path: none;
  border-radius: var(--vx-design-radius,14px);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  transition: filter .18s;
}

#view-timed-work .tw-tactical-tab::before { display: none; }

#view-timed-work .tw-tactical-tab.tw-selected {
  background: transparent;
  border-color: transparent;
  border-bottom-color: var(--vx-design-text,#f2f2f3);
  border-radius: 0;
  color: var(--vx-design-text,#f2f2f3);
  box-shadow: none;
}

#view-timed-work .tw-tactical-tab:hover {
  filter: brightness(1.12);
}

#view-timed-work .tw-tactical-tab.tw-selected::before { display: none; }

#view-timed-work .tw-tactical-tab .tw-ico {
  height: 21px;
  width: 21px;
}

#view-timed-work .tw-tactical-tab span {
  font-size: 14px;
  font-weight: 745;
  letter-spacing: -.027em;
}

#view-timed-work .tw-corners {
  clip-path: none;
  border-radius: var(--vx-design-radius,14px);
}

#view-timed-work .tw-panel {
  background: transparent;
  border: 0;
  position: relative;
  isolation: isolate;
  padding: 4px 0 12px;
  min-height: 0;
  box-shadow: none;
}

#view-timed-work .tw-panel::before { display: none; }

#view-timed-work .tw-panel::after { display: none; }

#view-timed-work .tw-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  position: relative;
  z-index: 1;
}

#view-timed-work .tw-doc-symbol {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #efefef;
}

#view-timed-work .tw-doc-symbol svg {
  width: 28px;
  height: 28px;
}

#view-timed-work .tw-panel-title h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -.04em;
  line-height: 1.2;
}

#view-timed-work .tw-panel-title .tw-grow {
  flex: 1;
}

#view-timed-work .tw-panel-title .tw-etched { display: none; }

#view-timed-work .tw-expand-button {
  border: 1px solid #626262;
  color: #e8e8e8;
  background: #222225;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: background .15s;
  z-index: 3;
  margin-right: 6px;
}

#view-timed-work .tw-expand-button:hover,
#view-timed-work .tw-expand-button[aria-expanded=true] {
  background: #454545;
}

#view-timed-work .tw-expand-button svg {
  width: 18px;
  height: 18px;
}

#view-timed-work .tw-field {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
}

#view-timed-work .tw-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 9px;
}

#view-timed-work .tw-field-label-icon {
  width: 19px;
  height: 19px;
  color: #e5e5e5;
}

#view-timed-work .tw-unit {
  color: #a0a0a0;
  font-weight: 460;
  margin-left: 4px;
  font-size: 12px;
}

#view-timed-work .tw-objective-box {
  background: var(--vx-design-bg,#0b0b0c);
  border: 1px solid var(--vx-design-line-strong,#57575d);
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: border-color .16s;
}

#view-timed-work .tw-objective-box:focus-within {
  border-color: #e4e4e4;
  box-shadow: 0 0 0 1px #d5d5d5a3;
}

#view-timed-work .tw-objective-box textarea {
  display: block;
  resize: none;
  outline: none!important;
  box-shadow: none!important;
  border: none!important;
  background: transparent;
  color: #f5f5f5;
  padding: 16px 16px 15px;
  width: 100%;
  min-height: 108px;
  height: 108px;
  max-height: none;
  font-size: 15px;
  line-height: 1.53;
  letter-spacing: -.01em;
  overflow: hidden;
  border-radius: 0;
}

#view-timed-work .tw-objective-box textarea::placeholder {
  color: #929292;
}

#view-timed-work .tw-objective-meta {
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 11px 7px;
  color: #9a9a9a;
  font: 11px ui-monospace,monospace;
  opacity: 0;
  transition: opacity .2s;
}

#view-timed-work .tw-objective-meta.tw-visible {
  opacity: 1;
}

#view-timed-work .tw-objective-corner { display: none; }

#view-timed-work .tw-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#view-timed-work .tw-text-control {
  display: block;
  min-width: 0;
  width: 100%;
  height: 48px;
  background: linear-gradient(140deg,#292929,#1a1a1c);
  color: #f4f4f4;
  border: 1px solid #737373;
  border-radius: 10px;
  padding: 0 14px;
  outline: 0;
  font-size: 16px;
  box-shadow: inset 0 1px 0 #ffffff0c;
}

#view-timed-work .tw-text-control:focus {
  border-color: #eaeaea;
  outline: 1px solid #eaeaea;
  outline-offset: 1px;
}

#view-timed-work .tw-advanced-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  position: relative;
  z-index: 2;
  background: none;
  border: 0;
  border-block: 1px solid #656565;
  width: 100%;
  min-height: 53px;
  padding: 10px 2px;
  text-align: left;
  color: #f4f4f4;
  margin: 2px 0 10px;
}

#view-timed-work .tw-advanced-toggle svg {
  width: 21px;
  height: 21px;
}

#view-timed-work .tw-advanced-toggle strong {
  font-weight: 715;
  font-size: 14px;
  letter-spacing: -.03em;
}

#view-timed-work .tw-advanced-toggle .tw-optional {
  color: #959595;
  font-size: 12px;
  font-weight: 400;
  margin-left: 1px;
}

#view-timed-work .tw-advanced-toggle .tw-spacer {
  flex: 1;
}

#view-timed-work .tw-advanced-toggle .tw-chevron {
  transition: transform .16s;
}

#view-timed-work .tw-options[open] .tw-advanced-toggle .tw-chevron {
  transform: rotate(180deg);
}

#view-timed-work .tw-advanced-content {
  padding: 7px 0 3px;
}

#view-timed-work .tw-launch {
  position: relative;
  isolation: isolate;
  z-index: 2;
  height: 48px;
  width: 100%;
  border: 1px solid #f3f3f3;
  background: var(--vx-design-action,#f2f2f3);
  color: #0a0a0a;
  clip-path: none;
  border-radius: var(--vx-design-radius,14px);
  box-shadow: inset 0 2px 0 #fff;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  padding: 0 9px;
  margin-top: 15px;
  transition: filter .15s;
}

#view-timed-work .tw-launch:hover {
  filter: brightness(1.08);
}

#view-timed-work .tw-launch:active {
  filter: brightness(.87);
}

#view-timed-work .tw-launch::before { display: none; }

#view-timed-work .tw-launch .tw-symbol {
  border-right: 0;
  height: 32px;
  display: grid;
  place-items: center;
}

#view-timed-work .tw-launch strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.025em;
}

#view-timed-work .tw-launch .tw-marks { display: none; }

#view-timed-work .tw-terrain { display: none; }

#view-timed-work .tw-activity-pane {
  padding: 18px 19px 22px;
}

#view-timed-work .tw-activity-pane h2 {
  font-size: 20px;
  margin: 0 0 12px;
}

#view-timed-work .tw-activity-goal {
  color: #d2d2d2;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.55;
  max-height: 180px;
  overflow: auto;
  border-top: 1px solid #4a4a4a;
  padding-top: 10px;
}

@media (min-width:810px) {
  #view-timed-work .tw-main-space {
    padding: 0 24px;
  }

  #view-timed-work .tw-mission-heading {
    padding-inline: 25px;
  }

  #view-timed-work .tw-panel {
    padding: 27px 29px 28px;
  }

  #view-timed-work .tw-objective-box textarea {
    font-size: 17px;
  }

  #view-timed-work .tw-tabbar {
    margin-bottom: 20px;
  }

  #view-timed-work .tw-field label {
    font-size: 15px;
  }

}
@media (max-width:375px) {
  #view-timed-work .tw-mission-heading {
    padding-inline: 14px;
  }

  #view-timed-work .tw-mission-heading h1 {
    font-size: clamp(24px,7.3vw,28px);
  }

  #view-timed-work .tw-main-space {
    padding-inline: 10px;
  }

  #view-timed-work .tw-tactical-tab {
    height: 50px;
    gap: 6px;
  }

  #view-timed-work .tw-tactical-tab span {
    font-size: 12px;
  }

  #view-timed-work .tw-tactical-tab .tw-ico {
    width: 17px;
    height: 17px;
  }

  #view-timed-work .tw-panel {
    padding: 18px 13px 20px;
  }

  #view-timed-work .tw-field label {
    font-size: 12.5px;
  }

  #view-timed-work .tw-panel-title h2 {
    font-size: 19px;
  }

  #view-timed-work .tw-text-control {
    height: 46px;
    padding-inline: 12px;
  }

  #view-timed-work .tw-two {
    gap: 9px;
  }

  #view-timed-work .tw-launch {
    grid-template-columns: 43px 1fr 33px;
  }

  #view-timed-work .tw-launch strong {
    font-size: 16px;
  }

  #view-timed-work .tw-objective-box textarea {
    font-size: 14px;
  }

}

#view-timed-work .tw-mission-heading h1,
#view-timed-work .tw-panel-title h2 { text-transform: none; }
#view-timed-work .tw-hero-matte { margin: 0; }
#view-timed-work .tw-options summary {
  list-style: none;
  cursor: pointer;
}
#view-timed-work .tw-options summary::-webkit-details-marker { display: none; }
#view-timed-work .tw-expand-button { width: 44px; height: 44px; margin: -4px 2px; }
#view-timed-work .tw-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
}
#view-timed-work .tw-choice input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: #eee;
}
#view-timed-work .tw-field,
#view-timed-work .tw-models { min-width: 0; }
#view-timed-work .tw-models { display: grid; gap: 8px; }
#view-timed-work .tw-models select,
#view-timed-work #tw-total {
  display: block;
  color-scheme: dark;
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid #737373;
  border-radius: 10px;
  padding: 0 10px;
  background: linear-gradient(140deg,#292929,#1a1a1c);
  color: #f4f4f4;
  font: inherit;
  font-size: 16px;
}
#view-timed-work select option { background: #202022; color: #eee; }
#view-timed-work select option:disabled { color: #a1a1a1; }
#view-timed-work .tw-note {
  color: #aaa;
  font-size: 12px;
  text-align: center;
  margin: 12px 0 0;
}
#view-timed-work #tw-notice:empty { display: none; }
#view-timed-work #tw-notice { color: #fff; padding: 9px 12px; border-left: 2px solid #ddd; }
#view-timed-work :is(#tw-result, #tw-objective, #tw-review-note) {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#view-timed-work .tw-activity-pane { overflow-wrap: anywhere; }
#view-timed-work .tw-activity-pane button,
#view-timed-work .tw-main-space > button {
  margin: 8px 6px 0 0;
  background: #29292b;
  color: #eee;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #777;
  border-radius: 10px;
  font: inherit;
}
#view-timed-work #tw-review-note { margin-top: 12px; }
#view-timed-work #tw-increase { margin-block: 10px; }
#view-timed-work #tw-empty { margin: 0; color: #ddd; }
#view-timed-work .tw-objective-meta[data-used] { opacity: 1; }
#view-timed-work #tw-goal { min-height: 0; }
#view-timed-work .tw-tactical-tab:focus-visible { outline-offset: -4px; }
#view-timed-work button:disabled { cursor: not-allowed; opacity: .55; }
/* The host applies high-specificity theme and spacing rules to every legacy view. */
#shell #view-timed-work.active-view { padding: 0 !important; }
#shell main:has(#view-timed-work.active-view) { padding: 0 !important; }
#shell main:has(#view-timed-work.active-view) + footer { display: none !important; }
#shell #view-timed-work #tw-goal {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #f5f5f5 !important;
}
#shell #view-timed-work :is(.tw-text-control, .tw-models select, #tw-total) {
  color: #f4f4f4 !important;
  background: var(--vx-design-bg,#0b0b0c) !important;
  border: 1px solid var(--vx-design-line-strong,#57575d) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 #ffffff0c !important;
}
#view-timed-work .tw-options:not([open]) summary { margin-bottom: 0; }
@media (min-width: 810px) {
  #view-timed-work .tw-wrap { border-inline: 0; }
}
@media (max-width: 375px) {
  #view-timed-work .tw-models select { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  #view-timed-work *, #view-timed-work *::before, #view-timed-work *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}

#vx-voice-live-entry[hidden],
.vx-live-voice:not([open]),
.vx-live-voice[hidden],
.vx-live-voice [hidden] {
  display: none !important;
}

.top-actions #vx-voice-live-entry {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  position: relative;
  font-size: 0;
}

.top-actions #vx-voice-live-entry > svg { display: none; }

.top-actions #vx-voice-live-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 21px;
  height: 21px;
  margin: auto;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3H5a2 2 0 0 0-2 2c0 8.8 7.2 16 16 16a2 2 0 0 0 2-2v-2l-5-3-2 2a12 12 0 0 1-6-6l2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.top-actions #vx-voice-live-entry[data-in-call="true"] { color: #a1e9bd; }

.top-actions #vx-voice-live-entry:hover,
.top-actions #vx-voice-live-entry:focus-visible {
  background: #ffffff12;
  border-color: #ffffff24;
}

#vx-voice-live-options {
  font-size: .78rem;
}

#vx-voice-live-options summary {
  padding: .55rem 0;
  cursor: pointer;
}

#vx-voice-live-options {
  margin-bottom: .75rem;
}

#vx-voice-live-options label:not([hidden]) {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .4rem 0;
  line-height: 1.45;
}

#vx-voice-live-options label input {
  flex: none;
  margin: .15em 0 0;
}

#vx-voice-live-limits {
  margin: .25rem 0 .5rem;
  color: var(--muted, #c0c4cc);
  line-height: 1.5;
}

.vx-live-voice button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem .9rem;
  border: 1px solid #414753;
  border-radius: 999px;
  background: #262a33;
  color: #f8f9fc;
  font: inherit;
  cursor: pointer;
}

#vx-voice-live-entry svg,
.vx-live-voice button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.vx-live-voice {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 30rem);
  max-width: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #f8f9fc;
  background: radial-gradient(ellipse at 50% 25%, #243734, #14171e 62%, #0e1015);
  border: 1px solid #343944;
  border-radius: 2rem;
}

.vx-live-voice::backdrop {
  background: #080a10a6;
}

.vx-call-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .85rem;
  min-height: 24rem;
  padding: 1.5rem;
  text-align: center;
}

#vx-voice-live-minimize {
  position: absolute;
  top: .65rem;
  right: .65rem;
  width: 44px;
  padding: 0;
  color: #c6cbd6;
  background: #ffffff0a;
}

#vx-voice-live-minimize span {
  width: 14px;
  border-bottom: 2px solid currentColor;
  border-radius: 1px;
}

.vx-call-card h2,
.vx-call-card p {
  margin: 0;
}

.vx-call-card h2 {
  font-size: 1.65rem;
  letter-spacing: .13em;
}

.vx-call-card p,
#vx-voice-live-clock {
  color: #c6cbd6;
}

#vx-voice-live-clock {
  font-variant-numeric: tabular-nums;
}

.vx-call-avatar {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: #263d37;
  color: #d4fae5;
  box-shadow: 0 0 0 .55rem #d4fae515;
}

.vx-call-avatar svg {
  width: 2.4rem;
  height: 2.4rem;
}

.vx-live-voice[data-state="starting"] .vx-call-avatar,
.vx-live-voice[data-speaking="true"] .vx-call-avatar {
  animation: vx-call-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes vx-call-pulse {
  to { box-shadow: 0 0 0 1rem #d4fae530; }
}

.vx-live-voice-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.vx-live-voice button:disabled {
  opacity: .55;
  cursor: default;
}

.vx-live-voice button[aria-pressed="true"] {
  border-color: #d4fae5;
}

#vx-voice-live-stop {
  background: #ac263e;
  border-color: #f15d75;
  font-weight: 700;
}

#vx-voice-live-stop svg {
  transform: rotate(135deg);
}

.vx-live-voice button:focus-visible,
#vx-voice-live-entry:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

#vx-voice-live-disclosure {
  max-width: 28ch;
  font-size: .78rem;
}

@media (max-width: 560px) {
  .vx-live-voice { border-radius: 1.5rem; }
  .vx-call-card {
    box-sizing: border-box;
    min-height: 0;
    padding: 1.25rem 1rem;
  }
  .vx-call-avatar { width: 4.5rem; height: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .vx-live-voice .vx-call-avatar { animation: none !important; }
}

.vx-call-output {
  display: grid;
  justify-items: center;
  gap: .35rem;
  font-size: .84rem;
  color: #c6cbd6;
}

.vx-call-output span:empty {
  display: none;
}

#vx-voice-live-route[aria-pressed="true"] {
  color: #10241a;
  background: #d4fae5;
}

/* Compact Voice 2 mission projection and non-dismissible pending review. */
#vx-voice-live-mission-bridge[hidden],
#vx-voice-live-options label[hidden] { display: none !important; }
.vx-voice-bridge {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  font-size: .82rem;
  line-height: 1.4;
}
.vx-voice-bridge > p { overflow-wrap: anywhere; }
.vx-voice-bridge-review {
  box-sizing: border-box;
  width: 100%;
  margin-top: .5rem;
  padding: .75rem;
  border: 1px solid #a9abb3;
  border-radius: .75rem;
  background: #181b22;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.vx-voice-bridge-review strong { font-size: .9rem; }
.vx-voice-bridge-review pre {
  box-sizing: border-box;
  width: 100%;
  max-height: 11rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #f8f9fc;
  padding: .5rem;
  margin: 0;
  font: inherit;
  background: #0e1015;
  border-radius: .4rem;
}
.vx-voice-bridge-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.vx-voice-bridge-actions button { flex: 1 1 120px; border-radius: .55rem; font-size: .82rem; }
.vx-voice-bridge-actions button:first-child:not([hidden]) { border-color: #f8f9fc; }

/* P10: progressive voice options, no changes to core charcoal identity. */
.vx-voice-preferences {display:inline-block;max-width:100%;font-size:.8rem;}
.vx-voice-preferences>summary{cursor:pointer;list-style:none;padding:6px 9px;border-radius:10px;color:var(--ink-muted,#c8c8c8);border:1px solid rgba(255,255,255,.10)}
.vx-voice-preferences>summary::-webkit-details-marker{display:none}
.vx-voice-pref-fields{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:9px 2px}
.vx-voice-pref-fields label{display:flex;align-items:center;gap:5px;font-size:.82rem}
.vx-voice-pref-fields select{border-radius:8px;max-width:130px}
.vx-voice-pref-fields p{font-size:.72rem;line-height:1.4;opacity:.76;margin:0;flex-basis:100%}
#vx-voice-stop[hidden]{display:none!important}
@media(max-width:520px){.vx-voice-preferences{flex-basis:100%}.vx-voice-pref-fields{display:grid;grid-template-columns:1fr auto}}

/* Prevent the optional controls from increasing the chat composer width. */
.vx-chat-composer{min-width:0;max-width:100%;box-sizing:border-box}
.vx-composer-controls{display:flex;flex-wrap:wrap;align-items:center;min-width:0;max-width:100%;box-sizing:border-box}
.vx-composer-left{display:flex;flex-wrap:wrap;min-width:0;max-width:100%;flex:1 1 220px}
#vx-chat-submit{width:44px;min-width:44px;max-width:44px;height:44px;flex:0 0 44px;margin-left:auto}
#vx-chat-submit .ico{width:20px;height:20px;max-width:100%;max-height:100%}


.vx-hybrid-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;padding:10px 4px;border-bottom:1px solid #303030;flex:none;max-width:100%;}
.vx-hybrid-controls[hidden]{display:none!important;}
.vx-hybrid-controls label{min-width:0;font-size:11px;color:#a9a9a9;letter-spacing:.03em;}
.vx-hybrid-controls select{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:40px;margin-top:4px;border:1px solid #424242;border-radius:12px;background:#202020;color:#efefef;padding:7px 8px;font:inherit;font-size:12px;}
.vx-hybrid-controls select:focus-visible{outline:2px solid #c4c4c4;outline-offset:2px;}
.vx-hybrid-controls select:disabled{opacity:.6;}
.vx-hybrid-controls small{grid-column:1/-1;font-size:11px;line-height:1.35;color:#aaa;overflow-wrap:anywhere;}
#vx-hybrid-status{color:#ddd;}
.vx-hybrid-result{font-size:11px;color:#bdbdbd;margin:8px 0;overflow-wrap:anywhere;}
.vx-hybrid-result a{display:inline-block;padding:8px;color:#e5e5e5;border:1px solid #444;border-radius:9px;margin:6px 6px 0 0;}
.vx-action-panel{grid-column:1/-1;color:#ddd;font-size:12px;min-width:0;max-height:42vh;overflow:auto;border:1px solid #444;border-radius:10px;padding:8px;}
.vx-action-panel[hidden]{display:none;}
.vx-action-panel summary{cursor:pointer;padding:5px;}
.vx-action-card{padding:8px 0;border-top:1px solid #444;overflow-wrap:anywhere;}
.vx-action-card p{margin:6px 0;}
.vx-action-card pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:24vh;overflow:auto;font-size:11px;background:#171717;padding:8px;}
.vx-action-card button{min-height:44px;border:1px solid #888;border-radius:8px;padding:8px 12px;margin:6px 6px 0 0;background:#303030;color:#fff;}
@media(max-width:480px){.vx-hybrid-controls{gap:6px 8px;padding:7px 2px}.vx-hybrid-controls select{font-size:11px;min-height:38px}.vx-hybrid-controls small{font-size:10px}#vx-hybrid-privacy{line-height:1.25;}}
.vx-autonomy-row{display:flex;grid-column:1/-1;align-items:flex-start;gap:8px;min-width:0;}
#vx-autonomy-panel{flex:1;min-width:0;max-width:100%;font-size:12px;}
#vx-autonomy-panel>summary{cursor:pointer;min-height:36px;display:flex;align-items:center;color:#bbb;}
#vx-autonomy-panel>summary::before{content:'⌄';margin-right:7px;}
#vx-autonomy-panel[open]>summary::before{content:'⌃';}
.vx-autonomy-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;background:#19191c;border:1px solid #3d3d43;border-radius:14px;max-height:46vh;overflow:auto;}
.vx-autonomy-body>label:first-child,.vx-autonomy-body>label:has(textarea),.vx-autonomy-body>fieldset,.vx-autonomy-body>p{grid-column:1/-1;}
.vx-autonomy-body>label{display:block;}
.vx-autonomy-body input[type=number],.vx-autonomy-body textarea{box-sizing:border-box;width:100%;min-height:40px;padding:9px;margin-top:5px;border:1px solid #444;border-radius:9px;background:#101012;color:#eee;font:inherit;font-size:14px;}
.vx-autonomy-body textarea{resize:vertical;}
.vx-autonomy-body fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:6px;border:1px solid #444;border-radius:10px;min-width:0;}
.vx-autonomy-body fieldset label{display:flex;align-items:center;gap:7px;min-height:38px;line-height:1.35;}
.vx-autonomy-body fieldset input{width:18px;height:18px;flex-shrink:0;accent-color:#ddd;}
.vx-autonomy-note,#vx-autonomy-state{font-size:11px;line-height:1.45;color:#b4b4bd;margin:0;overflow-wrap:anywhere;}
.vx-autonomy-body button,#vx-mission-stop{min-height:40px;border-radius:10px;border:1px solid #555;background:#27272c;color:#fff;padding:8px;font:inherit;font-size:12px;cursor:pointer;}
.vx-autonomy-body button:disabled{opacity:.5;cursor:default;}
#vx-mission-stop{flex-shrink:0;border-color:#555;background:#27272c;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;}
#vx-mission-stop[hidden],.vx-autonomy-row[hidden],#vx-mission-revoke[hidden]{display:none!important;}
#vx-hybrid-next{color:#c5c5cf;}
@media(max-width:360px){.vx-autonomy-body{padding:8px;gap:8px}.vx-autonomy-body fieldset{grid-template-columns:1fr}.vx-autonomy-body>label{grid-column:1/-1}}

/* VYRONTA V28: selectable registered-project rows */
#projects-list [data-vx-select-project]{cursor:pointer;transition:background .16s,border-color .16s}
#projects-list [data-vx-select-project]:hover{background:rgba(122,135,151,.11)}
#projects-list [data-vx-select-project]:focus-visible{outline:2px solid #8fa7c1;outline-offset:2px}
#projects-list .vx-project-use{font-size:11px;color:#c6d8ee;font-weight:700;white-space:nowrap}

/* V30 recovery panel */
#vx-resume-panel{flex-basis:100%;min-width:0;max-width:100%;padding:8px;border:1px solid #333;border-radius:8px;background:#151515}
#vx-resume-panel select{display:block;width:100%;min-width:0;max-width:100%;background:#181818;color:#ddd;margin:8px 0}
#vx-resume-panel button{max-width:100%;white-space:normal}
#vx-resume-panel p{overflow-wrap:anywhere}

/* Composer attachments — stays within the mobile chat; no new modal. */
#vx-chat-attachments[hidden]{display:none!important}
#vx-chat-attachments{display:flex;flex-wrap:wrap;gap:7px;padding:9px 9px 6px;max-width:100%;align-items:center;overflow-wrap:anywhere}
.vx-chat-attachment-chip{display:flex;align-items:center;max-width:min(100%,260px);min-width:125px;gap:7px;min-height:50px;border:1px solid rgba(180,194,205,.32);border-radius:12px;padding:6px;background:rgba(120,140,155,.10);color:inherit}
.vx-chat-attachment-thumb{width:43px;height:43px;object-fit:cover;border-radius:8px;flex-shrink:0}
.vx-chat-attachment-type,.vx-chat-file-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:8px;background:rgba(135,154,175,.16);font-size:11px;letter-spacing:.02em;flex-shrink:0;font-weight:700}
.vx-chat-attachment-label,.vx-chat-file-details{display:flex;flex-direction:column;min-width:0;gap:2px;font-size:12px;line-height:1.3}
.vx-chat-attachment-label strong,.vx-chat-file-details strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;max-width:160px}
.vx-chat-attachment-label small,.vx-chat-file-details small{opacity:.75;font-size:11px}
.vx-chat-attachment-remove{border:0;background:transparent;color:inherit;font-size:22px;line-height:1;cursor:pointer;padding:5px;margin-left:auto;border-radius:7px}
.vx-chat-attachment-remove:focus-visible,.vx-chat-attach-main:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.vx-chat-attachment-hint{opacity:.73;font-size:11px;flex-basis:100%;line-height:1.4}
.vx-chat-message-files{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0;max-width:100%}
.vx-chat-file-card{display:flex;align-items:center;gap:8px;padding:6px;border-radius:10px;border:1px solid rgba(180,194,205,.32);text-decoration:none;color:inherit;max-width:220px;min-width:110px;overflow:hidden;background:rgba(120,140,155,.10)}
.vx-chat-file-card img{width:55px;height:55px;border-radius:8px;object-fit:cover}
.vx-chat-file-card:hover{background:rgba(140,160,180,.2)}
.vx-chat-dragover{outline:2px dashed #c1e3dc;outline-offset:3px}
@media(max-width:480px){#vx-chat-attachments{padding:6px;gap:5px}.vx-chat-attachment-chip{max-width:100%;min-width:118px}.vx-chat-attachment-label strong{max-width:130px}}

.vx-chat-file-reuse{align-self:center;border:1px solid rgba(180,194,205,.45);border-radius:9px;background:rgba(130,150,170,.12);color:inherit;padding:5px 11px;font-size:19px;cursor:pointer;min-width:34px;min-height:34px}
.vx-chat-file-reuse:focus-visible{outline:2px solid currentColor;outline-offset:2px}

#vx-chat-feed .vx-agent-timeline {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin: .45rem 0;
  border: 1px solid #45454c;
  border-radius: 12px;
  background: #202024;
  color: #eeeeef;
  font-size: .875rem;
  line-height: 1.45;
}
#vx-chat-feed .vx-agent-timeline > summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  min-height: 44px;
  box-sizing: border-box;
  align-content: center;
  padding: .5rem .85rem;
  cursor: pointer;
  list-style: none;
}
.vx-agent-timeline > summary::-webkit-details-marker { display: none; }
.vx-agent-timeline > summary strong { font-size: .875rem; font-weight: 600; }
.vx-timeline-summary { grid-column: 1; color: #c4c5cd; font-size: .8125rem; overflow-wrap: anywhere; }
.vx-agent-timeline > summary::after {
  content: '';
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: .45rem;
  height: .45rem;
  margin: 0 .25rem 0 .65rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.vx-agent-timeline[open] > summary::after { transform: rotate(225deg); }
.vx-agent-timeline .vx-timeline-body { border-top: 1px solid #414147; padding: .65rem .85rem .75rem; }
.vx-agent-timeline .vx-timeline-meta { margin: 0; color: #c4c5cd; overflow-wrap: anywhere; }
.vx-agent-timeline .vx-timeline-steps { margin: 0; padding-inline-start: 1.4rem; }
.vx-agent-timeline .vx-timeline-meta + .vx-timeline-steps { margin-top: .6rem; }
.vx-agent-timeline .vx-timeline-steps li { padding-inline-start: .15rem; overflow-wrap: anywhere; }
.vx-agent-timeline .vx-timeline-steps li + li { margin-top: .55rem; }
.vx-agent-timeline .vx-timeline-steps strong { font-weight: 550; }
.vx-agent-timeline .vx-timeline-steps span { display: block; color: #c4c5cd; font-size: .8125rem; }
.vx-agent-timeline .vx-timeline-artifact,
#vx-conversation-scroller .vx-timeline-earlier {
  display: block;
  min-height: 44px;
  margin-top: .25rem;
  padding: .4rem .7rem;
  border: 1px solid #65656e;
  border-radius: 8px;
  background: #303035;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
#vx-conversation-scroller .vx-timeline-earlier { margin: .5rem auto; }
#vx-conversation-scroller .vx-timeline-earlier[hidden] { display: none; }
#vx-conversation-scroller .vx-timeline-earlier:focus-visible,
#vx-chat-feed .vx-agent-timeline :is(button,summary):focus-visible,
#view-chat #vx-chat-form #vx-stop-research:focus-visible { outline: 2px solid #dfdefe; outline-offset: 2px; }
#view-chat #vx-chat-form #vx-stop-research:not([hidden]) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 .7rem;
  border: 1px solid #ed949f !important;
  border-radius: 22px;
  background: #802c3c !important;
  color: #fff !important;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}
#vx-stop-research::before { content: ''; width: .65rem; height: .65rem; border-radius: 2px; background: currentColor; }
#view-chat #vx-chat-form #vx-stop-research[hidden],
#view-chat #vx-chat-form #vx-stop-research:not([hidden]) + #vx-chat-submit,
#view-chat #vx-chat-form[data-active-turn] #vx-mission-stop,
#view-chat #vx-chat-form[data-active-turn] > .vx-hybrid-controls:has(> #vx-mission-stop:only-child),
#view-chat #vx-chat-form + .vx-composer-footnote:has(> #vx-chat-privacy:only-child) { display: none !important; }
@media (max-width: 380px) {
  /* Keep Stop in the familiar send position within the narrowest composer. */
  #view-chat #vx-chat-form #vx-stop-research:not([hidden]) { padding: 0 .5rem; gap: .25rem; }
  #view-chat #vx-chat-form:has(#vx-stop-research:not([hidden])) .vx-composer-left { min-width: 0; }
}

#vx-9c-modes {
  box-sizing: border-box;
  inline-size: fit-content;
  max-inline-size: 100%;
  margin: 0 0 .2rem .5rem;
  font-size: .8rem;
}
#vx-9c-modes summary, .vx-team-receipt summary { cursor: pointer; }
#vx-9c-modes summary { width: fit-content; padding: .3rem .35rem; }
.vx-9c-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
#vx-9c-modes .vx-9c-actions { padding: .15rem 0 .35rem; }
#vx-9c-modes button, #vx-memory-v2 button {
  padding: .5rem .75rem;
  border: 1px solid var(--border, #464b54);
  border-radius: .65rem;
  color: inherit;
  background: var(--surface-2, #22252b);
  max-inline-size: 100%;
}
#vx-9c-modes button[aria-pressed="true"] { background: #eceef1; color: #121417; }
#vx-9c-modes button:focus-visible, #vx-memory-v2 :is(button, input, select, textarea):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
#vx-9c-modes [role="status"]:empty, #vx-memory-v2 [role="status"]:empty { display: none; }
#vx-9c-modes [role="status"] { margin: .15rem 0 .45rem; }
#vx-memory-v2 {
  box-sizing: border-box;
  min-inline-size: 0;
  max-inline-size: 100%;
  padding: 1rem;
  overflow-wrap: anywhere;
}
#vx-memory-v2 h2, #vx-memory-v2 h3 { margin: 0 0 .55rem; }
#vx-memory-v2 form { display: grid; gap: .55rem; }
#vx-memory-v2 > * + * { margin-block-start: 1.2rem; }
#vx-memory-v2 :is(input, select, textarea) {
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 0;
  border: 1px solid var(--border, #464b54);
  border-radius: .55rem;
  padding: .5rem;
  background: var(--surface-2, #22252b);
  color: inherit;
}
#vx-memory-v2 .vx-memory-card { min-inline-size: 0; }
#vx-memory-v2 article p { white-space: pre-wrap; }
#vx-memory-v2 article small { display: block; margin-block-start: .25rem; }
.vx-team-receipt { margin-block: .45rem; overflow-wrap: anywhere; }

/* The next-message mode stays discoverable within the model picker. */
#vx-ux-mode-panel #vx-9c-modes { width:100%; max-width:100%; margin:8px 0 0; padding-top:8px; border-top:1px solid var(--vx-design-line,#353539); }
#vx-ux-mode-panel #vx-9c-modes summary { min-height:44px; display:flex; align-items:center; }
#vx-ux-mode-panel #vx-9c-modes button { min-height:44px; }
#vx-ux-mode-trigger[data-special-mode]::after { content:'•'; display:inline-block; margin-left:4px; color:var(--vx-design-text,#f2f2f3); }

html.vx-artifact-open,
html.vx-artifact-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.vx-artifact-dialog {
  box-sizing: border-box;
  width: min(46rem, calc(100% - 1.5rem));
  max-width: 100%;
  height: min(37rem, 85vh);
  height: min(37rem, 85dvh);
  max-height: calc(100% - 1.5rem);
  margin: auto;
  padding: 0;
  border: 1px solid #52615f;
  border-radius: 14px;
  background: #171c1c;
  color: #eef4f2;
  font: inherit;
  overflow: hidden;
}
.vx-artifact-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.vx-artifact-dialog::backdrop {background: rgb(0 0 0 / 70%);}
.vx-artifact-heading,
.vx-artifact-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .65rem 1rem;
}
.vx-artifact-heading {border-bottom: 1px solid #3b4746;}
.vx-artifact-controls {border-top: 1px solid #3b4746;}
.vx-artifact-dialog h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.vx-artifact-dialog pre {
  margin: 0;
  min-width: 0;
  padding: 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: .94rem/1.6 ui-monospace, monospace;
  tab-size: 4;
}
.vx-artifact-dialog [role=status] {
  flex: 1 1 8rem;
  color: #c4d0cd;
  font-size: .875rem;
}
.vx-artifact-dialog button {
  min-height: 44px;
  padding: .4rem .75rem;
  border: 1px solid #61746f;
  border-radius: 8px;
  background: #263330;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.vx-artifact-dialog button[hidden] {display: none;}
.vx-artifact-dialog button:disabled {opacity: .45; cursor: default;}
.vx-artifact-dialog :focus-visible {outline: 2px solid #a1decd; outline-offset: -3px;}

/* Sprint 10 — subtle actions inside the existing message menu. */
#shell #view-chat .vx-chat-tools .vx-ux-action {
  font: 500 11px/1.2 system-ui, sans-serif;
  color: #c8c8ce;
  padding: 7px 10px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}
#shell #view-chat .vx-chat-tools .vx-ux-action:focus-visible,
#shell #view-chat .vx-chat-tools .vx-ux-action:hover {
  color: #f4f4f6;
  background: #ffffff12;
  border-color: #66666b;
}
/* Existing H28 menu owns the visibility; never add a row of buttons per turn. */
#shell #view-chat .vx-chat-tools.h28-context-tools:not(.h28-open) > .vx-ux-action {
  display: none !important;
}
#shell #view-chat .vx-code-block { position: relative; max-width: 100%; min-width: 0; margin: .5rem 0; }
#shell #view-chat .vx-code-block > pre { max-width: 100%; padding-top: 37px; overflow-x: auto; }
#shell #view-chat .vx-code-block > .vx-ux-action {
  position: absolute; right: 6px; top: 5px; z-index: 1;
  min-height: 32px; padding: 5px 9px; border-radius: 8px;
  border: 1px solid #55555b; background: #26262b; color: #e3e3e7;
  font: 500 12px/1.2 system-ui; cursor: pointer;
}
#shell #view-chat .vx-code-block > .vx-ux-action:focus-visible { outline: 2px solid #d7b484; }
#shell #view-chat .vx-ux-copy-fallback { display: block; box-sizing: border-box; width: 100%; min-height: 65px; }

/* Sprint 10 · Clean Chat V1 — no tools, warnings, session data or actions deleted. */
#view-chat #vx-chat-feed:not(:empty) {
  row-gap: 12px;
}
#view-chat .vx-chat-message[data-role="assistant"] {
  line-height: 1.58;
}
/* Keep model, exact cost, Session and Mission accounting on owner demand. */
#shell #vx-chat-feed .vx-hybrid-result.vx-compact-receipt {
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a8a8af;
  font-size: 11px;
}
#shell #vx-chat-feed .vx-compact-receipt > summary {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 4px 4px 0;
  color: #aeb0b7;
  font: 500 11px/1.25 system-ui, sans-serif;
  cursor: pointer;
  list-style: revert;
}
#shell #vx-chat-feed .vx-compact-receipt > summary:focus-visible {
  outline: 2px solid #dfdefe;
  outline-offset: 2px;
}
#shell #vx-chat-feed .vx-compact-receipt[open] > summary { margin-bottom: 4px; }
/* Turn card is a single calm line, full history appears when expanded. */
#shell #vx-chat-feed .vx-agent-timeline {
  margin: 3px 0 2px;
  font-size: 12px;
  line-height: 1.3;
  border-radius: 11px;
}
#shell #vx-chat-feed .vx-agent-timeline > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 11px;
}
#shell #vx-chat-feed .vx-agent-timeline > summary strong {
  flex: none;
  font: 600 12px/1.3 system-ui, sans-serif;
}
#shell #vx-chat-feed .vx-agent-timeline .vx-timeline-summary {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #b3b4bd;
  font-size: 12px;
}
#shell #vx-chat-feed .vx-agent-timeline > summary::after {
  position: static;
  flex: none;
  margin: 0 2px 3px 3px;
  align-self: center;
}
/* APK injects this element, but server web assets can conceal its *healthy*
   state. All warning/uncertain states stay visible, including during a job. */
#view-chat #vx-mobile-live-status.vx-chat-clean-healthy { display: none !important; }
#shell #view-chat #vx-chat-notice:not(:empty) {
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 5px;
}
@media (max-width: 430px) {
  #shell #vx-chat-feed:not(:empty) {
    padding: 16px 15px 12px !important;
  }
}

/* VYRONTA 14.1 · Carbon native permission surface (chat scoped). */
.vx-chat-control-panel{background:#171717;border:1px solid #373737;border-radius:17px;padding:15px 16px;margin:12px 0 14px;color:#eee;box-shadow:0 8px 26px #0004;max-height:min(48vh,470px);overflow:auto;overflow-wrap:anywhere}
.vx-chat-control-panel[hidden]{display:none!important}
.vx-chat-control-panel h3{font-size:1.01rem;line-height:1.4;margin:0 0 7px;font-weight:680;letter-spacing:.01em}
.vx-chat-control-panel h4{font-size:.88rem;margin:12px 0 5px;color:#d3d3d3}
.vx-chat-control-panel p{margin:6px 0;color:#c6c6c6;font-size:.88rem;line-height:1.55}
.vx-chat-control-fields{display:grid;gap:11px;margin-top:11px}
.vx-chat-control-field{display:grid;gap:7px;font-size:.83rem;color:#bbb}
.vx-chat-control-field input,.vx-chat-control-field select{width:100%;max-width:100%;background:#242424;border:1px solid #424242;border-radius:9px;padding:11px;color:#f5f5f5;font:inherit;min-height:43px}
.vx-chat-control-check{display:flex;align-items:center;gap:10px;color:#d2d2d2;font-size:.87rem;line-height:1.4}
.vx-chat-control-check input{accent-color:#a8b2aa;width:17px;height:17px}
.vx-chat-control-panel .vx-chat-control-warn{color:#efc6a5}
.vx-chat-control-panel .vx-chat-control-muted{color:#999;font-size:.79rem}
.vx-chat-control-result{max-height:160px;overflow:auto}
.vx-chat-control-result .vx-chat-control-match{font-family:ui-monospace,Consolas,monospace;font-size:.76rem;border-bottom:1px solid #333;padding:4px 0}
.vx-chat-control-buttons{display:flex;gap:9px;align-items:center;justify-content:flex-end;margin-top:13px}
.vx-chat-control-buttons button,.vx-chat-control-grant button,.vx-chat-control-result button{border-radius:10px;border:1px solid #5b5b5b;background:#dedede;color:#131313;font:inherit;font-weight:600;padding:10px 13px;cursor:pointer}
.vx-chat-control-buttons .vx-control-secondary{background:#282828;color:#eee;border-color:#444}
.vx-chat-control-result .vx-control-danger,.vx-chat-control-grant button{background:#352b2b;color:#ffdcdb;border-color:#704c4c}
.vx-chat-control-buttons button:disabled{opacity:.45;cursor:default}
.vx-chat-control-grant{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #303030;padding:5px 0;font-size:.8rem}
.vx-control-link{background:transparent;border:0;color:#ababab;font:inherit;font-size:.73rem;cursor:pointer;padding:4px 6px}
.vx-control-link:hover{color:white}
.vx-chat-table-scroll{max-width:100%;overflow-x:auto;margin:.75em 0}
.vx-chat-table-scroll table{border-collapse:collapse;white-space:normal;font:inherit}
.vx-chat-table-scroll th,.vx-chat-table-scroll td{padding:.45em .7em;text-align:start;vertical-align:top;border-bottom:1px solid #444}
.vx-chat-table-scroll th{font-weight:650}
@media(max-width:420px){.vx-chat-control-panel{margin:7px 4px 11px;padding:12px;max-height:43vh;border-radius:13px}.vx-chat-control-buttons button{padding:9px 11px;font-size:.82rem}.vx-control-link{font-size:.68rem}}

/* Scoped V15 mission surface. Existing Negro Carbón palette and navigation unchanged. */
.vxo-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:22px;border:1px solid #353535;border-radius:22px;background:#111;color:#eee;box-shadow:0 24px 90px #000b;overflow:auto;font:inherit}
.vxo-dialog::backdrop{background:#000b}
.vxo-dialog *{box-sizing:border-box}
.vxo-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px}
.vxo-word{font-size:11px;letter-spacing:.17em;font-weight:650;color:#a6a6a6}
.vxo-close{border:0;background:#242424;color:#ccc;border-radius:50%;width:40px;height:40px;font-size:26px;cursor:pointer}
.vxo-dialog h2{margin:0 0 8px;font-size:clamp(23px,5.8vw,30px);font-weight:580;letter-spacing:-.035em;line-height:1.16}
.vxo-sub{font-size:14px;line-height:1.55;color:#aaa;margin:0 0 22px}
.vxo-field{display:flex;flex-direction:column;gap:8px;margin:15px 0;font-size:13px;color:#c0c0c0}
.vxo-field input,.vxo-field select,.vxo-field textarea{width:100%;min-width:0;max-width:100%;padding:12px;background:#202020;color:#eee;border:1px solid #3a3a3a;border-radius:11px;font:inherit;font-size:15px;min-height:46px}
.vxo-field textarea{resize:vertical;min-height:100px}
.vxo-dialog :is(input,textarea,select,button,a):focus-visible{outline:2px solid #d2d2d2;outline-offset:3px}
.vxo-hint,.vxo-foot{font-size:12px;line-height:1.55;color:#999;overflow-wrap:anywhere}
.vxo-foot{border-top:1px solid #2e2e2e;margin:22px 0 0;padding-top:14px}
.vxo-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.vxo-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-height:45px;padding:11px 15px;color:#111;background:#e5e5e5;border:1px solid #e5e5e5;border-radius:12px;font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;text-align:center;white-space:normal;overflow-wrap:anywhere}
.vxo-secondary{background:#252525;color:#ddd;border-color:#3b3b3b}
.vxo-button:hover{filter:brightness(1.10)}
.vxo-badge{display:inline-block;font-size:11px;letter-spacing:.04em;padding:7px 10px;border:1px solid #414141;border-radius:8px;color:#c4c4c4;margin:3px 0 12px}
.vxo-inputs{padding:14px;background:#1d1d1d;border:1px solid #303030;border-radius:12px;margin:12px 0;overflow-wrap:anywhere}
.vxo-inputs p{margin:4px 0;font-size:14px}
.vxo-inputs code,.vxo-details code{font-size:11px;color:#999;overflow-wrap:anywhere}
.vxo-summary{font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.vxo-details{font-size:12px;color:#aaa;line-height:1.55;padding:12px 0}
.vxo-details summary{cursor:pointer;color:#ccc}
.vxo-path{overflow-wrap:anywhere;word-break:break-word}
.vxo-check{display:flex;align-items:flex-start;gap:12px;font-size:13px;line-height:1.5;margin:18px 0}
.vxo-check input{accent-color:#ddd;min-width:20px;min-height:20px}
.vxo-message{font-size:13px;line-height:1.5;color:#d2d2d2;overflow-wrap:anywhere;white-space:pre-wrap;margin:14px 0 0}
.vxo-warning{padding:12px;border-left:2px solid #999;background:#232323;border-radius:7px;font-size:13px;line-height:1.55;color:#d0d0d0;overflow-wrap:anywhere}
.vxo-steps{list-style:none;padding:0;margin:10px 0 22px;display:grid;gap:10px}
.vxo-steps li{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #2b2b2b;border-radius:12px;font-size:14px;color:#888}
.vxo-steps li.vxo-done{color:#eee;background:#232323;border-color:#3b3b3b}
.vxo-downloads{display:grid;gap:9px;margin:20px 0}
.vxo-file{display:block;color:#bbb;font-size:13px;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.vxo-history{display:grid;grid-template-columns:1fr auto;gap:9px;padding:15px 0;border-bottom:1px solid #333}
.vxo-history small{color:#888;grid-column:1;line-height:1.5}.vxo-history button{grid-column:2;grid-row:1 / 3}
@media(max-width:420px){.vxo-dialog{padding:18px 16px;border-radius:18px}.vxo-actions .vxo-button{flex:1 1 auto}.vxo-steps li{font-size:13px}}
@media(prefers-reduced-motion:reduce){.vxo-dialog *{animation:none!important;transition:none!important}}

/* Final scoped overrides for a compact chat and an accessible history drawer. */
#view-chat .vx-hybrid-controls{gap:6px 10px;padding:8px 4px;border:0;position:relative;}
#view-chat #vx-chat-form>.vx-hybrid-controls{margin-bottom:8px;padding:0 0 8px;border-bottom:1px solid #333;}
#view-chat #vx-chat-form>.vx-hybrid-controls>.vx-model-choice,#view-chat #vx-chat-form>.vx-hybrid-controls>.vx-effort-choice{grid-row:1;}
#view-chat #vx-chat-form>.vx-hybrid-controls>#vx-hybrid-status{font-size:10px;color:#999;}
#view-chat .vx-simple-info>label{display:block;}
#view-chat #vx-chat-form>.vx-hybrid-controls>.vx-simple-info{order:5;}
#view-chat #vx-chat-form>.vx-hybrid-controls>.vx-action-panel{order:6;}
#view-chat .vx-hybrid-controls label{font-size:11px;color:#b8b8bd;}
#view-chat .vx-hybrid-controls select{min-height:40px;border-radius:20px;background:#19191c;font-size:12px;color:#fafafa;}
.vx-simple-info{grid-column:1/-1;font-size:11px;color:#aaa;}
.vx-simple-info summary{cursor:pointer;min-height:25px;display:flex;align-items:center;}
.vx-simple-info p{font-size:12px;line-height:1.5;margin:8px 0;}
.vx-simple-info small{display:block;margin:6px 0;}
#vx-show-test-projects{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px;}
#vx-show-test-projects input{width:18px;height:18px;}
#view-chat .vx-flow-toolbar,#view-chat #vx-chat-privacy{display:none!important;}
#view-chat .vx-composer-footnote:has(#vx-stop-research[hidden]){display:none!important;}
#view-chat #vx-stop-research:not([hidden]){display:block!important;min-height:44px;}
#vx-header-new-chat{font-size:26px;min-width:44px;min-height:44px;}
#view-chat .vx-chat-notice:empty{display:none;}
#view-chat .vx-chat-composer{padding:12px 14px!important;border-radius:24px!important;}
#view-chat .vx-chat-input,#vx-chat-input{font-size:16px!important;}
#view-chat .vx-composer-area{padding-top:8px!important;}
#view-chat .vx-chat-empty{padding:24px 12px!important;min-height:0!important;}
#view-chat .vx-chat-empty h1{font-size:clamp(25px,6vw,36px)!important;margin:12px 0!important;}
#view-chat .vx-chat-empty p{font-size:14px!important;line-height:1.5!important;}
#view-chat .vx-chat-wordmark{display:none;}
#view-chat .vx-prompt-samples{display:flex!important;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:18px!important;}
#view-chat .vx-prompt-samples button{width:auto!important;min-height:40px!important;padding:8px 12px!important;font-size:12px!important;}
.vx-simple-options{position:relative;}
.vx-simple-options>summary{list-style:none;display:grid;place-items:center;width:44px;height:44px;font-size:25px;cursor:pointer;color:#fff;}
.vx-simple-options>summary::-webkit-details-marker{display:none;}
.vx-simple-options-content{position:absolute;bottom:52px;left:0;z-index:40;background:#222226;border:1px solid #555;border-radius:16px;padding:12px;display:grid;gap:10px;min-width:215px;box-shadow:0 8px 28px #0009;}
.vx-simple-options-content>*{min-height:44px!important;margin:0!important;}
.vx-simple-history{border:0;background:transparent;color:#ddd;padding:8px;font-size:12px;min-height:44px;}
#vx-flow-project-trigger,.vx-top-divider{display:none!important;}
#vx-flow-project-trigger[data-project-active]{display:inline-flex!important;max-width:min(28vw,11rem);min-width:0}
#vx-flow-project-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#vx-space-dialog .vx-project-cloud-consent{display:flex;align-items:flex-start;gap:.6rem;line-height:1.5}
#vx-space-dialog #vx-space-cloud{width:1.15rem;height:1.15rem;min-height:0;padding:0;flex:none}
#vx-thread-search{box-sizing:border-box;width:100%;min-height:44px;background:#202023;border:1px solid #444;border-radius:12px;padding:10px 12px;color:#fff;font:inherit;font-size:14px;}
#main-nav #vx-chat-thread-list{max-height:52vh;overflow-y:auto;min-height:70px;}
#main-nav .vx-thread-open{min-height:48px;font-size:14px;}
#main-nav .vx-new-chat{min-height:48px;margin-bottom:10px;background:#24242a;color:#fff;border:1px solid #50505b;}
.vx-action-panel{max-height:35vh;}
@media(max-width:600px){
 .vx-flow-mobile-dock{min-height:64px!important;padding:4px 8px!important;}
 .vx-flow-mobile-dock .dock-item{min-height:50px!important;padding:5px!important;}
 .vx-flow-mobile-dock .dock-item svg{width:20px!important;height:20px!important;}
 .vx-flow-mobile-dock .dock-item span{font-size:10px!important;}
 .vx-top-brand{font-size:15px!important;letter-spacing:1px!important;}
 .top-left{gap:6px!important;}
 #view-chat .vx-composer-area{padding-bottom:8px!important;}
}

/* VYRONTA 20 P2: compact, accessible Team controls without altering other views. */
#view-chat #vx-chat-form>.vx-hybrid-controls{
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:8px;row-gap:4px;padding:2px 0 4px;
  margin-bottom:4px;align-items:end;
}
#view-chat #vx-chat-form>.vx-hybrid-controls>.vx-model-choice,
#view-chat #vx-chat-form>.vx-hybrid-controls>.vx-effort-choice{
  margin:0;min-width:0;font-size:10px;line-height:1.1;
}
#view-chat #vx-chat-form>.vx-hybrid-controls select{
  width:100%;min-width:0;margin-top:2px;min-height:38px;
  padding:5px 10px;font-size:12px;border-radius:13px;
}
#view-chat #vx-chat-form #vx-hybrid-next{
  grid-column:1/-1;order:0;min-width:0;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  font-size:11px;line-height:1.4;margin:1px 0 0;
}
#view-chat #vx-chat-form .vx-simple-info{
  grid-column:1/-1;order:1;min-width:0;max-width:100%;
}
#view-chat #vx-chat-form .vx-simple-info>summary{
  box-sizing:border-box;min-height:30px;font-size:11px;
  color:#bcbcc4;padding:5px 3px;list-style:none;
}
#view-chat #vx-chat-form .vx-simple-info>summary:focus-visible{
  outline:2px solid #dbdbdb;outline-offset:2px;border-radius:7px;
}
#view-chat #vx-chat-form .vx-simple-info[open]{
  background:#19191b;border:1px solid #33343a;
  border-radius:12px;padding:3px 9px 10px;
}
#view-chat #vx-chat-form .vx-simple-info>label{
  display:block;margin:6px 0 8px;
}
#view-chat #vx-chat-form .vx-simple-info>#vx-hybrid-status,
#view-chat #vx-chat-form .vx-simple-info>#vx-hybrid-privacy,
#view-chat #vx-chat-form .vx-simple-info>#vx-effort-info{
  display:block;white-space:normal;margin:6px 0;
}
#view-chat #vx-chat-form .vx-simple-info .vx-autonomy-row{
  grid-column:initial;display:block;margin-top:6px;
}
#view-chat #vx-chat-form .vx-simple-info .vx-autonomy-row[hidden],
#view-chat #vx-chat-form .vx-simple-info .vx-action-panel[hidden]{display:none!important;}
#view-chat #vx-chat-form .vx-simple-info .vx-action-panel{
  grid-column:initial;margin-top:8px;max-height:min(40vh,400px);
}
#view-chat #vx-chat-form>#vx-hybrid-controls>#vx-mission-stop{
  grid-column:1/-1;order:2;min-height:42px;width:100%;margin:2px 0 0;
}
@media(max-width:480px){
  #view-chat #vx-chat-form>.vx-hybrid-controls{padding:0;row-gap:2px;}
  #view-chat #vx-chat-form>.vx-hybrid-controls select{min-height:40px;font-size:12px;}
}

/* VYRONTA 20 P8 — UI polish, additive and last in the cascade. No borrowed assets. */
:root{--vxux-surface:#1b1b1d;--vxux-hover:#29292c;--vxux-line:#343438;--vxux-muted:#aeb0b5;--vxux-text:#f3f3f4}
.sidebar .vx-brand-version{font-size:9px!important;color:#85878b!important;letter-spacing:0!important}
.sidebar #main-nav{gap:4px!important}
.sidebar #main-nav .vx-flow-mainnav{
  display:grid!important;grid-template-columns:1fr!important;gap:2px!important;
  margin:2px 0 8px!important;padding:0!important
}
.sidebar #main-nav .vx-flow-mainnav .vx-flow-nav{
  min-height:42px!important;display:flex!important;flex-direction:row!important;
  align-items:center!important;justify-content:flex-start!important;gap:12px!important;
  border:1px solid transparent!important;border-radius:11px!important;
  padding:9px 12px!important;background:transparent!important;
  font-size:13px!important;font-weight:550!important;color:#c2c2c6!important
}
.sidebar #main-nav .vx-flow-mainnav .vx-flow-nav:hover,
.sidebar #main-nav .vx-flow-mainnav .vx-flow-nav.active,
.sidebar #main-nav .vx-flow-mainnav .vx-flow-nav[aria-current="page"]{
  background:#27272a!important;border-color:#333338!important;color:#f5f5f6!important;
  box-shadow:none!important
}
.sidebar #main-nav .vx-flow-mainnav .vx-flow-nav .vx-flow-glyph{display:flex;align-items:center;justify-content:center;width:19px;height:20px;flex:none;color:inherit;font-size:16px}
.sidebar #main-nav .vx-flow-spaces-block{margin:3px 0 4px!important;padding:8px 0!important}
.sidebar #main-nav .vx-flow-spaces{max-height:104px;overflow-y:auto;scrollbar-width:thin}
.sidebar #main-nav #vx-thread-search{min-height:40px!important;padding:8px 11px!important;margin:3px 0 4px!important;border-radius:10px!important}
.sidebar #main-nav #vx-chat-thread-list{max-height:min(34dvh,280px)!important;min-height:35px!important}
.sidebar .vx-advanced-menu{margin:7px 0 4px!important;padding-top:5px!important}
.sidebar #vx-tools-menu .vx-advanced-summary{min-height:42px!important}
.sidebar #vx-tools-menu .vx-ux-tools-search{
  display:block;width:calc(100% - 12px);margin:7px 6px 10px;padding:10px 12px;min-height:40px;
  background:#202023;border:1px solid #424246;border-radius:11px;color:#f5f5f5;
  font-size:13px;box-sizing:border-box
}
.sidebar #vx-tools-menu:not([open]) > :not(summary){display:none!important}
.sidebar #vx-tools-menu .vx-ux-tools-group{padding:3px 0 8px}
.sidebar #vx-tools-menu .vx-ux-tools-group h3{margin:10px 12px 4px;color:#9799a0;font-size:11px;font-weight:580;letter-spacing:.025em;text-transform:none}
.sidebar #vx-tools-menu .vx-ux-tools-group>.nav-item{display:flex!important;min-height:38px!important;width:100%;font-size:12.5px!important;text-align:left}
.sidebar #vx-tools-menu .vx-ux-tools-group>.nav-item[hidden],
.sidebar #vx-tools-menu .vx-ux-tools-group[hidden],
.sidebar #vx-tools-menu .vx-ux-empty-results[hidden]{display:none!important}
.sidebar #vx-tools-menu .vx-ux-empty-results{color:#b4b4bb;padding:10px 13px;font-size:12px}
.sidebar #vx-tools-menu .vx-ux-activity{color:#d4d4d6!important}
.sidebar #main-nav #vx-new-chat{min-height:45px!important;margin:0 0 6px!important;border-radius:12px!important;box-shadow:none!important}
/* The chat is the product. Metadata and source sections remain available on demand. */
#view-chat .vx-chat-feed{gap:18px!important;padding-top:20px!important}
#view-chat .vx-chat-message{gap:6px!important;line-height:1.58!important}
#view-chat .vx-chat-message[data-role="assistant"] .vx-chat-copy{line-height:1.65!important;padding-left:13px!important}
#view-chat .vx-chat-message[data-role="user"] .vx-chat-copy{line-height:1.52!important;padding:10px 14px!important}
#view-chat .vx-chat-sender{font-size:10px!important;letter-spacing:.04em!important}
#view-chat .vx-chat-empty{padding:12px 12px!important}
#view-chat .vx-chat-empty h1{letter-spacing:-.035em!important;line-height:1.18!important;margin:6px 0 8px!important}
#view-chat .vx-prompt-samples{margin-top:15px!important;gap:6px!important}
#view-chat .vx-prompt-samples button{border-radius:12px!important;padding:9px 12px!important;min-height:40px!important}
#view-chat .vx-composer-area{position:relative!important;padding-top:4px!important}
#view-chat #vx-chat-form>.vx-hybrid-controls{position:relative!important;gap:4px 8px!important;border-bottom:0!important;padding:0!important;margin:0 0 5px!important}
#view-chat #vx-chat-form>.vx-hybrid-controls select{min-height:36px!important;border-radius:12px!important}
#view-chat #vx-chat-form>.vx-hybrid-controls>.vx-simple-info{position:static!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
#view-chat #vx-chat-form .vx-simple-info>summary{
  padding:5px 7px!important;min-height:32px!important;border-radius:9px!important;
  color:#b7b7bd!important;font-size:11px!important
}
#view-chat #vx-chat-form .vx-simple-info>summary:hover{background:#29292d}
#view-chat #vx-chat-form .vx-simple-info .vx-ux-options-sheet{
  position:absolute;right:0;bottom:calc(100% + 10px);z-index:65;
  background:var(--vxux-surface);border:1px solid #4c4c50;border-radius:16px;
  padding:14px;width:min(430px,calc(100vw - 28px));max-height:min(60dvh,500px);
  box-shadow:0 12px 40px #000b;overflow-y:auto;overscroll-behavior:contain;
  display:flex;flex-direction:column;gap:8px;box-sizing:border-box
}
#view-chat #vx-chat-form .vx-simple-info:not([open])>.vx-ux-options-sheet{display:none!important}
#view-chat #vx-chat-form .vx-simple-info .vx-ux-options-sheet>*{max-width:100%;min-width:0}
#view-chat #vx-chat-form .vx-simple-info .vx-ux-options-sheet label{display:block;margin:4px 0 6px;font-size:12px}
#view-chat #vx-chat-form .vx-simple-info .vx-ux-options-sheet .vx-autonomy-row,
#view-chat #vx-chat-form .vx-simple-info .vx-ux-options-sheet .vx-action-panel{display:block;max-width:100%;box-sizing:border-box}
#view-chat #vx-chat-form .vx-simple-info .vx-ux-options-sheet .vx-autonomy-row[hidden],
#view-chat #vx-chat-form .vx-simple-info .vx-ux-options-sheet .vx-action-panel[hidden]{display:none!important}
#view-chat #vx-chat-form .vx-simple-info .vx-ux-options-sheet select{max-width:100%}
#view-chat #vx-chat-form>#vx-hybrid-controls>#vx-mission-stop{order:3;min-height:42px!important}
#view-chat .vx-chat-composer{border-radius:20px!important;padding:10px 13px!important}
#view-chat .vx-chat-composer textarea{font-size:16px!important;line-height:1.55!important}
#view-chat .vx-composer-controls{margin-top:2px!important}
#view-chat .vx-simple-options>summary{border-radius:11px!important;font-size:19px!important;font-weight:700!important;letter-spacing:2px!important}
#view-chat .vx-simple-options>summary:hover{background:#343437}
#view-chat .vx-simple-options-content{background:#202024!important;border-color:#4c4c50!important}
#view-chat #vx-chat-submit{min-width:40px!important;min-height:40px!important}
#view-chat .vx-chat-notice{line-height:1.45!important}
@media (min-width:901px){#vx-header-new-chat{display:none!important}}
@media (max-width:900px){
  .sidebar #main-nav #vx-chat-thread-list{max-height:36dvh!important}
  .sidebar #vx-tools-menu .vx-ux-tools-search{font-size:16px}
  #view-chat .vx-composer-area{padding-bottom:8px!important}
  #view-chat #vx-chat-form .vx-simple-info .vx-ux-options-sheet{max-height:min(54dvh,440px)}
  #view-chat .vx-chat-message{font-size:14px!important}
}
@media (max-width:355px){
  #view-chat .vx-chat-composer{padding:8px 10px!important}
  #view-chat #vx-chat-form>.vx-hybrid-controls select{font-size:11px!important}
}
@media (prefers-reduced-motion:reduce){
  .sidebar #main-nav .vx-flow-mainnav .vx-flow-nav{transition:none!important}
}
/* Compact, ChatGPT-style interaction density without copying its visual identity. */
#view-chat #vx-chat-form>.vx-ux-mode-control{
  display:flex;align-items:center;justify-content:flex-start;position:relative;
  min-height:32px;margin:0 0 3px;padding:0
}
#view-chat #vx-chat-form>.vx-ux-mode-control .vx-ux-mode-trigger{
  font-size:12px;font-weight:570;min-height:34px;border-radius:10px;
  color:#dbdbe0;background:#29292c;border:1px solid #424246;
  padding:6px 12px;text-align:left;max-width:100%;white-space:nowrap;
  text-overflow:ellipsis;overflow:hidden
}
#view-chat #vx-chat-form .vx-ux-mode-trigger:hover,
#view-chat #vx-chat-form .vx-ux-mode-trigger[aria-expanded="true"]{
  background:#36363a;color:white;border-color:#68686b
}
#view-chat #vx-chat-form .vx-ux-mode-panel{
  position:absolute;left:0;bottom:calc(100% + 9px);z-index:60;
  display:flex;flex-direction:column;gap:9px;
  width:min(430px,calc(100vw - 28px));max-height:min(62dvh,530px);overflow-y:auto;
  padding:16px;border:1px solid #4a4a50;border-radius:15px;
  box-shadow:0 14px 44px #000a;background:#1d1d20;box-sizing:border-box;
  overscroll-behavior:contain
}
#view-chat #vx-chat-form .vx-ux-mode-panel[hidden]{display:none!important}
#view-chat #vx-chat-form .vx-ux-mode-panel[data-models-unavailable] > :not(.vx-model-availability),
#view-chat #vx-chat-form .vx-model-availability [hidden]{display:none!important}
#view-chat #vx-chat-form .vx-model-availability p{margin:0 0 8px;line-height:1.4}
#view-chat #vx-chat-form .vx-ux-mode-panel>label{display:flex!important;flex-direction:column;gap:5px;min-width:0;font-size:12px;color:#bbbcc3;margin:0!important}
#view-chat #vx-chat-form .vx-ux-mode-panel select{display:block!important;width:100%;min-width:0;min-height:43px!important;font-size:14px}
#view-chat #vx-chat-form .vx-ux-mode-panel>#vx-hybrid-next{font-size:11px;white-space:normal;color:#bcbcc4;line-height:1.4;margin:2px 0}
#view-chat #vx-chat-form .vx-ux-mode-panel>.vx-simple-info{width:100%;min-width:0}
#view-chat #vx-chat-form .vx-ux-mode-panel>.vx-simple-info .vx-ux-options-sheet{
  position:static!important;width:100%!important;max-height:none!important;
  overflow:visible!important;border:0!important;box-shadow:none!important;
  background:transparent!important;padding:9px 0 3px!important;border-radius:0!important
}
#view-chat #vx-chat-form>.vx-hybrid-controls:has(> #vx-mission-stop[hidden]):not(:has(> :not(#vx-mission-stop))){display:none!important}
#view-chat #vx-chat-form>.vx-hybrid-controls:has(> #vx-mission-stop:not([hidden])){display:grid!important;margin:3px 0!important}
#view-chat .vx-chat-composer{padding:10px 13px 9px!important}
.vx-simple-history{display:none!important} /* Sidebar already has conversation search. */
@media(max-width:600px){
  #view-chat #vx-chat-form .vx-ux-mode-panel{max-height:min(55dvh,450px)}
  #view-chat #vx-chat-form .vx-ux-mode-trigger{min-height:34px}
}
/* Visually hidden labels remain associated with inputs for assistive technology. */
#main-nav label.sr-only,
#view-chat label.sr-only{
  position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;border:0!important;
  overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important
}
#view-chat #vx-chat-mic:disabled{display:none!important}
.sidebar .vx-brand-version{display:none!important}

#view-chat #vx-chat-form>.vx-ux-mode-control[hidden]{display:none!important}
/* Dense settings remain fully functional but expose fewer fields at once. */
#view-settings #settings-form>.vx-ux-settings-group,
#view-commander #commander-form>.vx-ux-commander-advanced{
  display:block;margin:3px 0 10px;padding:0;
  border:1px solid #39393d;border-radius:12px;background:#1c1c1e;
  overflow:clip
}
#view-settings #settings-form>.vx-ux-settings-group>summary,
#view-commander #commander-form>.vx-ux-commander-advanced>summary{
  cursor:pointer;list-style:none;display:flex;align-items:center;
  justify-content:space-between;padding:13px 14px;min-height:46px;
  color:#e5e5e8;font-weight:600;font-size:14px
}
#view-settings #settings-form>.vx-ux-settings-group>summary::-webkit-details-marker,
#view-commander #commander-form>.vx-ux-commander-advanced>summary::-webkit-details-marker{display:none}
#view-settings #settings-form>.vx-ux-settings-group>summary::after,
#view-commander #commander-form>.vx-ux-commander-advanced>summary::after{
  content:'⌄';font-size:17px;color:#b4b4ba;margin-left:12px
}
#view-settings #settings-form>.vx-ux-settings-group[open]>summary::after,
#view-commander #commander-form>.vx-ux-commander-advanced[open]>summary::after{transform:rotate(180deg)}
#view-settings #settings-form .vx-ux-settings-body,
#view-commander #commander-form .vx-ux-settings-body{
  display:grid;gap:14px;padding:2px 14px 16px;border-top:1px solid #323236
}
#view-settings #settings-form .vx-ux-settings-body>label,
#view-commander #commander-form .vx-ux-settings-body>label{
  display:flex;flex-direction:column;gap:6px;min-width:0
}
#view-settings #settings-form .vx-ux-settings-body>label.check-row,
#view-commander #commander-form .vx-ux-settings-body>label.check-row{display:flex;flex-direction:row;align-items:center}
#view-settings #settings-form .vx-ux-settings-body>.check-row{min-width:0}
#view-settings #settings-form .vx-ux-settings-body select,
#view-settings #settings-form .vx-ux-settings-body input,
#view-commander #commander-form .vx-ux-settings-body select,
#view-commander #commander-form .vx-ux-settings-body input{max-width:100%;min-width:0;box-sizing:border-box}
#view-settings #settings-form .vx-ux-settings-body>.inline-fields,
#view-commander #commander-form .vx-ux-settings-body>.inline-fields{max-width:100%;min-width:0}
#view-settings #settings-form>.btn[type="submit"],
#view-commander #commander-form>.btn[type="submit"]{min-height:44px}


/* V31 menu refresh — chat-first sidebar, fewer tools, larger conversation area. */
.sidebar #main-nav{display:flex!important;flex-direction:column!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
.sidebar #main-nav .vx-flow-mainnav{order:1!important}
.sidebar #main-nav #vx-new-chat{order:2!important}
.sidebar #main-nav #vx-thread-search{order:4!important}
.sidebar #main-nav #vx-chat-thread-list{order:5!important;max-height:min(48dvh,420px)!important;min-height:220px!important;flex:0 0 auto!important}
.sidebar #main-nav .vx-flow-spaces-block{order:6!important;margin:8px 0 4px!important;padding:8px 0 4px!important;border-top:1px solid #2e2e33!important;border-bottom:0!important}
.sidebar #main-nav .vx-flow-spaces-block[data-vx-compact='true'] .vx-flow-heading{margin-bottom:6px!important}
.sidebar #main-nav .vx-flow-spaces-block[data-vx-compact='true'] .vx-flow-heading span{font-size:10px!important;letter-spacing:.12em!important;color:#93959b!important}
.sidebar #main-nav .vx-flow-spaces{max-height:76px!important;overflow-y:auto!important}
.sidebar #main-nav .vx-flow-space-item,.sidebar #main-nav .vx-flow-space-card,.sidebar #main-nav .vx-flow-space-chip{min-height:auto!important}
.sidebar #main-nav #vx-tools-menu{order:7!important;margin:6px 0 0!important;padding-top:6px!important;border-top:1px solid #2e2e33!important}
.sidebar #vx-tools-menu:not([open])>.vx-ux-tools-list{display:none!important}
.sidebar #vx-tools-menu .vx-ux-tools-list{display:grid!important;gap:3px!important;padding:8px 0 2px!important}
.sidebar #vx-tools-menu .vx-ux-tools-list>.nav-item{display:flex!important;min-height:38px!important;padding:9px 11px!important;font-size:12.5px!important}
.sidebar #vx-tools-menu .vx-ux-tools-list>.nav-item[hidden]{display:none!important}
#main-nav #vx-tools-menu .nav-item[hidden]{display:none!important}
.sidebar #vx-tools-menu .vx-advanced-summary{min-height:40px!important}
.sidebar .vx-settings-item{order:8!important;margin-top:4px!important}
@media (max-width:900px){
  .sidebar #main-nav #vx-chat-thread-list{max-height:min(42dvh,360px)!important;min-height:180px!important}
}
@media (max-width:600px){
  .sidebar #main-nav #vx-chat-thread-list{max-height:min(40dvh,320px)!important;min-height:160px!important}
}

/* V42: technical project selection remains available only on demand. */
#view-chat .vx42-source-picker{width:100%;border-top:1px solid #414146;padding-top:8px}
#view-chat .vx42-source-picker>summary{padding:10px 5px;cursor:pointer;color:#bbbcc3;font-size:12px}
#view-chat .vx42-source-picker>label{display:flex!important;flex-direction:column;gap:6px;margin:4px 0 10px;color:#c9c9cf;font-size:12px}
#view-chat .vx42-source-picker select{min-height:42px;width:100%}

/* P5 Focus: remove duplicate entry points while keeping their handlers installed. */
#main-nav #practice-main-menu[hidden],#main-nav #owner-check-menu[hidden]{display:none!important}
#view-settings .vx-ux-settings-guide{margin:0 0 12px;color:#a5a5ad;font-size:13px;line-height:1.55}
#view-settings .vx-ux-settings-group>summary{scroll-margin-top:76px}
#view-settings .vx-ux-settings-group summary:focus-visible{outline:2px solid #e2e6f2;outline-offset:-2px}
#view-settings #settings-form>.vx-ux-settings-group:not([open])>.vx-ux-settings-body{display:none!important}
/* P5: all advanced routes remain discoverable, but rarely used entries are folded. */
.sidebar #vx-tools-menu .vx-ux-tools-rare {border-top:1px solid #414149;padding-top:6px;margin-top:4px;min-width:0}
.sidebar #vx-tools-menu .vx-ux-tools-rare>summary {padding:9px 12px;min-height:40px;border-radius:9px;cursor:pointer;font-size:12px;color:#bbc0cd;font-weight:650}
.sidebar #vx-tools-menu .vx-ux-tools-rare>summary:focus-visible {outline:2px solid #ddd;outline-offset:1px}
.sidebar #vx-tools-menu .vx-ux-tools-rare>.nav-item {display:flex!important;width:100%;min-height:39px!important;padding:9px 11px 9px 22px!important;font-size:12.5px!important}
.sidebar #vx-tools-menu .vx-ux-tools-rare>.nav-item[hidden] {display:none!important}
.sidebar #vx-tools-menu .vx-ux-tools-rare[hidden] {display:none!important}

/* Inline MCP approval card: the only surface for a pending MCP query (no side panels). */
.vx-inline-mcp{display:grid;gap:8px;margin:8px 0;max-width:100%}
.vx-inline-mcp:empty{display:none}
.vx-inline-mcp-card{box-sizing:border-box;max-width:100%;padding:12px;border:1px solid var(--line,#3a3f4b);border-radius:12px;background:var(--panel,rgba(255,255,255,.04));display:grid;gap:8px}
.vx-inline-mcp-card .vx-inline-mcp-state{margin:0;overflow-wrap:anywhere}
.vx-inline-mcp-card[data-status="failed"] .vx-inline-mcp-state{color:var(--danger,#ff6b6b)}
.vx-inline-mcp-card pre{margin:0;max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.vx-inline-mcp-card button{min-height:44px}

/* Keep the primary controls accessible above the response on mobile. */
.vx-inline-mcp-controls{display:flex;flex-wrap:wrap;gap:8px}
.vx-inline-mcp-state:empty,.vx-inline-mcp-text[hidden]{display:none}
.vx-inline-mcp-text{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.55}
.vx-inline-mcp-text :is(p,ul,ol,blockquote,pre){margin:0 0 8px}
.vx-inline-mcp-copy-field{width:100%;min-height:100px;box-sizing:border-box}

/* VYRONTA P12 — ChatGPT-like simplicity, VYRONTA identity. No engine changes. */
.vx-voice-p12-ready #vx-voice-comfort{display:none!important}
.vx-voice-p12-ready #vx-chat-form .vx-voice-preferences{display:none!important}
#vx-p12-voice-actions{display:inline-flex;align-items:center;gap:6px;min-width:0;flex:0 0 auto}
#vx-p12-voice-actions #vx-chat-mic,#vx-p12-voice-actions #vx-voice-guided{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-width:40px;min-height:40px;max-width:100%;padding:7px 9px;
  border:1px solid rgba(255,255,255,.16);border-radius:13px;
  background:rgba(255,255,255,.055);color:#f6f6f7;cursor:pointer;
}
#vx-p12-voice-actions #vx-chat-mic:disabled{opacity:.46;cursor:not-allowed}
#vx-p12-voice-actions #vx-voice-guided{font-size:0!important}
#vx-p12-voice-actions #vx-voice-guided::after{content:'Voz';font-size:13px;font-weight:600;line-height:1}
#vx-p12-voice-actions #vx-voice-guided[aria-pressed="true"]{
  color:#fff;background:rgba(255,255,255,.17);border-color:rgba(255,255,255,.45)
}
#vx-p12-voice-actions #vx-voice-guided[aria-pressed="true"]::after{content:'Salir de voz'}
#vx-p12-voice-actions #vx-voice-stop:not([hidden]){
  display:inline-flex;align-items:center;justify-content:center;min-height:40px;
  padding:7px 10px;border-radius:12px
}
.vx-voice-p12-ready #view-chat .vx-chat-tools{
  display:flex!important;flex-wrap:wrap;align-items:center;gap:7px;
  visibility:visible!important;opacity:1!important;max-width:100%;
}
.vx-voice-p12-ready #view-chat .vx-chat-tools .vx-p12-listen{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:44px;height:44px;min-height:44px;padding:0;
  color:#c6c6ca;border:0;
  border-radius:50%;background:transparent;cursor:pointer;
  font-size:13px;line-height:1.3;white-space:nowrap;
}
.vx-p12-listen svg{width:20px;height:20px;pointer-events:none}
.vx-p12-listen .vx-stop,.vx-p12-listen[aria-pressed="true"] .vx-speaker{display:none}
.vx-p12-listen[aria-pressed="true"] .vx-stop{display:block}
.vx-voice-p12-ready #view-chat .vx-chat-tools .vx-p12-listen:hover{background:#303034}
.vx-voice-p12-ready #view-chat .vx-chat-tools button:focus-visible,
.vx-voice-p12-ready #vx-p12-voice-actions button:focus-visible{
  outline:2px solid #fafafa;outline-offset:3px
}
#vx-p12-settings-voice{box-sizing:border-box;min-width:0;margin-block:16px}
#vx-p12-settings-voice h2{font-size:1.06rem;line-height:1.35;margin:0 0 5px}
#vx-p12-settings-voice>p{font-size:.88rem;line-height:1.5;color:#c9c9ca;margin:0 0 12px}
#vx-p12-settings-voice .vx-voice-preferences{display:block;max-width:100%;width:100%}
#vx-p12-settings-voice .vx-voice-pref-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding-block:12px}
#vx-p12-settings-voice select{max-width:min(100%,400px)!important;width:100%;box-sizing:border-box}
#vx-p12-settings-voice .vx-p12-voice-advanced{min-width:0;padding-top:6px;border-top:1px solid rgba(255,255,255,.1)}
#vx-p12-settings-voice .vx-p12-voice-advanced>summary{cursor:pointer;color:#cfcfd1;list-style:none;padding:8px 0}
#vx-p12-settings-voice .vx-p12-voice-advanced>summary::-webkit-details-marker{display:none}
#vx-p12-settings-voice .vx-p12-voice-advanced-body{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;padding:7px 0}
#vx-p12-settings-voice .vx-p12-voice-advanced-body label{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:400px){
  #vx-p12-voice-actions{gap:4px}
  #vx-p12-voice-actions #vx-chat-mic,#vx-p12-voice-actions #vx-voice-guided{min-width:36px;min-height:38px;padding:6px}
  #vx-p12-voice-actions #vx-voice-guided::after{font-size:12px}
  #vx-p12-voice-actions #vx-voice-guided[aria-pressed="true"]{max-width:92px}
  #vx-p12-settings-voice{padding:12px}
}


.vx-team-launch{background:transparent;color:inherit;border:1px solid #6666;border-radius:10px;padding:8px 12px;min-height:44px;font:inherit;font-size:12px}
.vx-team-launch[hidden]{display:none}
.vx-team-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;background:#191a20;color:#eee;border:1px solid #656577;border-radius:20px;padding:20px;font:inherit}
.vx-team-dialog::backdrop{background:#0009}
.vx-team-header,.vx-team-footer{display:flex;align-items:center;gap:12px;justify-content:space-between}
.vx-team-header{position:sticky;top:-20px;z-index:1;background:#191a20;margin:-20px -20px 12px;padding:16px 20px;border-bottom:1px solid #656577}
.vx-team-header h2{margin:0;font-size:23px}.vx-team-header button{font-size:25px;min-width:44px}
.vx-team-dialog p{font-size:13px;line-height:1.55;color:#c1c1cb}
.vx-team-members{display:grid;gap:8px;margin:14px 0}
.vx-team-member{display:flex!important;align-items:center;gap:12px;background:#24252d;border:1px solid #6665;border-radius:12px;padding:12px}
.vx-team-member:has(input:checked){border-color:#b7adff;background:#302d43}.vx-team-member input,.vx-team-consent input{width:20px!important;height:20px;flex-shrink:0;accent-color:#c6beff}
.vx-team-member small{display:block;color:#b6b6c4;font-size:11px;margin-top:4px}
.vx-team-dialog select{display:block;width:100%;min-height:44px;background:#25262d;color:inherit;border:1px solid #8886;border-radius:10px;padding:8px;margin:6px 0 14px}
.vx-team-dialog label[hidden]{display:none}.vx-team-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.5}
.vx-team-dialog button{min-height:44px;border:1px solid #8885;background:#292a33;color:inherit;border-radius:10px;padding:8px 12px;cursor:pointer}
.vx-team-dialog button:disabled{opacity:.45;cursor:default}.vx-team-footer{flex-wrap:wrap}.vx-team-footer #vx-team-save{background:#c6beff;color:#191724;flex:1}.vx-team-footer #vx-team-disable{font-size:11px}
.vx-team-dialog :focus-visible{outline:2px solid #c6beff;outline-offset:2px}
.vx-team-budget-presets{display:flex;gap:8px;margin:10px 0}.vx-team-budget-presets button{flex:1}

/* Compact, single-screen team setup. */
.vx-team-dialog{width:min(520px,calc(100vw - 20px));padding:18px;background:#17181c}
.vx-team-dialog input[type=number]{box-sizing:border-box;width:100%;min-height:46px;background:#25262d;color:inherit;border:1px solid #8886;border-radius:10px;padding:10px;margin:6px 0 14px;font:inherit}
.vx-team-dialog>details{margin-top:18px;border-top:1px solid #fff2;padding-top:14px}.vx-team-dialog>details summary{cursor:pointer;min-height:36px}
.vx-team-dialog .vx-model-family{border:1px solid #fff2;border-radius:12px;overflow:hidden}.vx-team-dialog .vx-model-family summary{padding:12px;cursor:pointer}
.vx-team-member{margin:4px 8px 8px;padding:10px}.vx-team-header h2{font-size:22px}.vx-team-footer{position:sticky;bottom:-18px;background:#17181c;padding:12px 0;margin-top:10px}.vx-team-footer #vx-team-save{width:100%;min-height:48px;background:#e8e7ed;color:#17181c;font-weight:600}

/* V27: compact opt-in panel inside the existing chat, no additional page. */
.vx27-panel{box-sizing:border-box;width:100%;max-width:100%;padding:12px 14px;margin:8px 0;border:1px solid #3a3a3b;border-radius:15px;background:#19191a;color:#e8e8e8;max-height:min(52vh,460px);overflow-y:auto;font-size:.82rem;}
.vx27-panel[hidden]{display:none!important}
.vx27-panel .vx27-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.vx27-panel .vx27-header strong{font-size:.93rem}
.vx27-panel p,.vx27-panel small{color:#b8b8bb;line-height:1.45;margin:8px 0;overflow-wrap:anywhere}
.vx27-panel summary{cursor:pointer;font-weight:650;padding:8px 0}
.vx27-panel input:not([type=file]),.vx27-panel input[type=file],.vx27-panel textarea{box-sizing:border-box;display:block;width:100%;max-width:100%;padding:9px 10px;margin:7px 0;border:1px solid #525254;border-radius:10px;background:#242426;color:#f0f0f0;font-size:16px}
.vx27-panel textarea{min-height:64px;resize:vertical}
.vx27-panel label{display:block;color:#dadade;margin-top:10px}
.vx27-panel select{box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;padding:9px 10px;margin:7px 0;border:1px solid #525254;border-radius:10px;background:#242426;color:#f0f0f0;font-size:16px}
.vx27-panel button{border:1px solid #555557;border-radius:9px;background:#29292a;color:#f1f1f1;min-height:37px;padding:7px 10px;cursor:pointer}
.vx27-panel button:disabled{opacity:.4;cursor:default}
.vx27-panel button:focus-visible,.vx27-panel input:focus-visible,.vx27-panel textarea:focus-visible{outline:2px solid #d4d4d4;outline-offset:2px}
.vx27-panel .vx27-actions{display:flex;flex-wrap:wrap;gap:8px}
.vx27-panel .vx27-zone{padding:4px 0 10px;border-bottom:1px solid #353537}
.vx27-panel pre{white-space:pre-wrap;word-break:break-word;max-height:160px;overflow:auto;background:#101011;padding:10px;border-radius:8px;font-size:.7rem}
.vx27-panel #vx27-status[data-error=true]{color:#ffada9}
#vx27-attach,#vx27-self{white-space:nowrap}
@media (max-width:480px){.vx27-panel{padding:10px;max-height:43vh}.vx27-panel .vx27-actions button{flex:1 1 auto}}

/* Compact conversational preparation for VYRONTA's existing mission workflow. */
.vx-mission-workflow{background:#17191c;border:1px solid #34383d;border-radius:15px;padding:14px 16px;margin:10px 0;color:#eceff1;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.vx-mission-workflow[hidden],.vx-mission-workflow [hidden]{display:none!important}
.vx-mw-heading,.vx-mw-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.vx-mw-heading h3{font-size:16px;line-height:1.25;margin:3px 0 2px;font-weight:650}
.vx-mw-eyebrow{font-size:10px;letter-spacing:.08em;color:#a7afb8;font-weight:650}
.vx-mw-close{flex:0 0 auto;font-size:20px!important;padding:4px 10px!important;min-height:32px!important}
.vx-mw-task{font-size:13px;line-height:1.5;color:#e5e6e9;border-left:2px solid #5e6875;padding:4px 0 4px 10px;margin:10px 0;white-space:pre-wrap}
.vx-mw-receipt{display:flex;flex-wrap:wrap;gap:7px;font-size:11px;color:#bfc7cd}
.vx-mw-receipt span{border:1px solid #3b4047;border-radius:99px;padding:6px 9px;background:#202227;max-width:100%}
.vx-mission-workflow label{display:block;margin:11px 0;font-size:12px;color:#dde0e5}
.vx-mission-workflow select,.vx-mission-workflow textarea,.vx-mission-workflow input[type=number]{display:block;width:100%;box-sizing:border-box;background:#202327;color:#eee;border:1px solid #4b5157;border-radius:8px;padding:9px;font:inherit;font-size:13px;margin-top:6px;min-height:40px}
.vx-mission-workflow fieldset{border:1px solid #34383d;border-radius:9px;margin:10px 0;padding:9px}
.vx-mission-workflow fieldset label{display:flex;gap:8px;align-items:center;margin:8px 0}
.vx-mission-workflow input[type=checkbox]{accent-color:#b8c3d3;min-width:17px;min-height:17px}
.vx-mw-cloud-notice{border-top:1px solid #393c42;margin-top:12px;padding-top:8px}
.vx-mw-cloud-notice p,.vx-mw-note{font-size:12px;line-height:1.5;color:#adb6c0}
.vx-mw-cloud-notice .vx-mw-checkbox{display:flex;gap:8px;align-items:flex-start}
.vx-mw-actions{justify-content:flex-start;margin-top:14px;flex-wrap:wrap}
.vx-mission-workflow button,.vx-mission-entry{background:#292d31;color:#f5f5f5;border:1px solid #555b62;border-radius:9px;padding:9px 12px;cursor:pointer;font:inherit;font-size:12px}
.vx-mission-workflow .vx-mw-primary{background:#e6e7e9;color:#17191c;border-color:#e6e7e9;font-weight:700}
.vx-mission-workflow button:disabled{opacity:.48;cursor:wait}
.vx-mission-entry{border:1px solid #42464b;background:#232529;padding:7px 10px;white-space:nowrap}
.vx-mw-status{font-size:12px;line-height:1.45;margin:9px 0 2px;color:#c7d0d9;min-height:17px}
.vx-mission-workflow details{margin-top:10px}
.vx-mission-workflow details>summary{font-size:12px;color:#b9c1c9;cursor:pointer;padding:6px 0}
.vx-mission-inline-approvals{max-width:100%;margin:10px 0;background:#17191c;border-radius:12px;padding:10px;overflow-wrap:anywhere}
.vx-mission-inline-approvals pre{white-space:pre-wrap;max-height:260px;overflow:auto}
@media(max-width:480px){.vx-mission-workflow{padding:12px;margin:7px 0}.vx-mw-heading h3{font-size:15px}.vx-mw-actions .vx-mw-primary{flex:1;text-align:center;min-height:42px}.vx-mission-workflow fieldset label{display:flex}}
@media(prefers-reduced-motion:reduce){.vx-mission-workflow *{scroll-behavior:auto}}
/* The single 'Opciones' control replaces the redundant details disclosure. */
.vx-mission-workflow #vx-mw-options>summary{display:none}

/* Galaxy/WebView scroll repair: mission card lives at document.body level.
   The overlay itself scrolls, so no nested chat composer can trap swipes. */
.vx-mw-overlay {
  position:fixed; inset:0; z-index:2147483000; display:flex;
  justify-content:center; align-items:flex-start;
  box-sizing:border-box; width:100%; height:100%; height:100dvh;
  padding:max(12px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
          max(18px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; touch-action:pan-y;
  -webkit-overflow-scrolling:touch; background:rgba(0,0,0,.83);
  scrollbar-gutter:stable;
}
.vx-mw-overlay[hidden] { display:none!important; }
body.vx-mw-open {overflow:hidden!important;}
.vx-mw-overlay > .vx-mission-workflow {
  display:block; flex:0 1 620px; width:100%; max-width:620px; max-height:none;
  min-height:0; margin:auto 0; overflow:visible; position:relative;
  box-shadow:0 18px 55px rgba(0,0,0,.65);
}
.vx-mw-overlay .vx-mw-close {min-width:42px; min-height:42px;}
@media(max-width:480px) {
  .vx-mw-overlay {
    padding:calc(env(safe-area-inset-top) + 10px) 9px
            calc(env(safe-area-inset-bottom) + 20px);
  }
  .vx-mw-overlay > .vx-mission-workflow {margin:auto 0;}
}

.vx-mission-inline-approvals[open]>summary{position:sticky;top:-10px;z-index:1;background:#17191c;min-height:44px;box-sizing:border-box;align-content:center}
.vx-mission-inline-approvals>button{min-height:44px;margin-top:8px}

/* Scoped, mobile-first attachment review; separate from mission dialog. */
.vx-update-attach{background:transparent;border:1px solid #444a51;color:#e0e3e5;border-radius:9px;padding:8px 11px;font:inherit;font-size:12px;min-height:36px;cursor:pointer}
.vx-update-attach:disabled{opacity:.5}
.vx-update-backdrop[hidden]{display:none!important}
.vx-update-backdrop{position:fixed;inset:0;z-index:2147483001;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;background:rgba(0,0,0,.86);display:flex;align-items:flex-start;justify-content:center;padding:calc(env(safe-area-inset-top) + 12px) 12px calc(env(safe-area-inset-bottom) + 20px);height:100dvh}
body.vx-update-open{overflow:hidden!important}
.vx-update-dialog{flex:0 1 570px;box-sizing:border-box;width:100%;margin:auto 0;background:#17191c;color:#e9ecef;border:1px solid #40454c;border-radius:15px;padding:15px;overflow-wrap:anywhere}
.vx-update-header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.vx-update-header h3{font-size:16px;margin:0}
.vx-update-close{font-size:20px!important;min-width:40px;min-height:40px}
.vx-update-dialog button{cursor:pointer;border-radius:9px;padding:9px 12px;background:#25292d;color:#f5f5f5;border:1px solid #5b636b;font:inherit;font-size:12px}
.vx-update-dialog button:disabled{opacity:.5;cursor:default}
.vx-update-stage:not(:disabled){background:#e9e9ed;color:#111;border-color:#e9e9ed;font-weight:700}
.vx-update-lead,.vx-update-status,.vx-update-details{font-size:12px;line-height:1.5}
.vx-update-lead{color:#acb4c0}
.vx-update-details{max-width:100%;overflow-wrap:anywhere}
.vx-update-details ul{padding-left:20px}
.vx-update-details li{margin-bottom:6px;overflow-wrap:anywhere}
.vx-update-conflict{color:#f5b5ae}
.vx-update-fingerprint{font-family:ui-monospace,monospace;font-size:10px;word-break:break-all;color:#aeb7c3}
.vx-update-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
@media(max-width:480px){.vx-update-dialog{padding:12px}.vx-update-actions>*{flex:1;min-height:42px}}

.vx-update-paste{width:100%;min-height:7rem;margin:0.5rem 0;font:inherit;font-family:ui-monospace,Consolas,monospace;}
.vx-update-summary{white-space:pre-wrap;font-size:0.9rem;max-height:16rem;overflow:auto;padding:0.6rem;}
.vx-update-risk{opacity:0.9;}

/* «Ver copia preparada» inside «Parches desde el chat» (selfupdate repair 2026-11-11). */
.vx-update-copies{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0;padding-top:8px;border-top:1px solid #40454c}
.vx-update-copies .vx-update-lead{flex:1 1 100%;margin:0}
.vx-update-copy-select,.vx-update-copy-id{flex:1 1 220px;min-height:36px;box-sizing:border-box;background:#101214;color:#e9ecef;border:1px solid #5b636b;border-radius:9px;padding:6px 8px;font:inherit;font-size:12px}
.vx-update-copy-id{font-family:ui-monospace,Consolas,monospace}
.vx-update-copy{margin-top:10px;padding:10px;border:1px solid #40454c;border-radius:12px;font-size:12px;line-height:1.5}
.vx-update-copy[hidden]{display:none!important}
.vx-update-copy h4{margin:0 0 6px;font-size:14px}
.vx-update-row{margin:3px 0;overflow-wrap:anywhere}
.vx-update-diff summary{cursor:pointer;margin:6px 0}

/* Stale-tab notice (vyronta-build-check.js): the page JS is older than the server's. */
.vx-build-stale{position:fixed;left:50%;top:calc(env(safe-area-inset-top) + 10px);transform:translateX(-50%);z-index:2147483002;display:flex;align-items:center;gap:10px;
  width:min(540px,calc(100vw - 24px));box-sizing:border-box;padding:10px 12px;border-radius:13px;background:#2a2410;border:1px solid #9c8436;color:#f6ecc8;font-size:13px;line-height:1.4;box-shadow:0 10px 30px #000a}
.vx-build-stale[hidden]{display:none!important}
.vx-build-stale span{flex:1 1 auto}
.vx-build-stale button{flex:0 0 auto;min-height:40px;padding:0 14px;border-radius:10px;border:1px solid #e9d79a;background:#e9d79a;color:#16130a;font-weight:700;font-size:13px;cursor:pointer}

/* «Solicitar pruebas»: feedback next to the buttons and the approval card (phase 4). */
.vx-update-action-note{margin:8px 0 0;font-size:12px;line-height:1.45;color:#cfd5dc}
.vx-update-action-note[data-kind=ok]{color:#bfe8c6}
.vx-update-approval{margin-top:10px;padding:10px;border:1px solid #9c8436;border-radius:12px;background:#1f1b10}
.vx-update-approval[hidden]{display:none!important}
.vx-update-approval h4{margin:0 0 6px;font-size:14px}

/* Mobile patch-review actions: avoid five compressed buttons in one row.
   This is presentation only; leave permissions, disabled states and handlers intact. */
@media (max-width: 600px) {
  .vx-update-copy > .vx-update-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    align-items: stretch;
  }
  .vx-update-copy > .vx-update-actions > button {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    min-height: 52px;
    padding: 10px 8px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: center;
  }
  /* Restore exists only after installation and deserves its own clear row. */
  .vx-update-copy > .vx-update-actions > button:nth-child(n+5) {
    grid-column: 1 / -1;
  }
  .vx-update-copy > .vx-update-actions > button:focus-visible {
    outline: 2px solid #e9e9ed;
    outline-offset: 2px;
  }
}


/* V37.1 — Mobile chat-first view: no duplicated bottom navigation.
   Keep the existing sidebar routes, native device safe area, and all update
   approvals unchanged. Explicit main heights prevent the older 58px dock
   reservation from surviving a stylesheet cascade or viewport resize. */
@media screen and (max-width: 900px) {
  :root { --vf-dock: 0px; }
  body .vx-flow-mobile-dock,
  body .mobile-quick-dock { display: none !important; }
  body .app-shell:not(.hidden) {
    padding-bottom: 0 !important;
    height: calc(100dvh - env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
  }
  body .app-shell:not(.hidden) > .main-wrap {
    height: calc(100dvh - env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
  }
}


/* V38 — Remove double reservation for Android's bottom safe area.
   100dvh is the viewport height; the composer alone protects the inset.
   Keep V37's hidden mobile dock and V36's approval button grid unchanged. */
@media screen and (max-width: 900px) {
  body .app-shell:not(.hidden) {
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }
  body .app-shell:not(.hidden) > .main-wrap {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
  }
  body .app-shell:not(.hidden) #view-chat.active-view .vx-composer-area {
    padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }
}

/* V39 — Mobile chat bottom anchor. Do not cover the native Android navigation
   area. V38 removed the duplicate safe-area subtraction; this closes the
   remaining nested-flex height gap and keeps the composer in normal flow so
   visual viewport/keyboard resizes do not turn into a fixed overlay.
   Install with a versioned stylesheet URL to avoid reusing a stale V37/V38 CSS. */
@media screen and (max-width: 900px) {
  body .app-shell:not(.hidden) > .main-wrap {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    min-height: 0 !important;
  }
  body .app-shell:not(.hidden) > .main-wrap > main:has(#view-chat.active-view) {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  body .app-shell:not(.hidden) #view-chat.active-view {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body .app-shell:not(.hidden) #vx-chat-center {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  body .app-shell:not(.hidden) #view-chat.active-view .vx-conversation-scroller {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }
  body .app-shell:not(.hidden) #view-chat.active-view .vx-composer-area {
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }
}

/* V39.1 — Android with a separately displayed OS navigation bar.
   The viewport already excludes the OS bar on the affected Galaxy. Cap only
   the *composer padding*, not body height; otherwise env(safe-area-inset-bottom)
   reserves the same navigation space twice. Other platforms retain V39 rules.
   This is opt-in by the Android detection in vyronta-composer-layout.js.
*/
@media screen and (max-width: 900px) {
  html.vx-android-native-nav body .app-shell:not(.hidden) #view-chat.active-view .vx-composer-area {
    padding-bottom: min(12px, max(8px, env(safe-area-inset-bottom))) !important;
  }
}

/* Post-restart receipt: visible outside the update panel, never a substitute
   for the authenticated server status. */
.vx-update-finish-notice[hidden]{display:none!important}
.vx-update-finish-notice{position:fixed;z-index:2147483003;top:calc(env(safe-area-inset-top) + 12px);left:12px;right:12px;max-width:580px;margin-inline:auto;display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #5d6874;border-radius:12px;background:#202730;color:#f3f5f7;box-shadow:0 12px 32px #000b;font-size:13px;line-height:1.45}
.vx-update-finish-notice[data-kind=ok]{border-color:#5e9b6a;background:#17241b}
.vx-update-finish-notice[data-kind=warning]{border-color:#ae8f49;background:#292313}
.vx-update-finish-notice>span{flex:1;min-width:0}
.vx-update-finish-notice button{flex-shrink:0;background:#343b44;border:1px solid #737c86;border-radius:9px;color:white;padding:8px 10px;min-height:40px}
.vx-update-offline{color:#e8c98a;font-size:12px;line-height:1.5}

/* Owner-reviewed private-inbox cleanup; scroll within the modal on Android. */
.vx-update-inbox{margin:10px 0;border:1px solid #464c55;border-radius:12px;padding:10px;background:#1e2228}
.vx-update-inbox>summary{cursor:pointer;font-size:13px;font-weight:650;min-height:30px}
.vx-update-inbox-list{max-height:min(37dvh,310px);overflow-y:auto;overscroll-behavior:contain;border:1px solid #3b424c;border-radius:9px;margin:10px 0;padding:2px 8px}
.vx-update-inbox-row{display:flex;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid #343a43;min-height:48px}
.vx-update-inbox-row:last-child{border-bottom:0}
.vx-update-inbox-row>input{flex:0 0 auto;width:20px;height:20px;accent-color:#d4d8df}
.vx-update-inbox-row>input:disabled{opacity:.45}
.vx-update-inbox-file{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.vx-update-inbox-file strong{font-size:12px;font-weight:600;color:#eef0f4}
.vx-update-inbox-file small{font-size:11px;color:#b5bdc8}
.vx-update-inbox-actions{display:flex;gap:8px;flex-wrap:wrap}
.vx-update-inbox #vx-update-inbox-delete:not(:disabled){border-color:#c99797;color:#ffcdcd}

/* Contadores discretos: pequeños, alineados a la derecha, sin desplazar el diseño. */
.vx-char-counter{display:block;margin:2px 4px 0 auto;font-size:11px;line-height:1.3;text-align:right;
  opacity:.62;font-variant-numeric:tabular-nums;pointer-events:none;user-select:none}
.vx-char-counter[data-state="near"]{opacity:.9;color:#e0a43a}
.vx-char-counter[data-state="full"]{opacity:1;color:#ff6b6b;font-weight:600}
#vx-chat-form .vx-char-counter{margin:0 12px 2px auto}
.vx-owner-instructions textarea{width:100%;min-height:120px;box-sizing:border-box;resize:vertical}
.vx-owner-instructions-actions{display:flex;gap:10px;align-items:center;margin:8px 0}

/* Tarjeta de programación: compacta y legible en Android WebView. */
.vx-selfprog{margin:8px 0;padding:12px 14px;border:1px solid rgba(255,255,255,.12);border-radius:14px;
  background:rgba(20,22,26,.92);font-size:14px;line-height:1.4}
.vx-selfprog[hidden]{display:none}
.vx-sp-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline;flex-wrap:wrap}
.vx-sp-eyebrow{font-size:11px;letter-spacing:.08em;opacity:.7}
.vx-sp-step{font-size:12px;opacity:.85}
.vx-sp-message{margin:6px 0}
.vx-sp-diff pre{max-height:40vh;overflow:auto;font-size:12px;white-space:pre-wrap;word-break:break-word}
.vx-sp-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.vx-sp-primary,.vx-sp-secondary{min-height:44px;padding:0 16px;border-radius:10px;font-size:15px}
.vx-sp-primary{font-weight:600}
.vx-sp-status{margin:6px 0 0;font-size:12px;opacity:.85}
.vx-sp-advanced{margin-top:6px;font-size:12px;opacity:.75}
@media (max-width:640px){.vx-sp-primary{flex:1 1 100%}.vx-sp-secondary{flex:1 1 100%}}

/* Compact review: status and next action; technical evidence stays folded. */
.vx-sp-consent{font-size:12px;color:#b9bdc7;margin:6px 0}
.vx-sp-step{padding:3px 8px;border-radius:20px;background:rgba(145,137,210,.13);color:#d5d0f6}
.vx-sp-diff{margin-top:8px;font-size:13px}
.vx-sp-diff summary,.vx-sp-advanced summary{cursor:pointer;min-height:32px;display:list-item}
.vx-sp-diff pre:empty,.vx-sp-diff p:empty,.vx-sp-status:empty{display:none}
.vx-sp-primary{background:#c3c0ed;color:#15141b;border:1px solid transparent}
.vx-sp-secondary{background:transparent;border:1px solid rgba(255,255,255,.15);color:inherit}
.vx-sp-primary:disabled{opacity:.55}
.vx-sp-actions:has(.vx-sp-primary[hidden]){margin-top:0}
.vx-sp-advanced button{margin:6px 5px 0 0;font-size:12px}

@media (max-width:640px){
 .vx-sp-actions>.vx-sp-primary{flex:1 1 150px}
 .vx-sp-actions>.vx-sp-secondary{flex:0 0 auto;padding:0 12px;font-size:13px}
}

/* Task summary stays one compact row; details never change execution state. */
.vx-selfprog{padding:4px 10px}
.vx-sp-head{flex-wrap:nowrap;align-items:center;gap:6px;min-height:44px}
.vx-sp-head .vx-sp-step{background:transparent;padding:0;flex:1;min-width:0;font-size:13px}
#vx-sp-toggle,#vx-sp-dismiss{background:transparent;color:inherit;border:0;min-height:44px;cursor:pointer}
#vx-sp-toggle{font-size:12px;padding:0 6px;white-space:nowrap}
#vx-sp-dismiss{font-size:24px;min-width:44px;padding:0}
#vx-sp-body[hidden]{display:none!important}
#vx-sp-body{padding:4px 2px 8px}
#vx-sp-toggle:focus-visible,#vx-sp-dismiss:focus-visible{outline:2px solid #c3c0ed;outline-offset:-2px;border-radius:8px}

.vx-sp-changes{margin:8px 0;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#1c1e23;overflow:hidden}
.vx-sp-changes[hidden],#vx-sp-copy-changes[hidden]{display:none}
.vx-sp-changes-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px;border-bottom:1px solid rgba(255,255,255,.10)}
#vx-sp-copy-changes{min-height:44px;padding:0 8px;background:transparent;border:0;color:inherit;cursor:pointer;font:inherit}
#vx-sp-copy-changes:focus-visible{outline:2px solid #c3c0ed;outline-offset:-2px;border-radius:8px}
#vx-sp-diff-text{margin:0;padding:10px;max-height:34vh;overflow:auto;user-select:text}
#vx-sp-copy-status:not(:empty){margin:0;padding:6px 10px;font-size:12px}

/* VYRONTA chat-first · pantalla principal simple. */
#view-chat .vx-chat-first .vx-composer-controls,
body.vx-chat-first #view-chat .vx-composer-controls{position:relative;flex-wrap:nowrap!important;align-items:center!important}
body.vx-chat-first #view-chat .vx-composer-left{flex-wrap:nowrap!important;flex:1 1 auto;gap:6px!important;align-items:center}
body.vx-chat-first .vx-cf-menu{position:static}
body.vx-chat-first .vx-cf-menu>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;
  justify-content:center;border-radius:12px;border:1px solid #424246;background:#29292c;color:#e6e6ea;font-size:14px;font-weight:600;padding:0 12px;box-sizing:border-box}
body.vx-chat-first .vx-cf-menu>summary::-webkit-details-marker{display:none}
body.vx-chat-first .vx-cf-menu[open]>summary,body.vx-chat-first .vx-cf-menu>summary:hover{background:#36363a;border-color:#68686b;color:#fff}
body.vx-chat-first .vx-cf-attach>summary{font-size:19px;padding:0;width:44px}
body.vx-chat-first .vx-cf-current{font-weight:500;font-size:11px;color:#a9a9b2;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.vx-chat-first .vx-cf-menu-body{position:absolute;left:0;bottom:calc(100% + 10px);z-index:62;display:flex;flex-direction:column;gap:10px;
  width:min(440px,calc(100vw - 28px));max-height:min(66dvh,560px);overflow-y:auto;padding:14px;box-sizing:border-box;
  background:#1d1d20;border:1px solid #4a4a50;border-radius:15px;box-shadow:0 14px 44px #000a;overscroll-behavior:contain}
body.vx-chat-first .vx-cf-attach .vx-cf-menu-body{width:min(320px,calc(100vw - 28px))}
body.vx-chat-first #view-chat .vx-cf-menu-body>button,body.vx-chat-first #view-chat .vx-cf-menu-body .vx-simple-options>summary{height:auto!important;color:#e6e6ea;background:#29292c;border:1px solid #424246;min-height:44px!important;width:100%!important;justify-content:flex-start;text-align:left;
  display:flex!important;align-items:center;padding:0 12px!important;border-radius:11px!important;font-size:14px!important;letter-spacing:0!important;font-weight:600!important}
/* Model chip and its panel: inline inside «Avanzado». */
body.vx-chat-first .vx-cf-menu-body>.vx-ux-mode-control{display:block;position:static;margin:0}
body.vx-chat-first .vx-cf-menu-body .vx-ux-mode-trigger{width:100%;min-height:44px;text-align:left;font-size:14px;border-radius:11px;background:#29292c;color:#e6e6ea;border:1px solid #424246;padding:0 12px}
body.vx-chat-first #view-chat #vx-chat-form .vx-cf-menu-body .vx-ux-mode-panel{position:static!important;width:100%!important;max-height:none!important;box-shadow:none!important;margin-top:8px;padding:10px!important}
body.vx-chat-first .vx-cf-menu-body .vx-ux-mode-control[hidden]{display:none!important}
body.vx-chat-first .vx-cf-menu-body .vx-simple-options{position:static}
body.vx-chat-first .vx-cf-menu-body .vx-simple-options-content{position:static!important;min-width:0!important;margin-top:8px;box-shadow:none!important}
/* Intent cards (chat-first). */
.vx-intent-cards{display:flex;flex-direction:column;gap:8px;margin:0 0 8px}
.vx-intent-cards:empty{display:none}
.vx-intent-card{background:#1f2026;border:1px solid #43444c;border-radius:14px;padding:10px 12px;color:#e8e8ec;font-size:14px;line-height:1.45}
.vx-intent-card[data-level="L2"]{border-color:#7c6a2c}
.vx-intent-card[data-level="L3"]{border-color:#9b3b3b}
.vx-intent-card p{margin:0 0 6px;white-space:pre-line}
.vx-intent-said{color:#a4a4ad;font-size:12px}
.vx-intent-level{color:#f0d58a;font-size:12px}
.vx-intent-card[data-level="L3"] .vx-intent-level{color:#ffb4b4}
.vx-intent-actions{display:flex;flex-wrap:wrap;gap:8px}
.vx-intent-actions:empty{display:none}
.vx-intent-actions button{min-height:44px;padding:0 14px;border-radius:11px;border:1px solid #55565e;background:#2c2d33;color:#fff;font-weight:600;font-size:14px;cursor:pointer}
.vx-intent-actions .vx-intent-go{background:#e8e8ec;color:#111;border-color:#e8e8ec}
.vx-intent-card[data-level="L3"] .vx-intent-go[data-step="2"]{background:#c0392b;border-color:#c0392b;color:#fff}
@media(max-width:600px){body.vx-chat-first .vx-cf-current{display:none}}
body.vx-chat-first #view-chat .vx-cf-menu-body .vx-simple-options>summary{list-style:none;font-size:0!important}
body.vx-chat-first #view-chat .vx-cf-menu-body .vx-simple-options>summary::after{content:attr(data-label);font-size:14px}

/* Chat composer controls share a single surface and 44px touch targets. */
body.vx-chat-first #view-chat #vx-chat-form {
  background:#202022!important; border:1px solid #434347!important; border-radius:24px!important;
  box-shadow:0 4px 18px #0003!important;
}
body.vx-chat-first #view-chat #vx-chat-form:focus-within {border-color:#636367!important}
body.vx-chat-first #view-chat #vx-chat-form #vx-chat-input {background:transparent!important}
body.vx-chat-first #view-chat #vx-cf-attach>summary,
body.vx-chat-first #view-chat #vx-chat-mic,
body.vx-chat-first #view-chat .vx-cf-menu:not(.vx-cf-attach)>summary {
  display:inline-flex;align-items:center;justify-content:center;min-width:44px!important;min-height:44px!important;
  background:transparent!important;border:0!important;box-shadow:none!important;color:#dedee2!important;border-radius:22px!important
}
body.vx-chat-first #view-chat #vx-chat-form .vx-cf-menu>summary:hover,
body.vx-chat-first #view-chat #vx-chat-form .vx-cf-menu[open]>summary,
body.vx-chat-first #view-chat #vx-chat-form #vx-chat-mic:hover {background:#353538!important}
#view-chat #vx-chat-form :is(summary,button):focus-visible {outline:2px solid #dedee2;outline-offset:2px}
#view-chat #vx-cf-attach>summary svg,#view-chat #vx-chat-mic svg {width:23px;height:23px;display:block}
#vx-chat-mic :is(.vx-mic-stop,.vx-mic-cancel),
#vx-chat-mic:is([data-voice-state="recording"],[data-voice-state="processing"],[data-voice-state="pending"]) .vx-mic-idle {display:none}
#vx-chat-mic[data-voice-state="recording"] .vx-mic-stop,
#vx-chat-mic:is([data-voice-state="pending"],[data-voice-state="processing"]) .vx-mic-cancel {display:block}
body.vx-chat-first #view-chat #vx-chat-form #vx-chat-submit {border-radius:50%!important;width:44px!important;height:44px!important}

body.vx-chat-first #view-chat .vx-composer-area:has(#vx-chat-mic[data-voice-state="recording"]) #vx-chat-notice {
  color:#f0f0f2!important;font-size:15px!important;line-height:1.4!important;
  max-height:5.6em;overflow-y:auto;overflow-wrap:anywhere;margin:0 12px 8px;
}
label[for="vx-qwen-auto"]:not([hidden]){display:flex;align-items:center;gap:.6rem;padding:.55rem .25rem;cursor:pointer}
label[for="vx-qwen-auto"][hidden]{display:none!important}

/* P5 Focus: one visible IA control, Options separate; preserve Stop & review. */
body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control{position:relative;display:flex;flex:0 1 auto;min-width:0;max-width:min(210px,45vw);margin:0;align-items:center}
body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control[hidden]{display:none!important}
body.vx-chat-first #view-chat .vx-composer-left .vx-ux-mode-trigger{display:inline-flex;align-items:center;min-height:44px!important;min-width:68px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:650;padding:0 10px;border:0;background:transparent;color:#dedee2;border-radius:12px;cursor:pointer}
body.vx-chat-first #view-chat .vx-composer-left .vx-ux-mode-trigger:hover,
body.vx-chat-first #view-chat .vx-composer-left .vx-ux-mode-trigger[aria-expanded=true]{background:#353538}
body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control>.vx-ux-mode-panel{position:absolute!important;bottom:calc(100% + 12px)!important;left:0!important;z-index:100!important;width:min(450px,calc(100vw - 28px))!important;max-height:min(70dvh,600px)!important;overflow-y:auto!important;background:#1d1d20!important;border:1px solid #4a4a50!important;border-radius:16px!important;padding:14px!important;box-shadow:0 14px 44px #000b!important}
body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control>.vx-ux-mode-panel[hidden]{display:none!important}
body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control>.vx-ux-mode-panel>label{display:flex!important;flex-direction:column;gap:4px;font-size:12px;color:#aeb0bc}
body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control>.vx-ux-mode-panel>label select{min-height:44px!important}
body.vx-chat-first #view-chat .vx-cf-advanced>summary{font-size:13px!important;font-weight:550!important;min-width:62px!important;padding:0 9px!important}
body.vx-chat-first #view-chat .vx-cf-advanced .vx-cf-menu-body>.vx-simple-info{display:block;width:100%}
body.vx-chat-first #view-chat .vx-cf-advanced .vx-cf-menu-body>.vx42-source-picker{margin-top:0}
@media(max-width:600px){
 body.vx-chat-first #view-chat .vx-composer-left{gap:2px!important}
 body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control{max-width:138px}
 body.vx-chat-first #view-chat .vx-composer-left .vx-ux-mode-trigger{font-size:12px;padding:0 5px}
 body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control>.vx-ux-mode-panel{left:-94px!important;max-height:min(58dvh,440px)!important}
 body.vx-chat-first #view-chat .vx-cf-advanced>summary{padding:0 4px!important;min-width:55px!important}
}
@media(max-width:360px){
 body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control{max-width:102px}
 body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control>.vx-ux-mode-panel{left:-82px!important}
}

/* Use the entire composer row as the popup anchor, not the narrow IA button. */
body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control{position:static!important;flex:0 1 150px;min-width:0}
body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control>.vx-ux-mode-panel{left:0!important;right:auto!important}
body.vx-chat-first #view-chat .vx-composer-left .vx-ux-mode-trigger{display:block!important;width:100%;min-width:0!important;text-overflow:ellipsis;overflow:hidden}
@media(max-width:420px){
 body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control{flex:0 1 85px;max-width:85px;min-width:60px}
 body.vx-chat-first #view-chat .vx-cf-advanced>summary{width:44px!important;min-width:44px!important;max-width:44px!important;font-size:0!important;letter-spacing:0!important}
 body.vx-chat-first #view-chat .vx-cf-advanced>summary::after{content:'···';font-size:20px;letter-spacing:2px}
 body.vx-chat-first #view-chat .vx-composer-left>.vx-ux-mode-control>.vx-ux-mode-panel{left:0!important}
}

/* The optional authority/budget settings should look like a real disclosure. */
body.vx-chat-first #view-chat .vx-cf-advanced .vx-simple-info>summary{display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:10px 12px;margin:4px 0 0;background:#28282d;border:1px solid #414147;border-radius:11px;color:#e8e8ef;font-size:12px;font-weight:650;cursor:pointer;list-style:none}
body.vx-chat-first #view-chat .vx-cf-advanced .vx-simple-info>summary::after{content:'⌄';font-size:14px;opacity:.7}
body.vx-chat-first #view-chat .vx-cf-advanced .vx-simple-info[open]>summary::after{transform:rotate(180deg)}
body.vx-chat-first #view-chat .vx-cf-advanced .vx-simple-info>summary::-webkit-details-marker{display:none}
body.vx-chat-first #view-chat .vx-cf-advanced .vx-simple-info>summary:focus-visible{outline:2px solid #d4ddf5;outline-offset:2px}

#owner-check-dialog {box-sizing:border-box;width:min(94vw,32rem);max-height:84dvh;margin:auto;padding:1.1rem;overflow:auto;border:1px solid #596069;border-radius:.8rem;color:#f2f2f2;background:#151719}
#owner-check-dialog::backdrop {background:#000a}
#owner-check-dialog header {display:flex;align-items:center;justify-content:space-between;gap:.5rem}
#owner-check-dialog h2 {font-size:1.2rem;margin:0}
#owner-check-dialog p {margin:.35rem 0;overflow-wrap:anywhere;line-height:1.45}
#owner-check-dialog details {padding:.6rem 0}
#owner-check-rows {padding:0;list-style:none}
#owner-check-rows li {padding:.4rem 0;border-bottom:1px solid #36393c}
#owner-check-top {display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:34px}
#owner-check-menu {width:100%;text-align:left}


#vx-vision-dialog {
  color-scheme:dark; box-sizing:border-box; width:min(440px,calc(100vw - 24px));
  max-height:calc(100dvh - 32px); overflow:auto; margin:auto; padding:20px;
  color:#eee; background:#202021; border:1px solid #505052; border-radius:16px;
}
#vx-vision-dialog::backdrop { background:rgb(0 0 0 / .65); }
#vx-vision-dialog header, .vx-vision-result header, #vx-vision-live {
  display:flex; align-items:center; gap:12px; justify-content:space-between;
}
#vx-vision-dialog h2, .vx-vision-result h2 { margin:0; font-size:1.12rem; color:inherit; }
#vx-vision-dialog p { margin:12px 0; font-size:.9rem; line-height:1.45; }
#vx-vision-dialog fieldset { display:grid; gap:12px; border:0; margin:0; padding:0; min-width:0; }
#vx-vision-dialog fieldset label { display:grid; gap:4px; color:#e1e1e3; font-size:.9rem; }
#vx-vision-dialog select, #vx-vision-dialog input, #vx-vision-dialog textarea {
  box-sizing:border-box; width:100%; min-width:0; padding:9px; border-radius:8px;
  border:1px solid #525254; background:#151516; color:#f4f4f4; font:inherit;
}
#vx-vision-dialog button, .vx-vision-result button, #vx-vision-live button {
  border:1px solid #666; border-radius:9px; min-height:40px; padding:6px 12px;
  color:#eee; background:#29292b; cursor:pointer; font:inherit;
}
#vx-vision-dialog #vx-vision-run { border-color:#d4d4d6; background:#ebebed; color:#111; }
#vx-vision-dialog button:disabled, #vx-vision-dialog fieldset:disabled { opacity:.55; cursor:default; }
#vx-vision-window-controls > div, #vx-vision-recovery { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0; }
#vx-vision-dialog small, .vx-vision-result small, #vx-vision-live small { color:#bdbdc1; line-height:1.4; }
.vx-vision-result, #vx-vision-live {
  box-sizing:border-box; width:min(100%,760px); padding:12px; margin:10px auto;
  border:1px solid #49494d; border-radius:12px; background:#202022; color:#eee;
}
.vx-vision-result p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.5; margin:8px 0 0; }
.vx-vision-result header { align-items:flex-start; }
.vx-vision-result header h2 { overflow-wrap:anywhere; }
.vx-vision-result button { flex:none; font-size:.85rem; }
#vx-vision-live { width:min(calc(100% - 24px),760px); margin:4px auto; flex:none; }
#vx-vision-live > span:first-child { display:grid; min-width:0; flex:1; }
#vx-vision-target { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#vx-vision-count { font-variant-numeric:tabular-nums; }
#vx-vision-stop { font-weight:600; }
#vx-vision-dialog [hidden], #vx-vision-result[hidden], #vx-vision-live[hidden] { display:none!important; }

/* P5 Refined: familiar provider sections; one authoritative model selector. */
#vx-model-families{display:grid;gap:7px;width:100%;min-width:0}
#view-chat #vx-chat-form #vx-ux-mode-panel label.vx-native-model-label,
#vx-hybrid-model.vx-native-model-hidden{display:none!important}
body.vx-model-provider-organized #vx-team-configure{display:none!important}
.vx-provider-heading{font-size:11px;line-height:1.5;text-transform:uppercase;letter-spacing:.1em;font-weight:700;color:#b5b7c0;padding:0 1px 3px}
.vx-provider-group{min-width:0;overflow:hidden;border:1px solid #414248;border-radius:12px;background:#242428}
.vx-provider-group[open]{border-color:#565962;background:#252529}
.vx-provider-summary{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:54px;box-sizing:border-box;padding:10px 13px;cursor:pointer;list-style:none;color:#f1f1f5}
.vx-provider-summary::-webkit-details-marker{display:none}
.vx-provider-summary-copy{display:grid;gap:2px;min-width:0}
.vx-provider-summary-copy strong{font-size:13px;font-weight:680;letter-spacing:.005em}
.vx-provider-summary-copy small{font-size:11px;color:#b4b6c2;white-space:normal}
.vx-provider-summary-trailing{display:flex;align-items:center;gap:9px;flex:none}
.vx-provider-current{font-size:10px;color:#cfdbfb;background:#384156;border:1px solid #677590;border-radius:5px;padding:3px 6px}
.vx-provider-chevron{font-size:17px;color:#b4b6be;transition:transform .12s ease}
.vx-provider-group[open] .vx-provider-chevron{transform:rotate(180deg)}
.vx-provider-model{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;text-align:left!important;gap:3px!important;width:100%!important;box-sizing:border-box!important;min-height:50px!important;padding:10px 13px!important;border:0!important;border-top:1px solid #414148!important;border-radius:0!important;background:transparent!important;color:#eceef2!important;cursor:pointer;font:inherit;white-space:normal}
.vx-provider-model-title{font-size:12.5px;font-weight:650}
.vx-provider-model small{font-size:11px;line-height:1.45;font-weight:400;color:#b1b3c1}
.vx-provider-model:hover:not(:disabled){background:#32363f!important}
.vx-provider-model[aria-pressed=true]{background:#333946!important;box-shadow:inset 3px 0 #b6c9f7}
.vx-provider-model:disabled{opacity:.48;cursor:default}
.vx-provider-team-note{padding:9px 13px 8px;margin:0!important;font-size:11.5px;line-height:1.55;color:#b8bbca}
.vx-provider-error:empty{display:none}
.vx-provider-error{padding:7px 13px!important;margin:0!important;font-size:11px;color:#f5bdb9}
.vx-provider-footer{font-size:11px;line-height:1.5;color:#aaadb8;margin:5px 3px 0}
.vx-provider-summary:focus-visible,.vx-provider-model:focus-visible{outline:2px solid #d5defb;outline-offset:-2px}
@media(max-width:390px){.vx-provider-summary{padding:9px 10px}.vx-provider-model{padding:10px!important}}
/* Team's own participant groups retain their original visual design. */
.vx-team-members>.vx-model-family{width:100%}

/* P7: Keep the provider heading readable while browsing a long list. */
#view-chat #vx-chat-form .vx-provider-heading{
  position:sticky;top:0;z-index:2;
  background:#1d1d20;
  padding:5px 3px 7px;
  font-size:12px;line-height:1.5;
}
#view-chat #vx-chat-form .vx-provider-summary-copy strong{font-size:13.5px;line-height:1.4}
#view-chat #vx-chat-form .vx-provider-summary-copy small{font-size:12px;line-height:1.45}
#view-chat #vx-chat-form .vx-provider-model-title{font-size:13.5px;line-height:1.35}
#view-chat #vx-chat-form .vx-provider-model small{font-size:12px;line-height:1.5}
#view-chat #vx-chat-form .vx-provider-footer{font-size:12px;line-height:1.5}
#view-chat #vx-chat-form .vx-ux-mode-panel{scrollbar-width:thin;scrollbar-color:#696b75 #252529}
#vx-model-families .vx-model-origin,#vx-model-families .vx-provider-more>summary{
  padding:9px 13px;margin:0;color:#c7c8cf;font-size:.82rem;
}
#vx-model-families .vx-provider-more>summary{min-height:42px;cursor:pointer;align-content:center}
#vx-model-families .vx-provider-connect{margin:6px 10px 10px;min-height:40px}
#view-settings .vx-connection-options{margin-block:10px}
#view-settings .vx-connection-options>summary{min-height:40px;align-content:center;cursor:pointer}
#view-settings .vx-catalogue-inventory{display:grid;gap:6px;max-height:22rem;overflow:auto;overflow-wrap:anywhere}
