.drive-setup-card {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding: 15px;
  border: 1px solid rgba(79,93,47,.14);
  border-radius: 20px;
  background: rgba(79,93,47,.06);
}
.drive-setup-head { display: grid; gap: 4px; }
.drive-setup-head strong { color: var(--text); font-size: 16px; }
.drive-setup-head span { color: var(--muted); font-size: 13px; font-weight: 780; line-height: 1.35; }
.drive-privacy-note,
.drive-auto-row,
.drive-oauth-status,
.drive-setup-status,
.drive-auto-status {
  margin: 0;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(79,93,47,.08);
  border: 1px solid rgba(79,93,47,.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}
.drive-auto-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.drive-auto-row div { display: grid; gap: 3px; }
.drive-auto-row span { color: var(--muted); font-size: 12px; font-weight: 780; }
.drive-auto-row button {
  min-width: 96px;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: #4f5d2f;
  color: #fffaf0;
  font-weight: 950;
}
.drive-auto-row button[aria-pressed="false"] { background: rgba(79,93,47,.18); color: var(--text); }
.drive-oauth-actions { display: grid; gap: 10px; }
.drive-oauth-status[hidden],
.drive-setup-status[hidden],
.drive-auto-status[hidden] { display: none; }
.drive-oauth-actions button:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.18); }
.drive-advanced {
  border: 1px dashed rgba(79,93,47,.18);
  border-radius: 16px;
  padding: 0;
  background: rgba(255,255,255,.42);
}
.drive-advanced summary {
  cursor: pointer;
  padding: 12px 13px;
  color: var(--text);
  font-weight: 950;
  list-style: none;
}
.drive-advanced summary::-webkit-details-marker { display: none; }
.drive-advanced summary::after { content: '›'; float: right; transform: rotate(90deg); opacity: .65; }
.drive-advanced[open] summary::after { transform: rotate(-90deg); }
.drive-advanced-body { display: grid; gap: 10px; padding: 0 12px 12px; }
.drive-checklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.drive-checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.35;
}
.drive-checklist li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}
.drive-checklist li.ok span { background: rgba(79,93,47,.16); color: #3f4e22; }
.drive-checklist li.pending span { background: rgba(201,166,70,.2); color: #8a6d25; }
.drive-session-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(79,93,47,.08);
  border: 1px solid rgba(79,93,47,.12);
}
.drive-session-summary span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.drive-session-summary strong { color: var(--text); }
.theme-dark .drive-setup-card,
.theme-dark .drive-advanced,
.theme-dark .drive-session-summary,
.theme-dark .drive-privacy-note,
.theme-dark .drive-auto-row,
.theme-dark .drive-oauth-status,
.theme-dark .drive-setup-status,
.theme-dark .drive-auto-status { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); color: #f8f6ef; }
.theme-dark .drive-setup-head span,
.theme-dark .drive-auto-row span,
.theme-dark .drive-session-summary span { color: rgba(248,246,239,.72); }
.theme-dark .drive-auto-row button[aria-pressed="false"] { background: rgba(255,255,255,.10); color: #f8f6ef; }
.theme-dark .drive-checklist li.ok span { background: rgba(210,180,92,.18); color: #f1d98f; }
.theme-dark .drive-checklist li.pending span { background: rgba(255,255,255,.10); color: #f1d98f; }
@media (max-width: 430px) {
  .drive-auto-row { align-items: stretch; flex-direction: column; }
  .drive-auto-row button { width: 100%; }
}
