.drive-attachments-dialog__privacy {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
  margin: 1.15rem 0 1.35rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--v2-surface, #f7f6f2) 86%, transparent);
}

.drive-attachments-dialog__privacy svg {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.45rem;
  border-radius: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
}

.drive-attachments-dialog__privacy p {
  margin: 0;
  color: var(--v2-muted, #5f5d57);
  line-height: 1.55;
}

.drive-attachments-dialog__privacy strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--v2-text, #11110f);
}

.drive-attachments-dialog__why {
  margin: -0.45rem 0 1.35rem;
  padding: 0 0.15rem;
  color: var(--v2-muted, #5f5d57);
  font-size: 0.82rem;
  line-height: 1.55;
}

.drive-attachments-dialog__why strong {
  color: var(--v2-text, #11110f);
}

.drive-attachments-dialog__list li {
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  gap: 0.75rem 0.9rem;
  align-items: start;
  padding: 0.9rem;
}

.drive-attachment-card__icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 0.8rem;
  color: var(--v2-text, #11110f);
  background: color-mix(in srgb, currentColor 5%, transparent);
}

.drive-attachment-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.drive-attachment-card__details {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.drive-attachments-dialog__list .drive-attachment-card__name {
  display: block;
  overflow: visible;
  color: var(--v2-text, #11110f);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.drive-attachments-dialog__list .drive-attachment-card__meta {
  display: block;
  color: var(--v2-muted, #5f5d57);
  font-size: 0.68rem;
  line-height: 1.35;
}

.drive-attachments-dialog__list .drive-attachment-card__access {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.2rem;
  color: var(--v2-muted, #5f5d57);
  font-size: 0.72rem;
  line-height: 1.4;
}

.drive-attachment-card__access::before {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.drive-attachments-dialog__list small[data-state="shared"] {
  color: #2d7654;
}

.drive-attachments-dialog__list small[data-state="lost"],
.drive-attachments-dialog__list small[data-state="error"] {
  color: #a43838;
}

.drive-attachments-dialog__list small[data-state="manual-share-required"] {
  color: #8a641d;
}

.drive-attachment-card__manual-share {
  margin: 0.45rem 0 0;
  padding: 0.7rem 0.8rem;
  border-left: 2px solid currentColor;
  border-radius: 0 0.75rem 0.75rem 0;
  color: var(--v2-muted, #5f5d57);
  background: color-mix(in srgb, currentColor 5%, transparent);
  font-size: 0.72rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.drive-attachment-card__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.drive-attachments-dialog__list a,
.drive-attachments-dialog__list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.62rem 0.85rem;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.drive-attachments-dialog__list a {
  border-color: var(--v2-text, #11110f);
  color: var(--v2-bg, #fff);
  background: var(--v2-text, #11110f);
}

.drive-attachments-dialog__status {
  min-height: 1.5rem;
  margin-top: 1rem;
}

.drive-attachments-dialog__status[data-state="error"] {
  color: #a43838;
}

.reference-links-dialog__footer > span {
  max-width: 33rem;
  color: var(--v2-muted, #5f5d57);
  font-size: 0.78rem;
  line-height: 1.45;
}

.account-status-dialog__workspace-link {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(23, 20, 15, 0.08);
  border-radius: 1rem;
  color: #17140f;
  background: #ffffff;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.account-status-dialog__workspace-link:hover,
.account-status-dialog__workspace-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(23, 20, 15, 0.14);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.account-status-dialog__workspace-link[hidden] {
  display: none;
}

.account-status-dialog__operations-link {
  margin-bottom: 0.6rem;
}

.account-status-dialog__operations-link:not([hidden]) + .account-status-dialog__workspace-link {
  margin-top: 0.6rem;
}

.account-status-dialog__workspace-link span {
  display: grid;
  gap: 0.18rem;
}

.account-status-dialog__workspace-link small {
  color: rgba(23, 20, 15, 0.64);
  font-size: 0.76rem;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .account-status-dialog__workspace-link {
    transition: none;
  }

  .account-status-dialog__workspace-link:hover,
  .account-status-dialog__workspace-link:focus-visible {
    transform: none;
  }
}

.account-status-dialog__workspace-link svg {
  flex: 0 0 auto;
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.account-status-dialog__deletion {
  margin-top: 18px;
  border: 1px solid color-mix(in srgb, #a32929 34%, transparent);
  border-radius: 14px;
}

.account-status-dialog__deletion[hidden] { display: none; }

.account-status-dialog__deletion summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: color-mix(in srgb, #a32929 84%, var(--v2-text, #11110f));
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.account-status-dialog__deletion summary::-webkit-details-marker { display: none; }
.account-status-dialog__deletion summary::after { content: "+"; font-size: 18px; font-weight: 400; }
.account-status-dialog__deletion[open] summary::after { content: "−"; }

.account-status-dialog__deletion-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.account-status-dialog__deletion-body p,
.account-status-dialog__deletion-body output {
  margin: 0;
  color: var(--v2-muted, #5f5d57);
  font-size: 10px;
  line-height: 1.6;
}

.account-status-dialog__deletion-body label { font-size: 11px; }

.account-status-dialog__deletion-body input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--v2-text, #11110f) 22%, transparent);
  border-radius: 10px;
  color: var(--v2-text, #11110f);
  background: transparent;
  font: 650 13px/1 Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.account-status-dialog__deletion-body button {
  min-height: 44px;
  border: 1px solid #a32929;
  border-radius: 999px;
  color: #fff;
  background: #a32929;
  font: 700 12px/1 Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
}

.account-status-dialog__deletion-body button:disabled { cursor: not-allowed; opacity: 0.42; }
.account-status-dialog__deletion-body output[data-state="error"] { color: #a32929; }
.account-status-dialog__deletion-body output[data-state="success"] { color: #247044; }
html[data-theme="dark"] .account-status-dialog__deletion summary,
html[data-theme="dark"] .account-status-dialog__deletion-body output[data-state="error"] { color: #ff9d9d; }
html[data-theme="dark"] .account-status-dialog__deletion-body output[data-state="success"] { color: #8fe0ad; }

.project-intake__submit-status {
  min-height: 1.2em;
  color: #a43838;
  font-size: 0.78rem;
}

.project-intake__footer button[data-loading="true"] {
  cursor: wait;
  opacity: 0.68;
}

.project-intake-summary__actions a {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--intake-text);
  border-radius: 999px;
  color: var(--intake-bg);
  background: var(--intake-text);
  font: inherit;
  text-decoration: none;
}

@media (max-width: 640px) {
  .drive-attachments-dialog__privacy {
    grid-template-columns: 2rem 1fr;
    padding: 0.85rem;
  }

  .drive-attachments-dialog__privacy svg {
    width: 2rem;
    height: 2rem;
  }

  .drive-attachments-dialog__why {
    margin-top: -0.55rem;
    font-size: 0.78rem;
  }

  .drive-attachments-dialog__list li {
    grid-template-columns: 2.45rem minmax(0, 1fr);
    gap: 0.72rem;
    padding: 0.85rem;
  }

  .drive-attachment-card__icon {
    width: 2.45rem;
    height: 2.45rem;
  }

  .drive-attachment-card__actions {
    display: grid;
    width: 100%;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.55rem;
    margin-top: 0.2rem;
  }

  .drive-attachment-card__manual-share {
    font-size: 0.75rem;
  }

  .drive-attachment-card__actions a,
  .drive-attachment-card__actions button {
    width: 100%;
    min-height: 2.6rem;
    justify-content: center;
    text-align: center;
  }

  .reference-links-dialog__footer {
    align-items: stretch;
  }

  .reference-links-dialog__footer > span {
    display: none;
  }
}

@media (forced-colors: active) {
  .drive-attachments-dialog__privacy,
  .account-status-dialog__workspace-link,
  .project-intake-summary__actions a {
    border: 1px solid CanvasText;
  }
}
