/* Connection settings use the DeedPilot workbench palette and evidence surfaces. */
.workspace-theme.connections-page .dashboard-main {
  max-width: 1100px;
}
.workspace-theme.connections-page h2 {
  font-size: 18px;
  margin: 0;
}
.workspace-theme.connections-page label {
  font-size: 13px;
  color: #183047;
}
.workspace-theme.connections-page input {
  font: inherit;
}
.workspace-theme.connections-page .ws-button {
  border: 1px solid #bacbdd;
  background: #fff;
  padding: 9px 14px;
  font-size: 13px;
  text-decoration: none;
}
.workspace-theme.connections-page .ws-button.primary {
  background: #275de0;
  color: #fff;
  border-color: #275de0;
}
.workspace-theme .connections-error,.workspace-theme .connections-notice {
  padding: 12px 15px;
  border: 1px solid #e3b6b6;
  border-radius: 6px;
  background: #fff7f7;
  color: #991f26;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.workspace-theme .connections-notice {
  border-color: #b7d9dc;
  background: #f0f8f8;
  color: #14666e;
}
.workspace-theme .connections-kicker {
  display: block;
  color: #176f78;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: normal;
  margin-bottom: 8px;
}
.workspace-theme .connections-token {
  border: 1px solid #b7d9dc;
  border-radius: 14px;
  background: #f0f8f8;
  padding: 22px 24px;
  margin-bottom: 24px;
}
.workspace-theme .connections-token h2 {
  font-size: 18px;
  margin: 0 0 7px;
}
.workspace-theme .connections-token p,.workspace-theme .connections-token small {
  color: #45676c;
  font-size: 13px;
  line-height: 1.7;
}
.workspace-theme .connections-token label {
  display: block;
  margin-top: 18px;
  color: #183047;
}
.workspace-theme .connections-token input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #a7c6cb;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: ui-monospace,monospace;
  font-size: 13px;
}
.workspace-theme .connections-token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}
.workspace-theme .connections-token small {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.workspace-theme .connections-create,.workspace-theme .connections-list {
  background: #fff;
  border: 1px solid #d8e1eb;
  border-radius: 10px;
  margin-bottom: 24px;
}
.workspace-theme .connections-create {
  padding: 24px;
}
.workspace-theme .connections-create>header,.workspace-theme .connections-list>header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d8e1eb;
}
.workspace-theme .connections-create>header h2 {
  margin: 0;
}
.workspace-theme .connections-limit {
  font-size: 13px;
  color: #596d80;
}
.workspace-theme .connections-create form {
  padding-top: 20px;
}
.workspace-theme .connections-name {
  display: block;
  max-width: 560px;
}
.workspace-theme .connections-name input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #bacbdd;
  border-radius: 6px;
  padding: 11px 12px;
  margin-top: 7px;
  color: #183047;
}
.workspace-theme .connections-create fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 25px 0 20px;
}
.workspace-theme .connections-create legend {
  font-size: 13px;
  font-weight: 600;
  color: #183047;
  padding: 0;
}
.workspace-theme .connections-create legend small {
  font-size: 13px;
  color: #596d80;
  font-weight: 400;
  margin-left: 8px;
}
.workspace-theme .connections-sources {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  margin-top: 12px;
}
.workspace-theme .connections-source {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border: 1px solid #d8e1eb;
  border-radius: 6px;
  padding: 12px 10px;
  min-height: 57px;
  cursor: pointer;
  background: #fff;
}
.workspace-theme .connections-source:hover:not(.is-disabled) {
  border-color: var(--forest);
  background: #f7f9ff;
}
.workspace-theme .connections-source input {
  margin-top: 2px;
  accent-color: #275de0;
}
.workspace-theme .connections-source span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.workspace-theme .connections-source strong,.workspace-theme .connections-source small,.workspace-theme .connections-source em {
  display: block;
}
.workspace-theme .connections-source strong {
  font-size: 13px;
  color: #183047;
  font-weight: 600;
}
.workspace-theme .connections-source small {
  font-size: 13px;
  color: #596d80;
  margin-top: 4px;
}
.workspace-theme .connections-source em {
  font-size: 13px;
  color: #9a3b32;
  font-style: normal;
  margin-top: 4px;
}
.workspace-theme .connections-source.is-disabled {
  background: #f7f9fc;
  cursor: not-allowed;
}
.workspace-theme .connections-help {
  font-size: 13px;
  color: #596d80;
  line-height: 1.7;
  margin: 16px 0 0;
}
.workspace-theme .connections-list>header {
  padding: 20px 24px;
  align-items: center;
}
.workspace-theme .connections-list>header h2 {
  font-size: 15px;
}
.workspace-theme .connections-list>header h2 span {
  display: inline-block;
  background: #edf2f7;
  font-size: 13px;
  font-weight: 400;
  padding: 3px 6px;
  margin-left: 7px;
}
.workspace-theme .connections-list>header small {
  font-size: 13px;
  color: #596d80;
  overflow-wrap: anywhere;
  text-align: right;
}
.workspace-theme .connections-empty {
  text-align: center;
  padding: 55px 20px;
  color: #596d80;
}
.workspace-theme .connections-empty svg {
  color: #176f78;
}
.workspace-theme .connections-empty p {
  font-size: 13px;
}
.workspace-theme .connections-cards {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  padding: 18px 24px 24px;
}
.workspace-theme .connection-card {
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  padding: 17px 18px;
  min-width: 0;
}
.workspace-theme .connection-card.is-revoked {
  background: #f7f9fc;
}
.workspace-theme .connection-card>header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.workspace-theme .connection-card h3 {
  font-size: 15px;
  overflow-wrap: anywhere;
  margin: 0 0 6px;
}
.workspace-theme .connection-card header small {
  font-size: 13px;
  color: #596d80;
}
.workspace-theme .connection-status {
  font-size: 12px;
  padding: 4px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.workspace-theme .connection-status.active {
  background: #e8f4f4;
  color: #14666e;
}
.workspace-theme .connection-status.revoked {
  background: #edf2f7;
  color: #596d80;
}
.workspace-theme .connection-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #d8e1eb;
  border-bottom: 1px solid #d8e1eb;
  padding: 13px 0;
  margin: 16px 0 11px;
  font-size: 13px;
  color: #596d80;
}
.workspace-theme .connection-meta strong {
  font-size: 17px;
  color: #183047;
  font-weight: 600;
  margin-right: 3px;
}
.workspace-theme .connection-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.workspace-theme .connection-sources span {
  background: #edf2f7;
  padding: 5px 7px;
  border-radius: 4px;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #183047;
}
.workspace-theme .connection-card details {
  margin-top: 14px;
  border-top: 1px solid #d8e1eb;
  padding-top: 11px;
}
.workspace-theme .connection-card summary {
  font-size: 13px;
  color: #183047;
  cursor: pointer;
}
.workspace-theme .connection-audit {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.workspace-theme .connection-audit>div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.workspace-theme .connection-audit small {
  color: #596d80;
}
.workspace-theme .connection-revoke {
  border: 0;
  background: none;
  color: #9a3b32;
  padding: 8px 0;
  margin-top: 9px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.workspace-theme .connection-revoke:disabled {
  opacity: .5;
  cursor: wait;
}
@media(max-width:850px) {
.workspace-theme .connections-sources {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.workspace-theme .connections-cards {
  grid-template-columns: 1fr;
}
}
@media(max-width:600px) {
.workspace-theme.connections-page .dashboard-main {
  padding: 22px 16px;
}
.workspace-theme .connections-create,.workspace-theme .connections-list>header {
  padding: 18px 16px;
}
.workspace-theme .connections-create>header,.workspace-theme .connections-list>header {
  display: block;
}
.workspace-theme .connections-limit,.workspace-theme .connections-list>header small {
  display: block;
  text-align: left;
  margin-top: 9px;
}
.workspace-theme .connections-sources {
  grid-template-columns: 1fr;
}
.workspace-theme .connections-cards {
  padding: 14px 16px 18px;
}
.workspace-theme .connections-token {
  padding: 18px 16px;
}
.workspace-theme .connections-token-actions {
  flex-wrap: wrap;
}
}
.workspace-theme.connections-page .ws-button.primary:hover:not(:disabled) {
  background: #1c4dbc;
  border-color: #1c4dbc;
  color: #fff;
}
.workspace-theme .connections-source:has(input:checked) {
  border-color: #adc3f7;
  background: #f2f6ff;
}
.workspace-theme .connection-audit>div {
  flex-wrap: wrap;
}
@media(max-width:600px) {
.workspace-theme .connection-card>header {
  flex-wrap: wrap;
}
}
