.drive-backup-panel{--drive-border:#d4dfda;--drive-muted:#53675e;--drive-input:#fff;--drive-text:#192c24;--drive-warn:#9b4c17}
html[data-ui-theme="dark"] .drive-backup-panel{--drive-border:#496455;--drive-muted:#b2c9bd;--drive-input:#15271e;--drive-text:#e5f1e9;--drive-warn:#ffcc91}
.drive-backup-panel .backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}
.drive-backup-panel .backup-card{padding:24px;border:1px solid var(--drive-border);border-radius:14px;min-width:0}
.drive-backup-panel .backup-card label{display:grid;gap:8px;margin:16px 0;font-size:14px;font-weight:600;color:var(--drive-text)}
.drive-backup-panel .backup-card input,.drive-backup-panel .backup-card select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--drive-border)!important;border-radius:8px;background:var(--drive-input)!important;color:var(--drive-text)!important;font:inherit}
.drive-backup-panel .backup-card [hidden]{display:none!important}
.drive-backup-panel .drive-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--drive-muted)}
.drive-backup-panel h3{margin:16px 0 10px}.drive-backup-panel p{line-height:1.6}
.drive-backup-panel .muted,.drive-backup-panel small{color:var(--drive-muted)!important}
.drive-backup-panel .needs-attention,.drive-backup-panel .drive-backup-error{color:var(--drive-warn)!important}
.drive-backup-panel td small{display:block;max-width:480px;margin-top:6px;white-space:normal;line-height:1.5}
.drive-backup-panel .drive-account{font-weight:600;color:var(--drive-text)}
.drive-backup-panel .row-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
.drive-backup-panel .drive-setup{margin-top:24px;border-top:1px solid var(--drive-border);padding-top:16px}.drive-backup-panel summary{cursor:pointer;font-weight:600;color:var(--drive-text)}
.drive-backup-panel .drive-copy{display:flex;gap:8px}.drive-backup-panel .drive-copy input{flex:1}
.drive-backup-panel .btn.primary{background:#17694e!important;color:#fff!important;border:1px solid #2f8a69!important;min-height:42px}
@media(max-width:800px){.drive-backup-panel .backup-grid{grid-template-columns:1fr}.drive-backup-panel .backup-card{padding:18px}.drive-backup-panel .settings-panel-head{gap:12px;flex-wrap:wrap}}

.drive-backup-panel .backup-card>a,.drive-backup-panel .drive-setup a{color:#17694e;text-decoration:underline}html[data-ui-theme="dark"] .drive-backup-panel .drive-setup a{color:#a4e7cb}.drive-backup-panel form>small{display:block;margin-top:14px}.drive-backup-panel input[type="time"]{color-scheme:light}html[data-ui-theme="dark"] .drive-backup-panel input[type="time"]{color-scheme:dark}

/* Backup history actions: keep existing handlers, one consistent icon per button. */
.drive-backup-panel td:last-child{white-space:nowrap}
.drive-backup-panel button:is([onclick^="restoreSystemBackup("],[onclick^="restoreModularBackup("],[onclick^="removeSystemBackup("]){appearance:none!important;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:34px;margin:2px 0;padding:7px 11px!important;border:1px solid #d3dfd9!important;border-radius:8px!important;background:#f3f7f5!important;color:#2b5041!important;font:600 12px/1.2 'DM Sans',sans-serif!important;box-shadow:none!important;cursor:pointer;vertical-align:middle;transition:background .15s,border-color .15s}
.drive-backup-panel button[onclick^="removeSystemBackup("]{margin-left:6px;border-color:#eed2ce!important;background:#fff7f5!important;color:#ae4038!important}
.drive-backup-panel button:is([onclick^="restoreSystemBackup("],[onclick^="restoreModularBackup("],[onclick^="removeSystemBackup("]) :is(svg,.lo-icon){display:none!important}
.drive-backup-panel button:is([onclick^="restoreSystemBackup("],[onclick^="restoreModularBackup("],[onclick^="removeSystemBackup("])::before{content:"";display:block;width:15px;height:15px;flex:0 0 15px;background:currentColor}
.drive-backup-panel button:is([onclick^="restoreSystemBackup("],[onclick^="restoreModularBackup("]):hover{background:#e6f1eb!important;border-color:#a9c8b8!important}
.drive-backup-panel button[onclick^="removeSystemBackup("]:hover{background:#fce8e4!important;border-color:#d9a49d!important}
.drive-backup-panel button:is([onclick^="restoreSystemBackup("],[onclick^="restoreModularBackup("],[onclick^="removeSystemBackup("]):focus-visible{outline:2px solid #3c9974!important;outline-offset:3px}
html[data-ui-theme="dark"] .drive-backup-panel button:is([onclick^="restoreSystemBackup("],[onclick^="restoreModularBackup("]){background:#203d30!important;border-color:#456553!important;color:#d3e9dd!important}
html[data-ui-theme="dark"] .drive-backup-panel button[onclick^="removeSystemBackup("]{background:#342822!important;border-color:#785148!important;color:#f0afa5!important}
html[data-ui-theme="dark"] .drive-backup-panel button:is([onclick^="restoreSystemBackup("],[onclick^="restoreModularBackup("]):hover{background:#2b4c3c!important;border-color:#739480!important}
html[data-ui-theme="dark"] .drive-backup-panel button[onclick^="removeSystemBackup("]:hover{background:#49302b!important;border-color:#bd8074!important}

.drive-backup-panel button:is([onclick^="restoreSystemBackup("],[onclick^="restoreModularBackup("])::before{-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2010a9%209%200%201%201%202%208M3%204v6h6%27%2F%3E%3Cpath%20d%3D%27M12%207v5l3%202%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2010a9%209%200%201%201%202%208M3%204v6h6%27%2F%3E%3Cpath%20d%3D%27M12%207v5l3%202%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}

.drive-backup-panel button[onclick^="removeSystemBackup("]::before{-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%206h18M9%206V3h6v3M5%206l1%2015h12l1-15M10%2010v7M14%2010v7%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.8%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%206h18M9%206V3h6v3M5%206l1%2015h12l1-15M10%2010v7M14%2010v7%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}

.drive-backup-panel .company-backup-card{margin:18px 0;display:grid;grid-template-columns:1fr minmax(260px,420px);gap:24px;align-items:center}.drive-backup-panel .company-backup-card p{margin:8px 0}.drive-backup-panel .company-backup-label{display:inline-block;padding:7px 9px;font-size:12px;color:var(--drive-muted)}.drive-backup-panel button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:800px){.drive-backup-panel .company-backup-card{grid-template-columns:1fr;gap:8px}}

.drive-backup-panel .backup-restore-summary{padding:16px;margin:16px 0;border:1px solid var(--drive-border);border-radius:10px}.backup-restore-summary small{display:block;margin-top:6px}
