/* Use the Routes dashboard layout, cards, headings and buttons without restyling them. */
#viewSnapshots {
  padding-top:76px; min-height:100vh; height:auto; align-items:center;
  background:var(--gt-canvas); color:var(--gt-fg-default);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:12px;
  --warning:#9a6700;
}
body.dark #viewSnapshots { --warning:#e3b341; }
#viewSnapshots [hidden] { display:none!important; }
#viewSnapshots main { width:1440px; max-width:none; margin:0 auto; padding:16px 24px 40px; zoom:var(--gt-dashboard-scale,1); }
#viewSnapshots .snapshot-toolbar { margin-bottom:14px; gap:12px; flex-wrap:wrap; }
#viewSnapshots .gt-group-header { cursor:default; gap:10px; flex-wrap:wrap; }
#viewSnapshots .gt-group-header:hover { background:var(--gt-card-header); }
#viewSnapshots h2 { margin:0; }
#viewSnapshots .snapshot-card-body { padding:10px 14px; }
#viewSnapshots .muted,#viewSnapshots .snapshot-hint { color:var(--gt-fg-muted); }
#viewSnapshots .snapshot-hint { font-size:10px; line-height:1.5; margin:6px 0 0; }
#viewSnapshots .snapshot-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:10px 14px; gap:12px; border-bottom:1px solid var(--gt-border-subtle); }
#viewSnapshots .snapshot-metrics span { display:block; color:var(--gt-fg-muted); font-size:10px; margin-bottom:4px; }
#viewSnapshots .snapshot-metrics strong { font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
#viewSnapshots .table-wrap { overflow:auto; }
#viewSnapshots .snapshot-history { max-height:200px; }
#viewSnapshots .snapshot-jobs { max-height:125px; }
#viewSnapshots table { width:100%; border-collapse:collapse; text-align:left; font-size:11px; }
#viewSnapshots th { position:sticky; top:0; z-index:1; background:var(--gt-card-header); color:var(--gt-fg-muted); font-size:10px; font-weight:500; }
#viewSnapshots th,#viewSnapshots td { padding:7px 9px; border-bottom:1px solid var(--gt-border-subtle); vertical-align:middle; }
#viewSnapshots tbody tr:last-child td { border-bottom:0; }
#viewSnapshots tbody tr:hover { background:var(--gt-row-hover); }
#viewSnapshots .actions { display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
#viewSnapshots .badge { display:inline-block; font-size:10px; padding:2px 6px; border:1px solid var(--gt-border); border-radius:20px; color:var(--gt-fg-muted); white-space:nowrap; }
#viewSnapshots .badge.succeeded,#viewSnapshots .badge.writable { color:var(--gt-status-green); }
#viewSnapshots .badge.failed,#viewSnapshots .badge.reconnect,#viewSnapshots .error-text { color:var(--gt-status-red); }
#viewSnapshots .badge.blocked,#viewSnapshots .badge.read_only,#viewSnapshots .dependency { color:var(--warning); }
#viewSnapshots .badge.running,#viewSnapshots .badge.queued { color:var(--gt-fg-link); }
#viewSnapshots .dependency { display:block; font-size:10px; margin-top:3px; }
#viewSnapshots .error-text { overflow-wrap:anywhere; }
#viewSnapshots .snapshot-account { padding:10px 14px; border-bottom:1px solid var(--gt-border-subtle); }
#viewSnapshots .snapshot-account:last-child { border-bottom:0; }
#viewSnapshots .snapshot-account-heading { display:flex; align-items:center; flex-wrap:wrap; gap:7px; font-size:11px; overflow-wrap:anywhere; }
#viewSnapshots .snapshot-account-heading .badge { margin-left:auto; }
#viewSnapshots .snapshot-account-stats { display:flex; flex-wrap:wrap; gap:4px 12px; margin:6px 0 8px; color:var(--gt-fg-muted); font-size:10px; }
#viewSnapshots .snapshot-account-stats strong { color:var(--gt-fg-default); font-weight:500; }
#viewSnapshots form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 10px; align-items:end; }
#viewSnapshots label { display:flex; flex-direction:column; gap:4px; min-width:0; font-size:11px; color:var(--gt-fg-muted); }
#viewSnapshots input,#viewSnapshots select,#viewSnapshots textarea { width:100%; min-width:0; padding:6px 8px; border:1px solid var(--gt-border); border-radius:8px; background:var(--gt-canvas); color:var(--gt-fg-default); font:inherit; font-size:12px; }
#viewSnapshots textarea { resize:vertical; }
#viewSnapshots .checkbox { flex-direction:row; align-items:center; }
#viewSnapshots .checkbox input { width:auto; }
#viewSnapshots #settingsForm>.checkbox { grid-column:1/-1; }
#viewSnapshots #settingsForm .retention-hint { grid-column:1/3; font-size:10px; margin:0; }
#viewSnapshots #settingsForm>button { justify-self:end; }
#viewSnapshots .snapshot-account-form>.checkbox { grid-column:1/3; }
#viewSnapshots .snapshot-account-form>button { justify-self:end; }
#viewSnapshots #accountForm>button { grid-column:2/4; justify-self:end; }
#viewSnapshots #migrationForm { grid-template-columns:repeat(2,minmax(0,1fr)) auto; }
#viewSnapshots #clientForm { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
#viewSnapshots #clientForm>label:first-child { grid-row:1/3; }
#viewSnapshots #clientForm>label:first-child textarea { min-height:78px; }
#viewSnapshots #clientForm>span.muted { align-self:end; font-size:10px; }
#viewSnapshots #redirectUri { grid-column:2; overflow-wrap:anywhere; color:var(--gt-fg-link); font-size:10px; }
#viewSnapshots #clientForm>button { justify-self:start; }
#viewSnapshots #clientStatus { font-size:10px; text-align:right; align-self:center; }
#viewSnapshots :is(input,select,textarea,button,a):focus-visible { outline:2px solid var(--gt-fg-link); outline-offset:2px; }
#viewSnapshots #notice,#viewSnapshots .warning { border:1px solid color-mix(in srgb,var(--warning) 35%,transparent); background:color-mix(in srgb,var(--warning) 8%,transparent); color:var(--warning); border-radius:8px; padding:8px 10px; margin-bottom:10px; line-height:1.5; font-size:11px; }
#viewSnapshots #notice.error { color:var(--gt-status-red); border-color:var(--gt-status-red); }
#viewSnapshots #notice.success { color:var(--gt-status-green); border-color:var(--gt-status-green); }
#viewSnapshots .empty { text-align:center; padding:16px; color:var(--gt-fg-muted); font-size:11px; }
#viewSnapshots #setup { padding:14px; margin-bottom:12px; }
#viewSnapshots #setup p { margin:8px 0; }
#viewSnapshots #fileSearch { grid-template-columns:minmax(0,1fr) auto; margin:10px 14px; }
#viewSnapshots #fileSection .table-wrap { max-height:240px; }
#viewSnapshots #fileSection>.actions { margin:10px 14px; }
@media(max-width:820px) {
  #viewSnapshots { align-items:stretch; }
  #viewSnapshots main { width:100%; zoom:1; padding:16px 16px 24px; }
}
@media(max-width:480px) {
  #viewSnapshots .snapshot-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #viewSnapshots form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #viewSnapshots #accountForm>button { grid-column:2; }
  #viewSnapshots #settingsForm .retention-hint { grid-column:1; }
  #viewSnapshots .snapshot-account-form>.checkbox { grid-column:1; }
  #viewSnapshots #migrationForm { grid-template-columns:1fr; }
  #viewSnapshots #clientForm { grid-template-columns:1fr; }
  #viewSnapshots #clientForm>label:first-child { grid-row:auto; }
  #viewSnapshots #redirectUri { grid-column:1; }
  #viewSnapshots #clientStatus { text-align:left; }
}
