/* Your data: the pieces of this redesigned screen only (docs/mockups/redesign/); shared ones are
   css/widgets.css. Colours come from the tokens in style.css only. One narrow column even where #app is wide. */
.dat{display:flex;flex-direction:column;gap:18px;max-width:560px;margin-inline:auto;padding-block-end:24px;padding-inline:4px}
.dat .card{margin:0}
.dat-group{display:flex;flex-direction:column;gap:8px}
.dat-group>.card{padding-block:6px}
.dat-row{color:var(--ink);font:inherit}
.dat-row[disabled]{opacity:.6;cursor:progress}
.dat-row[aria-current]{cursor:default}
label.dat-row{position:relative}

/* the fold of the other downloads: plain rows, each a 48 px tap target */
.dat-more .inside{gap:2px}
.dat-sub{display:flex;align-items:center;gap:12px;min-height:48px;padding:4px 0;border:0;background:none;color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.dat-sub .rowic{width:30px;height:30px;border-radius:10px}

/* the restore preview, under its two rows */
.dat-restore{display:flex;flex-direction:column}
.dat-preview{display:flex;flex-direction:column;gap:8px;padding:12px;margin-block:6px 10px;border-radius:var(--rm);background:var(--surface2)}
.dat-preview .btn{align-self:flex-start;min-height:48px}
/* the two restore modes share the card's width and wrap their labels: at their one-line width ("Merge (keep newer)",
   "Replace everything") the pair is wider than a 390 px phone, which widens the whole page and pushes the bottom bar
   below the screen */
.dat-preview .seg{grid-auto-columns:minmax(0,1fr)}
.dat-preview .seg button{white-space:normal}
.dat-pre{white-space:pre-wrap;margin:0;max-height:220px;overflow:auto}

/* delete: the row opens a box asking for the password or the typed word */
.dat-del{border-top:1px solid var(--line)}
.dat-del>summary{list-style:none;border-top:0}
.dat-del>summary::-webkit-details-marker{display:none}
/* a row folded inside a fold (the More fold on Me): its own .chev turns; the outer fold's descendant ::after arrow would show the outer state */
details.fold .dat-del>summary::after{content:none}
.dat-del[open]>summary .chev{transform:rotate(90deg)}
[dir=rtl] .dat-del[open]>summary .chev{transform:scaleX(-1) rotate(90deg)}
.dat-delbox{display:flex;flex-direction:column;gap:10px;padding-block:4px 14px}
.dat-delbox p{margin:0;color:var(--ink2)}
.dat-delbox .btn{align-self:flex-start;min-height:48px}
.dat-where{margin:0;padding-inline:4px}

/* where the data is stored, and the Google Drive backup's setup, buttons and list (views/drive-backup.js) */
.drv-setup{display:flex;flex-direction:column;gap:10px;padding:12px;margin-block:6px 10px;border-radius:var(--rm);background:var(--surface2)}
.drv-setup p{margin:0}
.drv-warn{display:flex;gap:8px;align-items:flex-start;color:var(--amber)}
.drv-warn .i{flex:none;margin-block-start:2px}
.drv-btns{display:flex;flex-wrap:wrap;gap:8px;padding-block:4px 10px}
.drv-btns .btn{min-height:48px}
.drv-list{display:flex;flex-direction:column;gap:2px;padding-block-end:8px}
.drv-ask{display:flex;flex-direction:column;gap:8px;padding:8px 0 12px}
.drv-ask .btn{align-self:flex-start;min-height:48px}
.drv-nudge{display:flex;flex-direction:column;gap:4px;padding:6px 8px}
.drv-nudge .btn{align-self:flex-end}
.dat-group .pill.on{color:var(--a);border-color:currentColor}
