/* 0.6.71 — Theme Parity & Final QA
   Loaded last. Only parity/hardening fixes: no layout redesign and no data-flow changes. */

/* Progress tracks must follow the active paper/surface instead of inheriting old dark literals. */
.home-resume-copy i,
.library-resume-progress,
.detail-progress{
  background:var(--surface3);
}

/* The outer desktop frame is part of the app preview too: do not force a dark surround in light mode. */
@media (min-width:821px){
  html[data-theme="light"] body{background:#deddd7}
  html[data-theme="light"] .kd-runtime{border-color:var(--line2);box-shadow:0 18px 70px rgba(44,43,39,.18)}
}

/* Google Drive recovery used to be the last local-first gate that stayed dark while the chosen theme was light. */
html[data-theme="light"] .access-recovery{
  background:
    radial-gradient(circle at 75% 18%,rgba(117,64,218,.10),transparent 31%),
    linear-gradient(180deg,#eeece4,#f5f3ec);
  color:#161a15;
}
html[data-theme="light"] .access-recovery-card{
  border-color:#b8bcb2;
  background:#fbfaf5;
  box-shadow:0 24px 70px rgba(44,43,39,.14);
}
html[data-theme="light"] .access-index{color:#6a7267}
html[data-theme="light"] .access-index i{background:#bdc1b7}
html[data-theme="light"] .access-copy{color:#5f685c}
html[data-theme="light"] .access-backup-card{
  border-color:#b6bbb0;
  background:#e9e8e1;
}
html[data-theme="light"] .access-backup-card small{color:#667064}
html[data-theme="light"] .access-backup-card strong{color:#171b16}
html[data-theme="light"] .access-backup-card em{color:#60685e}
html[data-theme="light"] .access-secondary{
  border-color:#aeb3a9;
  background:#f2f1eb;
  color:#30382f;
}
html[data-theme="light"] .access-secondary:active{background:#e6e6de}
html[data-theme="light"] .access-privacy{color:#646d62}
html[data-theme="light"] .access-google-mark{border-color:#8e968b;color:#44563d;background:#f8f7f2}
html[data-theme="light"] .access-status{
  border-left-color:#7651cf;
  background:#f1edfb;
  color:#3f3552;
  box-shadow:0 14px 45px rgba(44,43,39,.16);
}
html[data-theme="light"] .access-status.is-error{border-color:var(--danger);background:var(--danger-soft);color:var(--danger)}
html[data-theme="light"] .access-status.is-success{border-color:#526d0a;background:#edf2df;color:#34420f}

/* Keep focus affordances visible in both palettes, including sheets/dialogs. */
html[data-theme="light"] .sheet-close:focus-visible,
html[data-theme="light"] .icon:focus-visible,
html[data-theme="light"] .row-action:focus-visible,
html[data-theme="light"] .choice:focus-visible,
html[data-theme="light"] .button:focus-visible{
  outline:2px solid #6952c8;
  outline-offset:2px;
}
html[data-theme="dark"] .sheet-close:focus-visible,
html[data-theme="dark"] .icon:focus-visible,
html[data-theme="dark"] .row-action:focus-visible,
html[data-theme="dark"] .choice:focus-visible,
html[data-theme="dark"] .button:focus-visible{
  outline:2px solid var(--purple);
  outline-offset:2px;
}
