/* Shared CLI branding, accounts and graph presentation. */
#helperDiagramDialog {
  box-sizing: border-box;
  max-height: 86dvh;
  margin: auto;
  color: #ddd;
  border: 1px solid #30302d;
  overflow: auto;
  font:
    11px Arial,
    sans-serif;
  color-scheme: dark;
}
#helperDiagramDialog .helperDataHead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
#helperDiagramDialog h2 {
  font-size: 14px;
  margin: 0;
  flex: 1;
}
#helperDiagramDialog .helperDataHead span {
  font-size: 10px;
  color: #aa965f;
}
#helperDiagramDialog button {
  font: inherit;
  border: 1px solid #39372d;
  border-radius: 5px;
  cursor: pointer;
}
#helperDiagramDialog button:disabled {
  opacity: 0.5;
  cursor: default;
}
#helperDiagramDialog [data-close] {
  border: 0;
  background: transparent;
  color: #999;
  font-size: 19px;
  padding: 0 4px;
}
#helperDiagramDialog .helperDataGrid {
  display: grid;
  align-items: start;
}
#helperDiagramDialog .helperDatum {
  min-width: 0;
  border: 1px solid #2d2d29;
  border-radius: 7px;
  background: #141412;
  padding: 11px;
}
#helperDiagramDialog output {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #e0c47d;
}
#helperDiagramDialog summary {
  font-size: 10px;
  color: #85857f;
  cursor: pointer;
  list-style: none;
  padding-top: 10px;
}
#helperDiagramDialog summary::after {
  content: '⌄';
  float: right;
}
#helperDiagramDialog details[open] summary {
  padding-bottom: 10px;
  border-bottom: 1px solid #2b2b27;
  margin-bottom: 10px;
}
#helperDiagramDialog input,
#helperDiagramDialog select,
#helperDiagramDialog textarea {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  padding: 6px;
  color: #ddd;
  background: #0c0c0c;
  border: 1px solid #33332e;
  border-radius: 4px;
  font: inherit;
}
#helperDiagramDialog input[type='checkbox'] {
  width: auto;
}
#helperDiagramDialog label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #999;
  font-size: 10px;
  margin: 7px 0;
}
#helperDiagramDialog textarea {
  resize: vertical;
  line-height: 1.5;
  margin-bottom: 7px;
}
#helperDiagramDialog [data-save-state] {
  margin: 10px 0 0;
  color: #a99463;
  font-size: 10px;
}
#helperDiagramDialog [data-save-state]:empty {
  display: none;
}
@media (max-width: 520px) {
  #helperDiagramDialog {
    padding: 13px;
  }
  .helperDataGrid {
    grid-template-columns: 1fr !important;
  }
}
#helperDiagramDialog [data-prompt] {
  margin-bottom: 14px;
}
#helperDiagramDialog [data-prompt] textarea {
  padding: 12px;
  min-height: 85px;
}
#helperDiagramDialog [data-prompt][hidden] {
  display: none;
}
#helperPendingButton {
  font: inherit;
}
#helperDiagramDialog {
  width: min(820px, 94vw);
  padding: 20px;
  background: #111110;
  border-color: #33332e;
  border-radius: 14px;
  box-shadow: 0 18px 70px #0005;
  animation: cliEnter 0.22s ease-out;
}
#helperDiagramDialog::backdrop {
  background: #0006;
  backdrop-filter: blur(2px);
  animation: cliFade 0.22s ease-out;
}
#helperDiagramDialog button {
  padding: 5px 9px;
  font-size: 10px;
  color: #bfb49a;
  background: #171715;
  border-color: #30302b;
  transition:
    background 0.18s,
    border-color 0.18s,
    opacity 0.18s;
}
#helperDiagramDialog button:hover {
  background: #20201b;
  border-color: #59513b;
}
#helperDiagramDialog textarea {
  background: #141413;
  border-color: #30302b;
  border-radius: 8px;
  padding: 13px;
  transition:
    border-color 0.2s,
    background 0.2s;
  outline: none;
}
#helperDiagramDialog textarea:focus {
  border-color: #746447;
  background: #171715;
}
#helperDiagramDialog .helperDatum {
  animation: cliEnter 0.25s ease-out;
  transition: border-color 0.2s;
}
#helperDiagramDialog .cliProgress {
  border: 1px solid #303029;
  border-radius: 9px;
  animation: cliEnter 0.25s ease-out;
}
#helperDiagramDialog .cliProgress[hidden] {
  display: none;
}
#helperDiagramDialog .cliProgress > div {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #bdb79f;
}
#helperDiagramDialog .cliProgress p {
  color: #aaa89d;
  white-space: pre-wrap;
}
#helperDiagramButton,
#helperPendingButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  min-height: 21px !important;
  height: 22px !important;
  padding: 2px 8px !important;
  border-radius: 5px !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  color: #b6aa8a !important;
  background: #151513 !important;
  border: 1px solid #343126 !important;
  box-shadow: none !important;
  transition:
    background 0.18s,
    border-color 0.18s,
    opacity 0.18s;
}
#helperDiagramButton:hover,
#helperPendingButton:hover {
  background: #20201a !important;
  border-color: #5a5138 !important;
}
@keyframes cliEnter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cliFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes cliPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #helperDiagramDialog,
  #helperDiagramDialog::backdrop,
  #helperDiagramDialog .helperDatum {
    animation: none !important;
  }
  #helperDiagramDialog * {
    transition: none !important;
  }
}
#helperDiagramButton {
  gap: 5px !important;
  margin-right: 0 !important;
}
#helperDiagramButton .cliBrandMark {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#helperDiagramButton.cliBusy .cliBrandMark {
  color: #d9c48b;
}
@keyframes cliLogoBreathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  #helperDiagramButton .cliBrandMark {
    animation: none;
  }
}
main > header .brand {
  font-size: 26px !important;
  margin-right: 5px;
  flex-shrink: 0;
}
main > header .brand > span {
  font-size: 13px !important;
}
#helperDiagramButton .cliBrandMark {
  animation: none;
  opacity: 1;
}
#helperDiagramButton.cliBusy {
  color: #e0bd65 !important;
  border-color: #62512d !important;
}
#helperDiagramButton.cliBusy .cliBrandMark {
  animation: cliWorking 2.8s ease-in-out infinite;
  opacity: 1;
}
#helperDiagramButton.cliReady {
  color: #55b995 !important;
  border-color: #31594a !important;
}
#helperDiagramDialog .helperDatum,
#helperDiagramDialog .cliProgress {
  animation: none !important;
}
.cliFlow {
  margin: 14px 0;
  border: 1px solid #303029;
  border-radius: 9px;
}
.cliFlow svg {
  display: block;
}
.cliFlow rect {
  fill: #1b1b18;
  stroke: #454033;
  stroke-width: 1;
}
.cliFlow .flowEdges path {
  fill: none;
}
.cliFlow small {
  display: block;
  color: #858174;
  font-size: 9px;
  margin-top: 7px;
}
@keyframes cliWorking {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(8deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  #helperDiagramButton.cliBusy .cliBrandMark {
    animation: none;
  }
}
.cliControlGroup {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
  border: 1px solid #343126;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(21, 21, 19, 0.55);
}
.cliControlGroup #helperDiagramButton,
.cliControlGroup #helperPendingButton {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  height: 22px !important;
}
.cliControlGroup #helperPendingButton {
  border-left: 1px solid #ffffff12 !important;
  min-width: 25px !important;
  padding: 2px 6px !important;
  font-variant-numeric: tabular-nums;
}
.cliControlGroup #helperDiagramButton:hover,
.cliControlGroup #helperPendingButton:hover {
  background: #ffffff08 !important;
}
.positionCard .positionFooter .positionCLI {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 22px;
  height: 22px;
  padding: 2px 8px;
  border-radius: 5px;
  font:
    400 10px Arial,
    sans-serif;
  color: #b6aa8a;
  background: rgba(21, 21, 19, 0.55);
  border: 1px solid #343126;
  box-shadow: none;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.positionCard .positionFooter .positionCLI:hover {
  background: #20201a;
  border-color: #5a5138;
}
.positionCLI .cliBrandMark,
#helperDiagramButton .cliBrandMark {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: none !important;
  opacity: 1;
}
.positionCLI.cliBusy {
  color: #e0bd65 !important;
  border-color: #62512d !important;
}
.positionCLI.cliReady {
  color: #55b995 !important;
  border-color: #31594a !important;
}
.cliWorkingIndicator {
  display: none;
  width: 9px;
  height: 9px;
  flex: none;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0.8;
}
.cliBusy .cliWorkingIndicator {
  display: inline-block;
  animation: cliProgressSpin 1.3s linear infinite;
}
.positionsSection #positions .compactPosition .positionFooter {
  justify-content: flex-start;
}
.positionsSection #positions .compactPosition .positionFooter > .positionCLI {
  margin-right: 2px;
}
.positionsSection #positions .compactPosition .positionFooter > .helperDisclosureToggle {
  margin-right: 0;
}
.positionsSection #positions .compactPosition .positionFooter > [data-action='close'] {
  margin-left: auto;
}
@keyframes cliProgressSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cliBusy .cliWorkingIndicator {
    animation: none;
    border-style: dotted;
    border-right-color: currentColor;
  }
}
.cliFlow {
  max-height: none;
  overflow: visible;
}
.cliFlow svg {
  width: auto;
  height: auto;
  max-width: 100%;
  margin: auto;
}
#helperDiagramDialog .helperDataGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
#helperDiagramDialog .helperDataGrid > .helperDatum {
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ffffff0b;
  border-radius: 0;
}
#positions .positionCard > .widgetMoveHandle {
  top: 4px;
  right: 4px;
  opacity: 0.6;
  touch-action: none;
}
#positions .positionCard .positionTitle .pnl {
  margin-right: 21px;
}
@media (max-width: 600px) {
  #helperDiagramDialog {
    width: calc(100vw - 16px);
    max-height: 92dvh;
    padding: 12px;
  }
  .cliFlow svg {
    display: none;
  }
  #helperDiagramDialog .helperDataGrid {
    grid-template-columns: 1fr !important;
  }
  #helperDiagramDialog .helperDataHead {
    gap: 7px;
    margin-bottom: 10px;
  }
  #helperDiagramDialog .helperDataHead > span {
    font-size: 8px;
  }
  #helperDiagramDialog .helperDataHead [data-run-toggle] {
    padding: 4px 6px;
  }
}
.cliFlow {
  padding: 8px;
  background: rgba(255, 255, 255, 0.012);
  border-color: #ffffff0b;
}
.cliFlow text {
  font:
    9px Arial,
    sans-serif;
  fill: #ccc8bc;
}
.cliFlow .flowQuestion rect {
  fill: rgba(255, 255, 255, 0.025);
  stroke: #ffffff20;
}
.cliFlow .flowAction rect {
  fill: rgba(53, 203, 160, 0.04);
  stroke: #4c9c7855;
}
.cliFlow .flowEdges path {
  marker-end: var(--flow-marker);
}
.cliFlow .flowEdges text {
  font-size: 7px;
  fill: #aaa08a;
}
.cliFlow .cliDiagramDesktop {
  max-width: 580px;
  margin: auto;
}
.cliFlow .cliDiagramMobile {
  display: none;
}
@media (max-width: 600px) {
  .cliFlow .cliDiagramDesktop {
    display: none;
  }
  .cliFlow .cliDiagramMobile {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
  }
  .cliFlow small {
    font-size: 8px;
  }
}
#historyButton,
#closeAllButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 5px;
  font:
    400 9px Arial,
    sans-serif;
  line-height: 1.2;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid #ffffff12;
  color: #a7a59c;
  transition:
    background 0.18s,
    border-color 0.18s;
}
#historyButton:hover {
  background: #ffffff06;
  border-color: #ffffff26;
  color: #d0cec4;
}
#closeAllButton {
  color: #d77e8d;
  background: rgba(241, 116, 135, 0.055);
  border-color: rgba(241, 116, 135, 0.18);
}
#closeAllButton:hover {
  background: rgba(241, 116, 135, 0.09);
  border-color: rgba(241, 116, 135, 0.32);
}
.positionsSection > .widgetMoveHandle {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 2px !important;
  border-radius: 4px !important;
  opacity: 0.5;
}
.positionsSection > .widgetMoveHandle svg {
  width: 11px;
  height: 11px;
}
#helperDiagramDialog .cliProgress {
  padding: 9px 11px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.025);
}
#helperDiagramDialog .cliProgress p {
  margin: 6px 0;
  font-size: 10px;
  line-height: 1.45;
}
.cliAccountSummary {
  display: flex;
  justify-content: center;
  margin-inline: auto;
  font-size: 9px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: var(--muted, #98968a);
}
.cliAccountSummary > span {
  white-space: nowrap;
}
.cliAccountSummary small {
  font-size: 8px;
  opacity: 0.8;
  margin-left: 3px;
}
.cliAccountSummary b {
  font-weight: 500;
  color: var(--gold, #cfb36c);
}
.helperDataHead .cliAccountsGear {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 5px;
  border: 1px solid rgba(201, 183, 126, 0.15);
  border-radius: 7px;
  background: rgba(125, 117, 93, 0.08);
  color: #aaa594;
}
.cliAccountsGear svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.cliAccountsGear[aria-expanded='true'] {
  color: #d1b572;
  background: rgba(175, 152, 93, 0.12);
}
.cliAccountsSettings {
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(191, 175, 124, 0.15);
  border-radius: 9px;
  background: rgba(30, 31, 28, 0.25);
  backdrop-filter: blur(20px);
}
.cliAccountsSettings[hidden] {
  display: none;
}
@media (max-width: 520px) {
  .helperDataHead {
    gap: 7px;
  }
  .cliAccountSummary small {
    font-size: 7px;
  }
  .helperDataHead > span {
    font-size: 8px;
  }
}
.cliAccountSummary .cliResetCountdown {
  display: block;
  margin: 0;
  color: #aaa592;
  text-align: center;
}
.cliAccountQuota > span {
  display: grid;
  gap: 2px;
}
.cliAccountQuota > span small {
  font-size: 8px;
  font-weight: 400;
  opacity: 0.7;
}
#helperDiagramDialog .cliGuard {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  font-size: 8px;
  line-height: 1.2;
  border-radius: 5px;
  color: #aaa898;
  border: 1px solid #ffffff20;
  background: #ffffff03;
}
.cliGuard svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.cliGuard[aria-pressed='true'] {
  color: #92c5ac !important;
  border-color: #76bd9a50 !important;
  background: #45836316 !important;
}
.cliSavedPrompts {
  padding: 9px 11px;
  border: 1px solid #b7aa7728;
  border-radius: 8px;
  background: rgba(31, 33, 28, 0.25);
  margin: 9px 0;
}
.cliSavedPrompts article + article {
  border-top: 1px solid #ffffff0d;
  padding-top: 8px;
  margin-top: 8px;
}
.cliSavedPrompts small {
  font-size: 8px;
  color: #b8ad90;
}
.cliSavedPrompts p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.5;
  margin: 5px 0;
  color: #c7c5ba;
}
#helperDiagramDialog [data-delete-current] {
  color: #ef8b98 !important;
  border-color: rgba(225, 83, 107, 0.4) !important;
  background: rgba(150, 40, 61, 0.15) !important;
}
.helperDataHead > .cliGuard {
  flex: none;
}
.cliSavedPrompts textarea {
  width: 100%;
  min-height: 75px;
  margin: 5px 0;
  padding: 8px;
  font:
    10px/1.5 Inter,
    system-ui,
    sans-serif;
  color: #c7c5ba;
  background: rgba(26, 28, 24, 0.2);
  border: 1px solid #ffffff14;
  border-radius: 6px;
  resize: vertical;
}
.cliSavedPrompts button {
  font-size: 9px;
  padding: 4px 7px;
}
.cliQuotaSummary {
  text-align: center;
  min-width: 140px;
}
.cliQuotaEmail {
  display: block;
  font-size: 8px !important;
  margin: 0 !important;
  line-height: 1.3;
  color: #aaa698;
}
.cliQuotaSummary > div {
  white-space: nowrap;
}
.cliAccountSummary .cliResetCountdown {
  font-size: 7px;
}
@media (max-width: 520px) {
  .helperDataHead {
    flex-wrap: wrap;
  }
  .cliAccountSummary {
    order: 5;
    flex-basis: 100%;
    max-width: none;
    gap: 8px;
    font-size: 9px;
  }
  .cliQuotaSummary {
    min-width: 130px;
  }
  .helperDataHead > span {
    margin-left: auto;
  }
}
body #helperDiagramDialog [data-submit] {
  color: #9cdbb9;
  background: rgba(40, 112, 76, 0.14);
  border-color: rgba(102, 190, 145, 0.4);
  font-size: 9px;
  padding: 4px 9px;
}
body #helperDiagramDialog [data-submit]:hover {
  background: rgba(40, 112, 76, 0.26);
  border-color: rgba(102, 190, 145, 0.6);
}
body #helperDiagramDialog [data-submit]:disabled {
  opacity: 0.45;
}
.cliAccountsGear svg {
  display: block;
  flex: none;
  margin: 0;
  width: 14px;
  height: 14px;
  overflow: visible;
}
body #helperDiagramDialog .cliAccountsGear {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 28px;
  width: 28px;
  height: 28px;
  border: 1px solid #c6b88a26;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(215, 207, 174, 0.065), rgba(126, 121, 99, 0.025));
  box-shadow: inset 0 1px 0 #ffffff09;
  color: #b8b19a;
}
body #helperDiagramDialog .cliAccountsGear svg {
  width: 15px;
  height: 15px;
  transform: translateY(-0.3px);
  stroke-width: 1.45;
}
body #helperDiagramDialog .cliAccountsGear:hover {
  color: #e0cd98;
  border-color: #c6b88a55;
  background: rgba(168, 153, 106, 0.1);
}
body #helperDiagramDialog .cliAccountsGear[hidden],
body #helperDiagramDialog .cliGuard[hidden] {
  display: none !important;
}
#helperDiagramDialog .helperDataHead h2 {
  flex: none;
}
#helperDiagramDialog .helperDataHead .cliAccountSummary {
  flex: 1;
  min-width: 0;
  margin-inline: 0;
}
#helperDiagramDialog .helperDataHead [data-close] {
  margin-left: auto;
}
body #helperDiagramDialog .helperDataHead {
  min-height: 28px;
}
body #helperDiagramDialog [data-close] {
  position: absolute;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(204, 199, 180, 0.18);
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
}
body #helperDiagramDialog [data-close] svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
}
.cliFlow [data-flow-node] rect {
  rx: 3;
  stroke-width: 1.2;
  transition:
    fill 0.2s,
    stroke 0.2s;
}
.cliFlow [data-flow-node].flowVisited[data-state='pass'] rect {
  fill: rgba(53, 203, 160, 0.1);
  stroke: #61c8a4;
}
.cliFlow [data-flow-node].flowVisited[data-state='wait'] rect {
  fill: rgba(225, 178, 87, 0.1);
  stroke: #d6ad63;
}
.cliFlow [data-flow-node].flowCurrent rect {
  stroke-width: 2;
  filter: drop-shadow(0 0 4px #d6ad6340);
}
.cliFlow [data-flow-node].flowCurrent text {
  fill: #f1eee4;
  font-weight: 600;
}
.cliFlow .flowEdges path {
  stroke: #77776f;
  stroke-width: 1;
  stroke-linejoin: miter;
}
.cliFlow .flowEdges path.flowTaken {
  stroke: #65cfa8;
  stroke-width: 2;
  filter: drop-shadow(0 0 3px #65cfa84a);
}
#helperDiagramDialog .cliComposerActions [data-delete-current] {
  color: #e892a0;
  border-color: #dc667b55;
  background: #9a34451c;
}
#helperDiagramDialog .cliComposerActions [data-submit] {
  order: 1;
  margin-right: auto;
  color: #80cfa9;
  border-color: #53bd8750;
}
#helperDiagramDialog .cliComposerActions [data-pause-current] {
  order: 2;
  color: #dfba75;
  border-color: #b99b5750;
}
#helperDiagramDialog .cliComposerActions [data-delete-current] {
  order: 3;
  margin-left: 0;
}
.cliAccountSummary {
  flex-wrap: wrap;
  max-width: 62%;
  gap: 6px 12px;
}
.cliAccountQuota {
  flex-wrap: wrap;
}
.cliAccounts [data-account-status] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.cliAccounts [data-add-account] {
  font-size: 9px;
  color: #9cd0b5;
  border-color: #539c7855;
}
.cliAccountLogin code {
  user-select: all;
}
.cliAccountChoice {
  flex-wrap: wrap;
}
.cliAccountAddFooter {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid #ffffff0b;
}
#helperDiagramDialog .cliAccounts [data-add-account] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(72, 112, 89, 0.1);
  border: 1px solid #79b39835;
  color: #a0c6af;
  font-size: 8px;
  line-height: 1;
  box-shadow: inset 0 1px 0 #ffffff06;
  transition:
    background 0.18s,
    border-color 0.18s;
}
#helperDiagramDialog .cliAccounts [data-add-account] svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
#helperDiagramDialog .cliAccounts [data-add-account]:hover {
  background: #5a9c7820;
  border-color: #79b39865;
}
body #helperDiagramDialog {
  padding: 12px;
}
body #helperDiagramDialog .helperDataHead {
  margin-bottom: 8px;
  padding-right: 24px;
  gap: 8px;
}
body #helperDiagramDialog [data-prompt] {
  margin-bottom: 6px;
}
body #helperDiagramDialog [data-strategy] {
  min-height: 120px;
  padding: 10px;
  margin-bottom: 3px;
}
body #helperDiagramDialog [data-save-state]:empty,
body #helperDiagramDialog [data-cards]:empty,
body #helperDiagramDialog [data-flow]:empty {
  display: none;
}
body #helperDiagramDialog [data-close] {
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  border-radius: 5px;
  background: #ffffff04;
  color: #a8abae;
  border-color: #ffffff12;
  box-shadow: none;
  outline: none !important;
}
body #helperDiagramDialog [data-close] svg {
  width: 11px;
  height: 11px;
  stroke-width: 1.5;
}
body #helperDiagramDialog [data-close]:hover {
  color: #eee;
  background: #ffffff0b;
  border-color: #ffffff25;
}
body #helperDiagramDialog [data-close]:focus-visible {
  outline: 1px solid #ffffff30 !important;
  outline-offset: 1px;
  box-shadow: none !important;
}
body #helperDiagramDialog .helperDataHead h2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
body #helperDiagramDialog .helperDataHead .cliHeadingText {
  font: inherit;
  color: inherit;
}
body #helperDiagramDialog .cliHeadingMark {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: #9fc9ba;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cliLogoBreathe 3.5s ease-in-out infinite;
}
body #helperDiagramDialog {
  padding-bottom: 7px;
}
body #helperDiagramDialog [data-prompt].cliComposer textarea {
  min-height: 120px;
}
body #helperDiagramDialog .cliComposerActions {
  width: 100%;
  min-height: 25px;
}
body #helperDiagramDialog .cliComposerActions .cliAccountsGear {
  order: 0;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-height: 22px;
  border-radius: 6px;
  margin-right: auto;
}
body #helperDiagramDialog .cliComposerActions .cliAccountsGear svg {
  width: 12px;
  height: 12px;
}
body #helperDiagramDialog .cliComposerActions:has(.cliAccountsGear:not([hidden])) [data-submit] {
  margin-right: 0;
  order: 3;
}
body #helperDiagramDialog [data-prompt].cliComposer textarea {
  font-family:
    Inter,
    'Segoe UI',
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
body #helperDiagramDialog [data-prompt].cliComposer textarea::placeholder {
  font-size: 12px;
  line-height: 1.5;
  color: #8c9092;
  letter-spacing: 0;
}
@media (max-width: 600px) {
  body #helperDiagramDialog {
    box-sizing: border-box;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 24px);
    padding: 10px 10px 7px;
    overflow-x: hidden;
  }
  body #helperDiagramDialog .helperDataHead {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 7px;
    margin-bottom: 9px;
    padding-right: 0;
    min-width: 0;
  }
  body #helperDiagramDialog .helperDataHead h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
  }
  body #helperDiagramDialog .helperDataHead > .cliGuard {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }
  body #helperDiagramDialog .helperDataHead .cliAccountSummary {
    grid-column: 1/-1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    width: 100%;
    max-width: none;
    gap: 6px;
    margin: 0;
  }
  body #helperDiagramDialog .cliQuotaSummary {
    min-width: 0;
  }
  body #helperDiagramDialog .cliQuotaEmail {
    font-size: 7px !important;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  body #helperDiagramDialog .cliResetCountdown {
    font-size: 6px;
  }
  body #helperDiagramDialog .cliAccounts [data-account-status] {
    grid-template-columns: minmax(0, 1fr);
  }
  body #helperDiagramDialog .cliAccountChoice label,
  body #helperDiagramDialog .cliAccountChoice select {
    min-width: 0;
    max-width: 100%;
  }
  body #helperDiagramDialog [data-prompt].cliComposer textarea {
    box-sizing: border-box;
    font-size: 14px;
  }
  body #helperDiagramDialog .cliSavedPrompts textarea {
    box-sizing: border-box;
    font:
      14px/1.5 Inter,
      'Segoe UI',
      system-ui,
      sans-serif;
  }
}
@supports (-webkit-touch-callout: none) {
  @media (max-width: 600px) {
    body #helperDiagramDialog [data-prompt].cliComposer textarea,
    body #helperDiagramDialog .cliSavedPrompts textarea {
      font-size: 16px;
    }
  }
}
