/* Google Drive export — sits on the white / black / blue site.
   The colourful Drive mark is the only Google paint; everything else
   stays on the brand tokens. */

.gdrive-logo{width:20px;height:19px;flex:none;display:block;object-fit:contain}

.gdrive-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  background:#FFFFFF;color:var(--ink,#0B0D10);
  border:2px solid var(--ink,#0B0D10);
  font:inherit;font-size:14px;font-weight:800;
  padding:9px 16px;cursor:pointer;text-decoration:none;
  letter-spacing:.01em;white-space:nowrap;border-radius:999px;
}
.gdrive-btn:hover:not([disabled]){
  border-color:var(--blue,#2563EB);color:var(--blue,#2563EB);
}
.gdrive-btn[disabled]{opacity:.38;cursor:not-allowed}
.gdrive-btn.solid{
  background:var(--ink,#0B0D10);color:#FFFFFF;border-color:var(--ink,#0B0D10);
}
.gdrive-btn.solid:hover:not([disabled]){
  background:#FFFFFF;color:var(--ink,#0B0D10);
}
.gdrive-btn.block{width:100%}
.gdrive-btn.lg{padding:15px 20px;font-size:15px;text-transform:none}

.gdrive-banner{
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  margin:22px 0 18px;padding:16px 18px;
  background:#EFF6FF;border:1px solid rgba(37,99,235,.22);
  border-left:4px solid var(--blue,#2563EB);
  border-radius:16px;
}
.gdrive-banner .mark{
  width:42px;height:42px;flex:none;
  display:grid;place-items:center;background:#FFFFFF;
  border:1px solid var(--line,rgba(15,23,42,.12));
  border-radius:12px;
}
.gdrive-banner .mark .gdrive-logo{width:26px;height:24px}
.gdrive-banner .copy{flex:1 1 220px;min-width:0}
.gdrive-banner .copy b{display:block;font-size:16px;font-weight:900;letter-spacing:-.02em}
.gdrive-banner .copy p{margin-top:4px;font-size:13.5px;opacity:.72;max-width:52ch}
.gdrive-banner .gdrive-btn{margin-left:auto}

.gdrive-sell{margin-top:10px;font-size:13.5px;opacity:.68;max-width:46ch}

/* spoof results: zip stays, Drive sits beside it */
.gdrive-row{margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gdrive-row .dl{margin-top:0}
@media (max-width:620px){
  .gdrive-row{grid-template-columns:1fr}
  .gdrive-banner{padding:14px}
  .gdrive-banner .gdrive-btn{width:100%;margin-left:0}
}

/* modal — static copy, motion only on the card */
.gdrive-root[hidden]{display:none !important}
.gdrive-root{
  position:fixed;inset:0;z-index:80;
  background:rgba(11,13,16,.62);
  display:grid;place-items:end center;
  padding:16px;
}
.gdrive-sheet{
  position:relative;
  isolation:isolate;
  width:min(680px,100%);
  max-height:min(94vh,860px);
  overflow:auto;
  background:#FFFFFF;color:#0B0D10;
  border:1px solid rgba(15,23,42,.1);
  border-radius:24px;
  box-shadow:
    0 0 0 1px rgba(37,99,235,.08),
    0 28px 80px rgba(11,13,16,.28);
  padding:36px 36px 32px;
  animation:gdrive-in .32s ease-out;
}
@keyframes gdrive-in{
  from{opacity:0;transform:scale(.975)}
  to{opacity:1;transform:none}
}
.gdrive-sheet h2,
.gdrive-sheet .sub,
.gdrive-sheet .hint,
.gdrive-sheet .preview-note,
#gdrive-body,
.gdrive-actions{
  position:relative;z-index:1;
  transform:none;
}
.gdrive-sheet h2{
  font-size:clamp(22px,3.2vw,28px);font-weight:900;letter-spacing:-.03em;
  text-transform:none;line-height:1.15;max-width:none;
  padding-right:36px;
}
.gdrive-sheet .sub{margin-top:12px;font-size:15.5px;opacity:.7;max-width:none;line-height:1.45}
.gdrive-sheet .hint{margin-top:12px;font-size:13.5px;opacity:.58;line-height:1.5}
.gdrive-sheet .preview-note{
  margin-top:18px;padding:14px 16px;background:#EFF6FF;
  border-left:3px solid #2563EB;font-size:14px;line-height:1.45;
  border-radius:14px;
}
.gdrive-actions{margin-top:26px;display:flex;flex-wrap:wrap;gap:10px}
.gdrive-actions .gdrive-btn{flex:1 1 170px}
.gdrive-x{
  position:absolute;top:12px;right:12px;z-index:2;
  background:none;border:0;font:inherit;font-size:24px;line-height:1;
  cursor:pointer;opacity:.45;color:#0B0D10;padding:8px 12px;
  border-radius:999px;
}
.gdrive-x:hover{opacity:1}

.gdrive-choices{margin-top:20px;display:grid;gap:12px}
.gdrive-choice{
  display:block;width:100%;text-align:left;
  background:#F8FAFC;border:2px solid rgba(15,23,42,.12);
  padding:18px 18px;cursor:pointer;font:inherit;color:inherit;
  border-radius:16px;
}
.gdrive-choice:hover,.gdrive-choice:focus-visible{border-color:#2563EB}
.gdrive-choice .mark{
  width:36px;height:36px;margin-bottom:10px;
  background:#0B0D10;color:#93C5FD;
  display:grid;place-items:center;font-weight:900;font-size:15px;
  border-radius:10px;
}
.gdrive-choice b{display:block;font-size:16px;font-weight:800}
.gdrive-choice span{display:block;margin-top:5px;font-size:13.5px;opacity:.65;line-height:1.45;white-space:normal}

.gdrive-folders{margin:16px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.gdrive-folder{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;text-align:left;
  background:#F8FAFC;border:1px solid rgba(15,23,42,.12);
  padding:12px 14px;cursor:pointer;font:inherit;color:inherit;
  border-radius:12px;
}
.gdrive-folder:hover,.gdrive-folder:focus-visible{border-color:#2563EB}
.gdrive-folder .name{font-weight:800;font-size:14.5px}
.gdrive-folder .meta{font-size:12px;opacity:.5;white-space:nowrap}

.gdrive-field{margin-top:16px}
.gdrive-field label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}
.gdrive-field input{
  width:100%;background:#F8FAFC;border:1px solid rgba(15,23,42,.12);
  color:#0B0D10;padding:12px 13px;font:inherit;font-size:15px;
  border-radius:10px;
}
.gdrive-field input:focus{border-color:#2563EB;outline:none}
.gdrive-field .hint{margin-top:8px;font-size:13px;opacity:.62}

.gdrive-prog{margin-top:18px}
.gdrive-prog .bar{
  height:12px;background:rgba(15,23,42,.1);overflow:hidden;
  border-radius:999px;
}
.gdrive-prog .bar i{
  display:block;height:100%;width:0;background:#2563EB;
  transition:width .25s ease;
}
.gdrive-prog.work .bar i{animation:gdrive-fill 2s ease-in-out infinite}
@keyframes gdrive-fill{0%{width:12%}50%{width:64%}100%{width:28%}}
.gdrive-prog .meta{
  margin-top:10px;display:flex;justify-content:space-between;gap:12px;
  font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:12.5px;
}
.gdrive-prog .now{margin-top:8px;font-size:13.5px;opacity:.7;
                 white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gdrive-err{margin-top:14px;padding:12px 14px;border-left:3px solid #1E3A8A;
            background:#F1F5F9;font-size:14px}
.gdrive-ok{
  margin-top:14px;padding:12px 14px;
  border:1px solid rgba(37,99,235,.22);border-left:3px solid #2563EB;
  background:#EFF6FF;font-size:14.5px;
  border-radius:14px;
  box-shadow:0 10px 28px rgba(37,99,235,.12);
}
.gdrive-ok a{color:#2563EB;font-weight:700}

.gdrive-steps{margin-top:4px;margin-bottom:10px;display:flex;flex-wrap:wrap;gap:6px;padding-right:40px}
.gdrive-steps span{
  font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  padding:5px 10px;border:1px solid rgba(15,23,42,.12);opacity:.4;
  border-radius:999px;
}
.gdrive-steps span.on{opacity:1;border-color:#2563EB;color:#2563EB;background:#EFF6FF;box-shadow:0 4px 12px rgba(37,99,235,.16)}
.gdrive-steps span.done{opacity:.7;background:#F1F5F9}

.gdrive-unpack{
  position:relative;min-height:88px;margin-top:12px;
}
.gdrive-stack{
  display:flex;justify-content:center;align-items:flex-end;gap:8px;
  height:88px;
}
.gdrive-stack i{
  width:28px;aspect-ratio:9/16;border-radius:3px;
  background:#2563EB;
  animation:gdrive-pop 1.4s ease-in-out infinite;
}
.gdrive-stack i:nth-child(2){animation-delay:.1s;opacity:.85}
.gdrive-stack i:nth-child(3){animation-delay:.2s;background:#3B82F6}
.gdrive-stack i:nth-child(4){animation-delay:.3s;opacity:.85}
.gdrive-stack i:nth-child(5){animation-delay:.4s}
@keyframes gdrive-pop{
  0%,100%{transform:translateY(4px)}
  50%{transform:translateY(-6px)}
}

@media (min-width:720px){
  .gdrive-root{place-items:center}
}

@media (max-width:620px){
  .gdrive-root{
    place-items:end center;
    padding:10px 10px 14px;
    padding-bottom:max(14px, env(safe-area-inset-bottom, 0px));
  }
  .gdrive-sheet{
    width:100%;
    max-width:100%;
    max-height:min(88dvh, calc(100dvh - 28px));
    padding:24px 18px 20px;
    box-shadow:
      0 0 0 1px rgba(37,99,235,.1),
      0 16px 36px rgba(11,13,16,.24);
  }
  .gdrive-sheet h2{
    font-size:21px;
    line-height:1.22;
    padding-right:44px;
  }
  .gdrive-sheet .sub{font-size:15px;margin-top:10px}
  .gdrive-steps{padding-right:48px;margin-bottom:8px}
  .gdrive-x{
    top:4px;right:4px;
    width:44px;height:44px;padding:0;
    display:grid;place-items:center;
  }
  .gdrive-btn,
  .gdrive-btn.lg,
  .gdrive-actions .gdrive-btn{
    min-height:48px;
    flex:1 1 100%;
    padding:13px 16px;
  }
  .gdrive-choice{padding:16px}
  .gdrive-folder{
    min-height:48px;padding:14px;
    align-items:flex-start;flex-wrap:wrap;
  }
  .gdrive-folder .meta{white-space:normal}
  .gdrive-field input{min-height:48px;font-size:16px}
  .gdrive-unpack,.gdrive-stack{min-height:72px;height:72px}
  .gdrive-stack i{width:22px}
}

@media (prefers-reduced-motion:reduce){
  .gdrive-sheet,.gdrive-stack i,.gdrive-prog.work .bar i{animation:none}
  .gdrive-sheet,.gdrive-stack i{transform:none}
  .gdrive-prog .bar i{transition:none}
}
