/* Drive (v4): list, selection bar, upload progress. Shares row/card/side styles with Projects. */
.drv{min-width:0;position:relative}
.drv-main{min-width:0}.drv .tblwrap{max-width:100%}.tblwrap{position:relative}   /* visually hidden labels inside a scrolling table must not widen the page */
.drv-tbl td,.drv-tbl th{vertical-align:middle}
.drv-tbl td:first-child{width:44px}
.drv-tbl input[type=checkbox]{width:24px;height:24px}
.drv-sel{display:flex;gap:var(--space-3);align-items:center;flex-wrap:wrap;padding:var(--space-2) var(--space-4);margin:var(--space-3) 0;background:var(--action-tint);border:1px solid var(--line2);border-radius:var(--radius-md)}
.drv-sel[hidden]{display:none}
.drv-progress{display:grid;gap:var(--space-2);margin-top:var(--space-3)}
.drv-up{display:flex;gap:var(--space-3);align-items:center}
.drv-up progress{flex:1;min-width:0;height:10px}
.drv-up .err{color:var(--danger)}
.drv-drop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--action) 14%,transparent);border:3px dashed var(--action);font-size:22px;font-weight:600;color:var(--action-ink);pointer-events:none}
.drv-drop[hidden]{display:none}
.drv-dl{display:grid;grid-template-columns:max-content 1fr;gap:var(--space-2) var(--space-4)}
.drv-dl dt{color:var(--muted)}
.linklike{border:0;background:transparent;color:var(--action-ink);text-decoration:underline;font:inherit;cursor:pointer;min-height:44px;padding:0;text-align:left}
.drv .fpath a{display:inline-flex;align-items:center;min-height:44px}
.drv .fpath{display:flex;flex-wrap:wrap;align-items:center}

.ftile{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;font:700 10.5px/1 var(--font);letter-spacing:.02em;color:#fff;background:var(--c,#7D8190);box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.ftile.folder{background:var(--sunk);color:var(--text2);box-shadow:none}
.ftile svg{width:18px;height:18px}
.drv .tbl .fname{gap:12px}.drv .tbl .fname a{color:var(--text);font-weight:600;text-decoration:none}.drv .tbl .fname small{margin-left:4px;color:var(--muted);font-weight:400}
.drv .tbl .fname .linklike{background:none;border:0;padding:0;font:inherit;font-weight:600;color:var(--text);cursor:pointer;text-align:left}
/* Drive Home (Design v4): recently edited cards, folder quick links */
.drv-home{display:grid;gap:var(--space-3)}.drv-home>section{display:grid;gap:10px}.drv-home .over{margin:var(--space-3) 0 0}
.dcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.dcard{display:flex;flex-direction:column;border:var(--bw) solid var(--line);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--sh1);overflow:hidden;color:var(--text);text-decoration:none;text-align:left;font:inherit;padding:0;cursor:pointer;transition:box-shadow var(--d-2,200ms) var(--e-out,ease),transform var(--d-2,200ms) var(--e-out,ease)}
.dcard:hover{box-shadow:var(--sh2);transform:translateY(-2px)}.dcard-art{display:grid;place-items:center;height:110px;background:var(--bg2,var(--bg))}.dcard-art .ftile{transform:scale(1.5)}
.dcard-foot{display:grid;gap:2px;padding:12px 14px;border-top:var(--bw) solid var(--line);min-width:0}.dcard-foot b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dfolders{display:flex;flex-wrap:wrap;gap:10px}.dfolder{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:var(--bw) solid var(--line);border-radius:var(--r-md,12px);background:var(--surface);box-shadow:var(--sh1);color:var(--text);font-weight:600;text-decoration:none}
.dfolder:hover{box-shadow:var(--sh2)}.dfolder svg{color:var(--action)}
@media (max-width:620px){.dcards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dcard-art{height:84px}.dcard-art .ftile{transform:none}}
