/* The in-thread and panel reviews share the conversation card recipe. */
.dc-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.dc-card {
  box-sizing: border-box;
  display: grid;
  gap: 10px;
  margin-block: 8px;
  padding: 12px 14px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cv-card, var(--fill));
  color: var(--ink);
  line-height: 1.4;
  min-width: 0;
}
.turn .dc-card { margin-block: 0; }
.dc-card:focus-visible, .dc-card :is(button, a):focus-visible {
  outline: 2px solid var(--role-action);
  outline-offset: 2px;
}
.dc-head {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}
.dc-head img {display: block; margin-top: 1px}
.dc-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.dc-address {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 12px;
  color: var(--meta);
}
.dc-preview {
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--paper);
  min-width: 0;
}
.dc-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 7px 10px;
  font-size: 13px;
}
.dc-row + .dc-row, .dc-row + .dc-message {border-top: 1px solid var(--line-soft)}
.dc-key {color: var(--meta)}
.dc-value {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}
.dc-mono {font-family: "Geist Mono", ui-monospace, monospace}
.dc-message {padding: 7px 10px 8px}
.dc-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.55;
}
.dc-text-gmail {-webkit-line-clamp: 4}
.dc-text.dc-expanded {display: block; overflow: visible}
.dc-more {
  display: block;
  appearance: none;
  border: 0;
  padding: 0;
  margin-top: 3px;
  background: transparent;
  color: var(--meta);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.dc-more[hidden] {display: none}
.dc-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--meta);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.dc-icon {
  display: block;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex: none;
  color: var(--cv-steel, var(--meta));
}
.dc-icon.dc-check {color: var(--cv-ok, var(--ps-done))}
.dc-icon.dc-ban {color: var(--meta)}
.dc-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
/* The Use chooser sits inside the permission card when offered. */
.dc-card .dmenu {
  padding: 4px;
  border-radius: 12px;
  background: var(--popover);
  box-shadow: var(--popover-shadow);
}
.dc-card .dmenu [role="menuitem"] {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.dc-card .dmenu [role="menuitem"]:is(:hover, :focus-visible) {background: var(--popover-hover)}
.dc-pill {
  appearance: none;
  min-width: 0;
  min-height: 28px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.dc-pill.dc-primary {border-color: var(--role-action); font-weight: 500}
.dc-pill.dc-danger {border-color: var(--role-danger)}
.dc-pill:hover:not([aria-disabled="true"]), .dc-more:hover {background: var(--cv-hov, var(--fill-hover))}
.dc-pill[aria-disabled="true"] {cursor: default; color: var(--meta)}
.dc-pill .dc-icon {margin-top: 0}
.dc-pill .pbm.inl {margin: 0}
.dc-card-folded {padding: 10px 14px}
.dc-fold {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
}
.dc-fold .dc-icon {width: 15px; height: 15px}
.dc-fold-label {flex: 1; min-width: 0}
.dc-fold .dc-pill {min-height: 26px; flex: none; align-self: center}

.dc-local-removal {grid-template-columns: minmax(0, 1fr)}
.dc-local-removal .dc-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-self: end;
  width: max-content;
  max-width: 100%;
}
.dc-local-removal .dc-actions .dc-pill {
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  padding: 0 5px;
  line-height: 1.2;
}
.dc-local-removal .dc-danger:not([aria-disabled="true"]) {color: var(--role-danger)}
.dc-local-removal .dc-danger:is(:hover, :active):not([aria-disabled="true"]) {
  background: var(--role-danger);
  color: var(--paper);
}
@media (max-width: 520px) {
  .dc-local-removal .dc-actions {justify-self: stretch; width: 100%}
  .dc-actions {flex-wrap: nowrap}
  .dc-actions .dc-pill {flex: 1; min-height: 38px}
  .dc-fold {align-items: center}
  .dc-fold .dc-open {white-space: normal; max-width: 118px}
}
