/* Google Drive: connection card details and the file picker. */

.pglyph.gdrive { color: var(--accent-text); }

/* ---------- connection card ---------- */
.drive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.drive-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--bg);
}
.drive-who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 550; }
.drive-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-who .ic { color: var(--accent-text); flex: none; }

/* ---------- picker ---------- */
.sheet.drive-sheet { width: min(900px, 100%); }
.drive-picker { gap: 14px; grid-template-columns: minmax(0, 1fr); }
.drive-bar > *, .drive-top > * { min-width: 0; }
.drive-bar { display: grid; gap: 10px; }
.drive-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.drive-email { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.drive-email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.drive-search > .ic { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.drive-search > .input { padding-left: 40px; padding-right: 14px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 30px; font-size: 0.875rem; color: var(--text-2); }
.crumbs > .ic { color: var(--text-3); }
.crumb {
  appearance: none; border: 0; background: transparent; color: var(--accent-text); font: inherit; font-weight: 550;
  padding: 4px 8px; border-radius: 8px; cursor: pointer; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.crumb:hover:not(:disabled) { background: var(--accent-soft); }
.crumb:disabled, .crumb.now { color: var(--text); cursor: default; }

.drive-scroll { max-height: min(52dvh, 520px); margin: 0 -4px; padding: 4px; display: grid; gap: 14px; align-content: start; }
.drive-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.drive-grid .gtile { width: auto; height: auto; }
.drive-grid .gtile.sk { cursor: default; }
.drive-folder { background: var(--bg); }
.drive-folder .tile-ph { padding: 10px; gap: 8px; color: var(--accent-text); }
.drive-fname {
  color: var(--text); font-size: 0.8125rem; font-weight: 550; line-height: 1.3; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;
}
.drive-play {
  position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(6, 22, 13, 0.62); color: #fff;
}
.drive-play .ic { fill: currentColor; }
.drive-empty { grid-column: 1 / -1; text-align: center; padding: 28px 12px; }
.row.center { justify-content: center; }

@media (max-width: 640px) {
  .drive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .drive-scroll { max-height: 48dvh; }
  .drive-bar .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-self: stretch; }
  .drive-bar .seg button { padding: 0 11px; }
}
.ic.brand-ic { fill: currentColor; stroke: none; color: var(--accent-text); }
