#arc-shell #agent-connections-panel[hidden],
#arc-shell [data-inspector-tab][hidden] {
  display: none;
}
#arc-shell .ac-panel {
  padding: 20px 18px;
  font-size: 13px;
}
#arc-shell .ac-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#arc-shell .ac-section-head h3 {
  font-size: 14px;
  font-weight: 550;
  margin: 0;
}
#arc-shell .ac-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--arc-hover);
  color: var(--arc-muted);
}
#arc-shell .ac-muted,
#arc-shell .ac-scope {
  color: var(--arc-muted);
  font-size: 12px;
  line-height: 1.6;
}
#arc-shell .ac-scope {
  margin: 6px 0 20px;
}
#arc-shell .ac-tool-list {
  border-top: 1px solid #e2dacd;
  margin-bottom: 16px;
}
#arc-shell .ac-tool-item {
  border-bottom: 1px solid #e2dacd;
}
#arc-shell .ac-tool-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px 2px;
  box-sizing: border-box;
  list-style: none;
}
#arc-shell summary.ac-tool-row {
  cursor: pointer;
  border-radius: 6px;
}
#arc-shell summary.ac-tool-row:hover {
  background: #e8dfcf66;
}
#arc-shell .ac-tool-row::-webkit-details-marker {
  display: none;
}
#arc-shell .ac-tool-row > strong {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
#arc-shell .ac-tool-row .ac-tool-icon {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
  border-radius: 7px;
}
#arc-shell .ac-tool-row .ac-tool-icon svg {
  width: 16px;
  height: 16px;
}
#arc-shell .ac-expand {
  position: relative;
  flex: 0 0 22px;
  height: 22px;
  color: var(--arc-muted);
}
#arc-shell .ac-expand::before,
#arc-shell .ac-expand::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
#arc-shell .ac-expand::before {
  width: 10px;
  height: 1.3px;
  top: 10px;
  left: 6px;
}
#arc-shell .ac-expand::after {
  width: 1.3px;
  height: 10px;
  top: 6px;
  left: 10px;
}
#arc-shell details[open] > .ac-tool-row .ac-expand::after {
  display: none;
}
#arc-shell .ac-connect-row {
  font-size: 11px;
  padding: 5px 6px;
  color: var(--arc-muted);
}
#arc-shell .ac-tool-detail {
  padding: 0 4px 8px;
}
#arc-shell .ac-account-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--arc-muted);
  padding: 4px 0 12px;
  overflow-wrap: anywhere;
}
#arc-shell .ac-modal-tool > div {
  min-width: 0;
  flex: 1;
}
#arc-shell .ac-modal-tool strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}
#arc-shell .ac-modal-tool small {
  display: block;
  color: var(--arc-muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin-top: 2px;
}
#arc-shell .ac-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: 0 0 36px;
}
#arc-shell .ac-tool-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.6;
}
#arc-shell .ac-violet {
  background: #eae4f4;
  color: #77638b;
}
#arc-shell .ac-blue {
  background: #e6edf5;
  color: #547c9a;
}
#arc-shell .ac-amber {
  background: #f7ecd4;
  color: #aa7c30;
}
#arc-shell .ac-orange {
  background: #f7e6dc;
  color: #ab7150;
}
#arc-shell .ac-stone {
  background: #e9e7e2;
  color: #5c5952;
}
#arc-shell .ac-sage {
  background: #e5ede2;
  color: #657c5d;
}
#arc-shell .ac-status {
  color: #5b7657;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
#arc-shell .ac-kind {
  font-size: 10px;
  color: var(--arc-muted);
  background: var(--arc-hover);
  padding: 3px 6px;
  border-radius: 4px;
}
#arc-shell .ac-permissions {
  margin: 0 0 9px;
  border-top: 1px solid #e9e3d8;
  padding-top: 9px;
}
#arc-shell .ac-permissions > div {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 11px;
  line-height: 1.5;
}
#arc-shell .ac-permissions dt {
  flex: 1;
}
#arc-shell .ac-permissions dd {
  margin: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}
#arc-shell .ac-permissions dd svg {
  width: 12px;
  height: 12px;
}
#arc-shell .ac-policy-allow {
  color: #687d5d;
}
#arc-shell .ac-policy-ask {
  color: #91743e;
}
#arc-shell .ac-policy-off {
  color: var(--arc-muted);
}
#arc-shell .ac-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 7px;
  color: var(--arc-text);
  cursor: pointer;
}
#arc-shell .ac-button:hover {
  background: var(--arc-hover);
}
#arc-shell .ac-button svg {
  width: 14px;
  height: 14px;
}
#arc-shell .ac-manage {
  border-top: 1px solid #e9e3d8;
  border-radius: 0;
  width: 100%;
  padding: 10px 14px;
  justify-content: space-between;
}
#arc-shell .ac-add {
  border: 1px solid #d9cdbb;
  width: 100%;
  height: 39px;
}
#arc-shell .ac-project-footer {
  margin-top: 27px;
  padding-top: 17px;
  border-top: 1px solid #e2dacd;
}
#arc-shell .ac-project-footer .ac-button {
  width: 100%;
  justify-content: flex-start;
  padding-left: 0;
}
#arc-shell .ac-project-footer .ac-button svg:last-child {
  margin-left: auto;
}
#arc-shell .ac-project-footer p,
#arc-shell .ac-preview-note {
  color: var(--arc-muted);
  font-size: 10px;
  line-height: 1.6;
  margin: 4px 0;
}
#arc-shell .ac-preview-note {
  margin-top: 22px;
  opacity: 0.8;
}
#arc-shell .ac-dialog {
  width: min(550px, calc(100vw - 40px));
  max-height: calc(100dvh - 64px);
  border: 1px solid #dacebc;
  border-radius: 18px;
  padding: 28px;
  color: var(--arc-text);
  background: var(--arc-paper, #fcfaf6);
  box-shadow: 0 24px 90px #3933292b;
  box-sizing: border-box;
  overflow-y: auto;
}
#arc-shell .ac-dialog::backdrop {
  background: #302b2452;
  backdrop-filter: blur(5px);
}
#arc-shell .ac-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
#arc-shell .ac-modal-heading h2 {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 0;
}
#arc-shell .ac-modal-heading p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--arc-muted);
  margin: 8px 0 0;
}
#arc-shell .ac-close {
  padding: 7px;
  min-height: 30px;
}
#arc-shell .ac-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e4dccf;
}
#arc-shell .ac-modal-footer > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
#arc-shell .ac-primary {
  background: #403a2f;
  color: #fff;
  padding: 10px 18px;
}
#arc-shell .ac-primary:hover {
  background: #595143;
}
#arc-shell .ac-picker-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #dfd5c7;
  margin-bottom: 18px;
}
#arc-shell .ac-picker-tabs .ac-button {
  border-radius: 0;
  padding: 10px 1px;
  border-bottom: 2px solid transparent;
  color: var(--arc-muted);
}
#arc-shell .ac-picker-tabs .ac-current {
  border-color: var(--arc-text);
  color: var(--arc-text);
}
#arc-shell .ac-picker-tabs span {
  background: var(--arc-hover);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
}
#arc-shell .ac-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #ddd1be;
  border-radius: 8px;
}
#arc-shell .ac-search svg {
  width: 16px;
  color: var(--arc-muted);
}
#arc-shell .ac-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: inherit;
}
#arc-shell .ac-picker-help {
  font-size: 11px;
  color: var(--arc-muted);
  line-height: 1.6;
  margin: 14px 0 9px;
}
#arc-shell .ac-catalog-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 8px;
  border-radius: 8px;
  cursor: pointer;
}
#arc-shell .ac-catalog-row:hover {
  background: var(--arc-hover);
}
#arc-shell .ac-catalog-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
#arc-shell .ac-catalog-row strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
#arc-shell .ac-catalog-row small {
  display: block;
  font-size: 11px;
  color: var(--arc-muted);
  margin-top: 5px;
}
#arc-shell .ac-row-action {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--arc-muted);
  white-space: nowrap;
}
#arc-shell .ac-row-action svg {
  width: 13px;
  height: 13px;
}
#arc-shell .ac-catalog-row:disabled {
  cursor: default;
  opacity: 0.6;
}
#arc-shell .ac-modal-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  background: #eee8dc88;
  padding: 14px;
}
#arc-shell .ac-reuse {
  font-size: 11px;
  color: #687d5d;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0;
  line-height: 1.6;
}
#arc-shell .ac-reuse svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
#arc-shell .ac-field {
  display: block;
  font-size: 12px;
  margin: 20px 0;
}
#arc-shell .ac-field input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dacebc;
  border-radius: 8px;
  background: #fff8;
  margin-top: 8px;
  font: inherit;
  color: inherit;
}
#arc-shell .ac-field small {
  display: block;
  font-size: 10px;
  color: var(--arc-muted);
  margin-top: 7px;
}
#arc-shell .ac-access-title {
  margin: 26px 0 12px;
}
#arc-shell .ac-access-title h3,
#arc-shell .ac-agent-access-heading {
  font-size: 14px;
  font-weight: 550;
}
#arc-shell .ac-access-title p {
  font-size: 11px;
  color: var(--arc-muted);
  line-height: 1.7;
  margin-top: 6px;
}
#arc-shell .ac-access-rows > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #e8e0d4;
  font-size: 12px;
}
#arc-shell .ac-access-rows .arc-select-field {
  flex: 0 0 140px;
}
#arc-shell .ac-access-rows select {
  width: 100%;
  appearance: none;
  padding: 9px 30px 9px 10px;
  background: #fff6;
  border: 1px solid #dacebc;
  border-radius: 7px;
  font-size: 12px;
  color: inherit;
}
#arc-shell .ac-access-rows .arc-select-field > svg {
  right: 10px;
  width: 13px;
  height: 13px;
}
#arc-shell .ac-approval-note {
  display: flex;
  gap: 9px;
  margin-top: 20px;
  color: var(--arc-muted);
}
#arc-shell .ac-approval-note svg {
  flex-shrink: 0;
  width: 16px;
  margin-top: 1px;
}
#arc-shell .ac-approval-note p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
#arc-shell .ac-remove {
  color: #946d58;
  padding-left: 0;
}
#arc-shell .ac-empty-search {
  font-size: 13px;
  color: var(--arc-muted);
  padding: 20px 4px;
}
#arc-shell .ac-project-manager .ac-section-head p {
  margin: 0;
  font-size: 14px;
}
#arc-shell .ac-project-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #e3dbce;
}
#arc-shell .ac-project-row > div {
  flex: 1;
}
#arc-shell .ac-project-row strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
#arc-shell .ac-project-row small {
  display: block;
  font-size: 12px;
  color: var(--arc-muted);
  margin: 5px 0;
}
#arc-shell .ac-agent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
#arc-shell .ac-agent-chips span {
  font-size: 10px;
  padding: 4px 7px;
  background: var(--arc-hover);
  border-radius: 5px;
}
#arc-shell .ac-project-agent-list {
  max-height: 300px;
  overflow: auto;
}
#arc-shell .ac-project-agent-list button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 12px 5px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
}
#arc-shell .ac-project-agent-list button:hover {
  background: var(--arc-hover);
}
#arc-shell .ac-project-agent-list button > span:last-child {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--arc-muted);
}
@media (max-width: 600px) {
  #arc-shell .ac-dialog {
    padding: 20px;
  }
  #arc-shell .ac-access-rows .arc-select-field {
    flex-basis: 128px;
  }
}
#arc-shell .ac-field select {
  display: block;
  width: 100%;
  padding: 11px 32px 11px 12px;
  margin-top: 8px;
  border: 1px solid #dacebc;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  appearance: none;
  background: #fff8
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23887c69' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 12px center;
}
#arc-shell .ac-live-error {
  color: #956344;
  font-size: 12px;
  line-height: 1.6;
}
#arc-shell .ac-live-tools {
  max-height: 190px;
  overflow: auto;
}
#arc-shell .ac-live-tools details {
  border-bottom: 1px solid #e2dacd;
  padding: 10px 0;
  font-size: 12px;
}
#arc-shell .ac-live-tools summary,
#arc-shell .ac-live-discovery summary {
  cursor: pointer;
}
#arc-shell .ac-live-tools p {
  color: var(--arc-muted);
  line-height: 1.6;
}
#arc-shell .ac-live-discovery {
  margin: 18px 0;
  font-size: 12px;
}
#arc-shell .ac-live-discovery pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 300px;
  overflow: auto;
  font-size: 11px;
  padding: 12px;
  background: #eee8dc88;
}
#arc-shell .ac-button:disabled {
  cursor: wait;
  opacity: 0.5;
}
