:root {
  --ink: #16282a;
  --terminal: #1f3334;
  --terminal-deep: #142323;
  --surface: #faf8f3;
  --panel: #ffffff;
  --line: #e6e1d5;
  --line-strong: #cfc8b8;
  --mint: #9fe1cb;
  --mint-deep: #0f6e56;
  --mint-dark: #085041;
  --lavender: #afa9ec;
  --lavender-soft: #eeedfe;
  --lavender-deep: #534ab7;
  --blush: #f4c0d1;
  --blush-soft: #fbeaf0;
  --blush-deep: #993556;
  --amber-soft: #faeeda;
  --amber-deep: #854f0b;
  --red-soft: #fcebeb;
  --red: #a32d2d;
  --muted: #6b6a60;
  --radius: 10px;
  --mono: "Anonymous Pro", ui-monospace, "Courier New", monospace;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- header / terminal chrome ---------- */
header.topbar {
  background: var(--terminal);
  color: #f3efe6;
  padding: 14px 22px 0;
}
.brandrow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.5px;
}
.brand .cursor { color: var(--lavender); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .brand .cursor { animation: none; } }
.version { font-family: var(--mono); font-size: 13px; color: var(--lavender); }
.tagline { font-size: 13px; color: #cfd8d4; }
.authbox { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.authbox button {
  background: transparent; border: 1px solid var(--mint); color: var(--mint);
  font-family: var(--mono); font-size: 13px; padding: 5px 12px; border-radius: 6px; cursor: pointer;
}
.authbox button:hover { background: rgba(159, 225, 203, 0.12); }
.syncstate { font-family: var(--mono); font-size: 12px; color: #9fb3ad; }

.statusline {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--mint);
  background: var(--terminal);
  padding: 10px 22px 12px;
  white-space: nowrap; overflow-x: auto;
}
.statusline .prompt { color: var(--lavender); }
.statusline .flag-bad { color: #f0997b; }
.statusline .flag-ok { color: var(--mint); }

nav.tabs {
  display: flex; gap: 2px; background: var(--terminal); padding: 0 16px;
  overflow-x: auto;
}
nav.tabs button {
  font-family: var(--mono); font-size: 14px;
  background: transparent; color: #b9c6c1; border: none; cursor: pointer;
  padding: 10px 16px; border-radius: 8px 8px 0 0;
}
nav.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 700; }
nav.tabs button:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }

main { max-width: 1060px; margin: 0 auto; padding: 26px 20px 80px; }
section[hidden] { display: none; }

h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
h2 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* ---------- cards & grids ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.metric {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.metric .label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: lowercase; }
.metric .value { font-family: var(--mono); font-size: 28px; font-weight: 700; margin-top: 2px; }
.metric.bad .value { color: var(--red); }
.metric.good .value { color: var(--mint-deep); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 14px 0;
}
.card h3 { margin: 0 0 10px; font-size: 15px; font-family: var(--mono); }

.pill {
  display: inline-block; font-family: var(--mono); font-size: 12.5px;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}
.pill.ok    { background: #e1f5ee; color: var(--mint-dark); }
.pill.warn  { background: var(--amber-soft); color: var(--amber-deep); }
.pill.bad   { background: var(--red-soft); color: var(--red); }
.pill.info  { background: var(--lavender-soft); color: var(--lavender-deep); }
.pill.pink  { background: var(--blush-soft); color: var(--blush-deep); }
.pill.muted { background: #f1efe8; color: var(--muted); }

table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th {
  text-align: left; font-family: var(--mono); font-size: 12px; color: var(--muted);
  font-weight: 400; padding: 6px 8px; border-bottom: 1px solid var(--line);
}
table.grid td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid tr:last-child td { border-bottom: none; }
.mono { font-family: var(--mono); }
.small { font-size: 13px; color: var(--muted); }
.flagnote { font-size: 13px; color: var(--red); margin: 6px 0 0; }

/* fall-off bars */
.bar-row { margin: 10px 0; }
.bar-head { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 4px; }
.bar-track { height: 9px; background: #efece2; border-radius: 5px; overflow: hidden; }
.bar-fill { height: 9px; background: var(--lavender); border-radius: 5px; }
.bar-fill.soon { background: var(--mint); }

/* ---------- buttons & forms ---------- */
button.btn, a.btn {
  font-family: var(--mono); font-size: 13.5px; cursor: pointer; text-decoration: none;
  background: var(--terminal); color: var(--mint); border: 1px solid var(--terminal);
  padding: 8px 14px; border-radius: 8px; display: inline-block;
}
button.btn:hover { background: #2a4344; }
button.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
button.btn.secondary:hover { background: #f1eee4; }
button.btn.danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
button.btn.small { font-size: 12px; padding: 4px 10px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--lavender-deep); outline-offset: 1px;
}
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }

label.f { display: block; font-size: 13px; font-family: var(--mono); color: var(--muted); margin: 10px 0 3px; }
input[type="text"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; font-family: var(--body); font-size: 15px;
  border: 1px solid var(--line-strong); border-radius: 7px; padding: 8px 10px; background: #fff; color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .formgrid { grid-template-columns: 1fr; } }
fieldset.bureau {
  border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0; padding: 6px 14px 14px;
}
fieldset.bureau legend { font-family: var(--mono); font-size: 13px; padding: 0 6px; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0 2px; }
.checkline input { width: auto; }

dialog {
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 22px 24px;
  width: min(720px, 94vw); max-height: 88vh; overflow-y: auto;
  background: var(--surface); color: var(--ink);
}
dialog::backdrop { background: rgba(22, 40, 42, 0.55); }
dialog h2 { margin-top: 0; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* tasks */
.task { display: flex; align-items: flex-start; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: none; }
.task input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--mint-deep); }
.task.done .t-title { text-decoration: line-through; color: var(--muted); }
.t-title { font-size: 15px; }
.t-meta { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.suggest { background: var(--lavender-soft); border: 1px dashed var(--lavender); border-radius: var(--radius); padding: 10px 14px; margin: 8px 0; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.suggest .s-text { font-size: 14px; color: var(--lavender-deep); }

/* letter print view */
#letterPrint { display: none; }
@media print {
  body > *:not(#letterPrint) { display: none !important; }
  #letterPrint { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 13pt; line-height: 1.5; white-space: pre-wrap; padding: 0.5in; }
}

footer.disclaimer {
  max-width: 1060px; margin: 30px auto 0; padding: 18px 20px; font-size: 12.5px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.empty { color: var(--muted); font-size: 14px; padding: 14px 4px; font-style: italic; }
.kbd { font-family: var(--mono); background: #f1efe8; border-radius: 4px; padding: 1px 6px; font-size: 12.5px; }


/* Google sign-in gate */
.login-gate {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  max-width: 520px;
  width: 100%;
  border: 1px solid currentColor;
  border-radius: 22px;
  padding: 32px;
  text-align: center;
}

.login-card h1 {
  margin-top: 0;
}

.login-card button,
#authBtn {
  cursor: pointer;
}

body.auth-locked .login-gate {
  display: flex;
}

body.auth-locked header,
body.auth-locked main {
  display: none;
}

body.auth-unlocked .login-gate {
  display: none;
}


/* LUPA Clarity comfort polish — added targeted overrides */
:root {
  --lupa-ink: #101828;
  --lupa-muted: #667085;
  --lupa-purple: #6d5dfc;
  --lupa-turquoise: #20c7c9;
  --lupa-soft: #f7fbff;
  --lupa-card: #ffffff;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(32, 199, 201, 0.18), transparent 32rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #f4f1ff 100%);
  color: var(--lupa-ink);
}

header, .topbar {
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.96), rgba(32, 199, 201, 0.92));
  color: #ffffff;
}

header *, .topbar * {
  color: inherit;
}

h1, h2, h3 {
  letter-spacing: -0.03em;
  color: var(--lupa-ink);
}

.card, .login-card {
  background: var(--lupa-card);
  border: 1px solid rgba(109, 93, 252, 0.14);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.btn.primary,
button.primary,
button[data-action="analyze-reports"] {
  background: linear-gradient(135deg, var(--lupa-purple), var(--lupa-turquoise));
  border: none;
  color: #ffffff;
  font-weight: 700;
}

.btn,
button {
  border-radius: 999px;
}

.sub,
.small,
.empty {
  color: var(--lupa-muted);
}

input,
select,
textarea {
  border-radius: 14px;
}


/* LUPA Clarity front page polish */
.login-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 22px;
  background:
    radial-gradient(circle at top right, rgba(32, 199, 201, 0.24), transparent 34rem),
    radial-gradient(circle at bottom left, rgba(109, 93, 252, 0.18), transparent 30rem),
    linear-gradient(135deg, #ffffff 0%, #f9fcff 48%, #f4f0ff 100%);
}

.login-hero {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.login-copy {
  padding: 26px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #0f6b72;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  color: #101828;
}

.login-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #5b4be8;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: #667085;
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(109, 93, 252, 0.16);
  color: #344054;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.pricing-section { margin-top: 30px; }
.pricing-section h2 { margin: 6px 0; }
.pricing-section > div > p { color: #667085; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.pricing-card { padding: 18px; border: 1px solid rgba(109, 93, 252, 0.16); border-radius: 20px; background: rgba(255,255,255,0.88); box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06); }
.pricing-card h3 { margin: 0 0 12px; color: #101828; }
.pricing-card p { margin: 7px 0; color: #667085; line-height: 1.45; }
.pricing-card .btn { margin-top: 12px; }

.login-card {
  padding: 34px;
  border-radius: 28px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(109, 93, 252, 0.16);
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.12);
  backdrop-filter: blur(16px);
}

.login-card h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  letter-spacing: -0.05em;
  color: #101828;
}

.login-card .sub {
  margin-bottom: 24px;
  line-height: 1.6;
}

.login-card button,
.login-card .btn.primary {
  width: 100%;
  padding: 15px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #6d5dfc, #20c7c9);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(32, 199, 201, 0.22);
}

.login-card .small {
  display: block;
  margin-top: 18px;
  color: #667085;
  line-height: 1.55;
}

@media (max-width: 850px) {
  .login-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .login-copy {
    padding: 4px;
  }

  .login-card {
    padding: 26px;
  }
}


/* LUPA Clarity hero magnifying glass visual */
.lupa-visual {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 640px;
}

.lupa-glass {
  position: relative;
  width: 156px;
  height: 156px;
  flex: 0 0 auto;
}

.lupa-lens {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.62)),
    linear-gradient(135deg, rgba(109, 93, 252, 0.16), rgba(32, 199, 201, 0.2));
  border: 8px solid rgba(109, 93, 252, 0.9);
  box-shadow: 0 22px 44px rgba(109, 93, 252, 0.18);
}

.lupa-lens span {
  color: #0f6b72;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lupa-lens strong {
  color: #101828;
  font-size: 1.05rem;
}

.lupa-handle {
  position: absolute;
  width: 72px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d5dfc, #20c7c9);
  transform: rotate(45deg);
  right: 8px;
  bottom: 20px;
  box-shadow: 0 16px 28px rgba(32, 199, 201, 0.25);
}

.lupa-mini-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(109, 93, 252, 0.16);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
}

.lupa-mini-card span {
  display: block;
  margin-bottom: 6px;
  color: #0f6b72;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lupa-mini-card strong {
  display: block;
  color: #101828;
  margin-bottom: 8px;
}

.lupa-mini-card p {
  margin: 0;
  color: #667085;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .lupa-visual {
    flex-direction: column;
    align-items: flex-start;
  }

  .lupa-glass {
    transform: scale(0.88);
    transform-origin: left center;
  }
}


/* LUPA Clarity inside app polish v2 */
body.auth-unlocked {
  background:
    radial-gradient(circle at top right, rgba(32, 199, 201, 0.18), transparent 36rem),
    radial-gradient(circle at bottom left, rgba(109, 93, 252, 0.13), transparent 34rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 50%, #f5f1ff 100%) !important;
  color: #101828;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.auth-unlocked header {
  background: rgba(255, 255, 255, 0.82) !important;
  color: #101828 !important;
  border-bottom: 1px solid rgba(109, 93, 252, 0.13) !important;
  box-shadow: 0 14px 45px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(18px);
}

body.auth-unlocked header h1,
body.auth-unlocked header .brand,
body.auth-unlocked header strong {
  color: #101828 !important;
  letter-spacing: -0.04em;
}

body.auth-unlocked header .tagline,
body.auth-unlocked header .small {
  color: #667085 !important;
}

body.auth-unlocked nav,
body.auth-unlocked .tabs {
  background: transparent !important;
}

body.auth-unlocked button[role="tab"] {
  color: #344054 !important;
  border-radius: 999px 999px 0 0 !important;
  font-weight: 700;
  text-transform: none;
}

body.auth-unlocked button[role="tab"][aria-selected="true"] {
  background: #ffffff !important;
  color: #5b4be8 !important;
  box-shadow: 0 -10px 30px rgba(109, 93, 252, 0.08);
}

body.auth-unlocked main {
  max-width: 1180px;
}

body.auth-unlocked h1 {
  font-size: 2.1rem;
  letter-spacing: -0.05em;
  color: #101828;
}

body.auth-unlocked h2,
body.auth-unlocked h3 {
  color: #101828;
  letter-spacing: -0.035em;
}

body.auth-unlocked .card {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(109, 93, 252, 0.13) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 55px rgba(16, 24, 40, 0.07) !important;
}

body.auth-unlocked .metric {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(109, 93, 252, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.06);
}

body.auth-unlocked .metric .label {
  color: #667085 !important;
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: 0;
}

body.auth-unlocked .metric .value {
  color: #101828 !important;
  font-weight: 900;
}

body.auth-unlocked .prompt {
  color: #5b4be8 !important;
  font-weight: 800;
}

body.auth-unlocked .sub,
body.auth-unlocked .small,
body.auth-unlocked .empty {
  color: #667085 !important;
  line-height: 1.65;
}

body.auth-unlocked .btn,
body.auth-unlocked button {
  border-radius: 999px !important;
}

body.auth-unlocked .btn.primary,
body.auth-unlocked button[data-action="analyze-reports"] {
  background: linear-gradient(135deg, #6d5dfc, #20c7c9) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 14px 30px rgba(32, 199, 201, 0.22);
}

body.auth-unlocked input,
body.auth-unlocked select,
body.auth-unlocked textarea {
  border-radius: 14px !important;
  border: 1px solid rgba(109, 93, 252, 0.18) !important;
}

body.auth-unlocked table.grid th {
  color: #5b4be8 !important;
  text-transform: none !important;
  font-weight: 800;
}

body.auth-unlocked table.grid td {
  color: #344054 !important;
}

body.auth-unlocked #aiAnalyzerResults {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(32, 199, 201, 0.06);
  border: 1px solid rgba(32, 199, 201, 0.14);
}


/* LUPA Clarity full inside app polish v3 */
body.auth-unlocked {
  background:
    radial-gradient(circle at top right, rgba(32, 199, 201, 0.18), transparent 34rem),
    radial-gradient(circle at bottom left, rgba(109, 93, 252, 0.12), transparent 34rem),
    linear-gradient(135deg, #ffffff 0%, #f9fcff 48%, #f5f1ff 100%) !important;
  color: #101828 !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Make almost everything inside the app stop looking like code */
body.auth-unlocked main,
body.auth-unlocked section,
body.auth-unlocked .card,
body.auth-unlocked .metric,
body.auth-unlocked p,
body.auth-unlocked label,
body.auth-unlocked input,
body.auth-unlocked button,
body.auth-unlocked table,
body.auth-unlocked td,
body.auth-unlocked th {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Top header */
body.auth-unlocked header {
  margin: 18px auto 0 !important;
  width: min(1180px, calc(100% - 32px)) !important;
  border-radius: 28px !important;
  padding: 18px 22px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(109, 93, 252, 0.14) !important;
  box-shadow: 0 22px 65px rgba(16, 24, 40, 0.08) !important;
  backdrop-filter: blur(18px);
  color: #101828 !important;
}

body.auth-unlocked header h1,
body.auth-unlocked header .brand {
  color: #101828 !important;
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
}

body.auth-unlocked header h1::after,
body.auth-unlocked header .brand::after {
  content: "" !important;
}

/* Version/tagline should be subtle, not code-like */
body.auth-unlocked header .small,
body.auth-unlocked header .tagline,
body.auth-unlocked header span {
  color: #667085 !important;
}

/* Status bar */
body.auth-unlocked #statusLine,
body.auth-unlocked .status,
body.auth-unlocked .sync,
body.auth-unlocked .sync-state {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.auth-unlocked #statusLine {
  width: min(1180px, calc(100% - 32px)) !important;
  margin: 12px auto 0 !important;
  padding: 13px 18px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(32, 199, 201, 0.16) !important;
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.05) !important;
  color: #344054 !important;
}

body.auth-unlocked .prompt {
  color: #5b4be8 !important;
  font-weight: 900 !important;
}

/* Tabs */
body.auth-unlocked nav {
  width: min(1180px, calc(100% - 32px)) !important;
  margin: 12px auto 0 !important;
  padding: 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(109, 93, 252, 0.10) !important;
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.05) !important;
}

body.auth-unlocked button[role="tab"] {
  border-radius: 999px !important;
  padding: 11px 17px !important;
  color: #344054 !important;
  font-weight: 750 !important;
  background: transparent !important;
  border: none !important;
}

body.auth-unlocked button[role="tab"][aria-selected="true"] {
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.14), rgba(32, 199, 201, 0.14)) !important;
  color: #5b4be8 !important;
}

/* Main layout */
body.auth-unlocked main {
  width: min(1180px, calc(100% - 32px)) !important;
  margin: 38px auto !important;
}

body.auth-unlocked h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.07em !important;
  color: #101828 !important;
}

body.auth-unlocked h2,
body.auth-unlocked h3 {
  font-weight: 850 !important;
  letter-spacing: -0.035em !important;
  color: #101828 !important;
}

/* Cards/sections */
body.auth-unlocked .card {
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(109, 93, 252, 0.13) !important;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.075) !important;
  padding: 24px !important;
}

/* Analyzer card more premium */
body.auth-unlocked .card:first-of-type {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(109, 93, 252, 0.42), rgba(32, 199, 201, 0.42)) border-box !important;
  border: 1px solid transparent !important;
}

/* Metrics */
body.auth-unlocked .metric {
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(109, 93, 252, 0.12) !important;
  box-shadow: 0 18px 46px rgba(16, 24, 40, 0.06) !important;
  padding: 22px !important;
}

body.auth-unlocked .metric .label {
  color: #667085 !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

body.auth-unlocked .metric .value {
  color: #101828 !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
}

/* Buttons */
body.auth-unlocked .btn,
body.auth-unlocked button {
  border-radius: 999px !important;
  font-weight: 800 !important;
}

body.auth-unlocked .btn.primary,
body.auth-unlocked button[data-action="analyze-reports"] {
  background: linear-gradient(135deg, #6d5dfc, #20c7c9) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 18px !important;
  box-shadow: 0 16px 34px rgba(32, 199, 201, 0.22) !important;
}

/* Inputs */
body.auth-unlocked input,
body.auth-unlocked select,
body.auth-unlocked textarea {
  border-radius: 16px !important;
  border: 1px solid rgba(109, 93, 252, 0.18) !important;
  background: #ffffff !important;
  padding: 10px 12px !important;
}

/* Text */
body.auth-unlocked .sub,
body.auth-unlocked .small,
body.auth-unlocked .empty {
  color: #667085 !important;
  line-height: 1.65 !important;
}

/* Analyzer result box */
body.auth-unlocked #aiAnalyzerResults {
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.06), rgba(32, 199, 201, 0.08)) !important;
  border: 1px solid rgba(32, 199, 201, 0.16) !important;
  border-radius: 20px !important;
  padding: 18px !important;
}

/* Tables */
body.auth-unlocked table.grid th {
  color: #5b4be8 !important;
  font-weight: 850 !important;
}

body.auth-unlocked table.grid td {
  color: #344054 !important;
}

/* Mobile */
@media (max-width: 760px) {
  body.auth-unlocked header,
  body.auth-unlocked nav,
  body.auth-unlocked #statusLine,
  body.auth-unlocked main {
    width: min(100% - 22px, 1180px) !important;
  }

  body.auth-unlocked nav {
    border-radius: 22px !important;
    overflow-x: auto;
  }
}


/* LUPA Clarity top brand cleanup */
body.auth-unlocked header h1,
body.auth-unlocked header .brand,
body.auth-unlocked header [class*="brand"] {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.055em !important;
  color: #101828 !important;
}

body.auth-unlocked header h1::after,
body.auth-unlocked header .brand::after,
body.auth-unlocked header [class*="brand"]::after,
body.auth-unlocked header .cursor,
body.auth-unlocked header .caret,
body.auth-unlocked header [class*="cursor"],
body.auth-unlocked header [class*="caret"] {
  content: "" !important;
  display: none !important;
}

body.auth-unlocked header {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(109, 93, 252, 0.22), rgba(32, 199, 201, 0.22)) border-box !important;
  border: 1px solid transparent !important;
}


/* Premium LUPA Clarity visual replacement */
.lupa-visual,
.hero-preview {
  display: none !important;
}

.lupa-brand-visual {
  position: relative;
  margin-top: 34px;
  max-width: 640px;
  min-height: 245px;
}

.lupa-report-card {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 30px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(109, 93, 252, 0.35), rgba(32, 199, 201, 0.35)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.12);
}

.report-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.report-card-top span {
  color: #0f6b72;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.report-card-top strong {
  padding: 8px 12px;
  border-radius: 999px;
  color: #5b4be8;
  background: rgba(109, 93, 252, 0.10);
  font-size: 0.88rem;
}

.report-score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.report-score-row div {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.08), rgba(32, 199, 201, 0.08));
  border: 1px solid rgba(109, 93, 252, 0.12);
}

.report-score-row span {
  display: block;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 750;
}

.report-score-row strong {
  display: block;
  margin-top: 8px;
  color: #101828;
  font-size: 1.85rem;
  letter-spacing: -0.06em;
}

.report-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.report-lines p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-weight: 700;
}

.report-lines p span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d5dfc, #20c7c9);
  box-shadow: 0 0 0 5px rgba(32, 199, 201, 0.10);
}

.premium-lupa {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: -18px;
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 24px 32px rgba(109, 93, 252, 0.22));
}

.premium-lens {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0.62) 46%, rgba(32,199,201,0.16)),
    linear-gradient(135deg, rgba(109, 93, 252, 0.18), rgba(32, 199, 201, 0.18));
  border: 11px solid #6d5dfc;
  outline: 5px solid rgba(32, 199, 201, 0.28);
}

.premium-lens::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 28px;
  width: 28px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  transform: rotate(-24deg);
}

.premium-handle {
  position: absolute;
  width: 70px;
  height: 18px;
  border-radius: 999px;
  right: 6px;
  bottom: 20px;
  background: linear-gradient(135deg, #6d5dfc, #20c7c9);
  transform: rotate(45deg);
  transform-origin: center;
}

@media (max-width: 700px) {
  .lupa-brand-visual {
    min-height: auto;
  }

  .premium-lupa {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 18px;
    transform: scale(0.9);
    transform-origin: left center;
  }

  .report-score-row {
    grid-template-columns: 1fr;
  }
}


/* Emergency premium front page reset + mobile fix */
.login-gate {
  min-height: 100svh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 52px 24px !important;
  background:
    radial-gradient(circle at top right, rgba(32, 199, 201, 0.24), transparent 34rem),
    radial-gradient(circle at bottom left, rgba(109, 93, 252, 0.16), transparent 30rem),
    linear-gradient(135deg, #ffffff 0%, #f9fcff 52%, #f5f1ff 100%) !important;
}

.clean-login-hero,
.login-hero {
  width: min(1180px, 100%) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 520px) !important;
  gap: clamp(34px, 6vw, 82px) !important;
  align-items: center !important;
}

.login-copy {
  padding: 0 !important;
  max-width: 720px !important;
}

.login-copy h1 {
  margin: 0 !important;
  font-size: clamp(4.2rem, 7vw, 6.6rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.075em !important;
  font-weight: 900 !important;
  color: #101828 !important;
  text-transform: none !important;
  max-width: 720px !important;
}

.login-copy h2 {
  margin: 22px 0 0 !important;
  color: #5b4be8 !important;
  font-size: clamp(1.7rem, 3vw, 2.55rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
  font-weight: 850 !important;
}

.hero-text {
  max-width: 610px !important;
  margin: 24px 0 0 !important;
  color: #667085 !important;
  font-size: 1.14rem !important;
  line-height: 1.7 !important;
}

.hero-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 28px !important;
}

.hero-pills span {
  padding: 11px 16px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.84) !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  color: #344054 !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06) !important;
}

.login-card {
  width: 100% !important;
  max-width: 520px !important;
  padding: clamp(28px, 4vw, 42px) !important;
  border-radius: 30px !important;
  background: rgba(255,255,255,0.9) !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.12) !important;
  backdrop-filter: blur(18px) !important;
}

.login-card h2 {
  margin: 0 0 12px !important;
  font-size: clamp(2rem, 3vw, 2.5rem) !important;
  letter-spacing: -0.055em !important;
  color: #101828 !important;
  font-weight: 900 !important;
}

.login-card .sub {
  color: #667085 !important;
  line-height: 1.65 !important;
  margin-bottom: 24px !important;
}

.login-card button,
.login-card .btn.primary {
  width: 100% !important;
  padding: 15px 18px !important;
  border-radius: 999px !important;
  border: none !important;
  background: linear-gradient(135deg, #6d5dfc, #20c7c9) !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  cursor: pointer !important;
  box-shadow: 0 16px 34px rgba(32, 199, 201, 0.24) !important;
}

.login-card .small {
  margin-top: 18px !important;
  color: #667085 !important;
  line-height: 1.55 !important;
}

/* Remove the ugly visual blocks completely */
.lupa-visual,
.hero-preview,
.lupa-brand-visual,
.premium-lupa,
.lupa-glass,
.lupa-report-card {
  display: none !important;
}

/* Mobile + tablet: iPhone / Android safe layout */
@media (max-width: 900px) {
  .login-gate {
    align-items: flex-start !important;
    padding: 36px 18px !important;
  }

  .clean-login-hero,
  .login-hero {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .login-copy h1 {
    font-size: clamp(3.4rem, 15vw, 5rem) !important;
    line-height: 0.94 !important;
    max-width: 100% !important;
  }

  .login-copy h2 {
    font-size: clamp(1.55rem, 7vw, 2.1rem) !important;
  }

  .hero-text {
    font-size: 1rem !important;
    max-width: 100% !important;
  }

  .hero-pills {
    gap: 9px !important;
  }

  .hero-pills span {
    font-size: 0.92rem !important;
    padding: 10px 13px !important;
  }

  .login-card {
    max-width: none !important;
    padding: 26px !important;
    border-radius: 26px !important;
  }
}

/* Inside app mobile safety */
@media (max-width: 760px) {
  body.auth-unlocked header,
  body.auth-unlocked nav,
  body.auth-unlocked #statusLine,
  body.auth-unlocked main {
    width: calc(100% - 22px) !important;
  }

  body.auth-unlocked header {
    margin-top: 12px !important;
    padding: 16px !important;
  }

  body.auth-unlocked nav {
    overflow-x: auto !important;
    white-space: nowrap !important;
    border-radius: 22px !important;
  }

  body.auth-unlocked button[role="tab"] {
    flex: 0 0 auto !important;
  }

  body.auth-unlocked main {
    margin-top: 28px !important;
  }

  body.auth-unlocked h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem) !important;
  }

  body.auth-unlocked .metrics,
  body.auth-unlocked .metric-grid {
    grid-template-columns: 1fr !important;
  }

  body.auth-unlocked .card,
  body.auth-unlocked .metric {
    border-radius: 24px !important;
    padding: 20px !important;
  }

  body.auth-unlocked table {
    display: block !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}


/* LUPA Clarity logo + balanced hero polish */
.hero-brain-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
  border-radius: 24px;
  filter: drop-shadow(0 18px 34px rgba(109, 93, 252, 0.22));
}

.hero-feature-panel {
  margin-top: 30px;
  max-width: 620px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  border-radius: 28px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(109, 93, 252, 0.28), rgba(32, 199, 201, 0.28)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.09);
}

.feature-label {
  display: block;
  margin-bottom: 6px;
  color: #0f6b72;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-feature-panel strong {
  display: block;
  color: #101828;
  font-size: 1.08rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.hero-feature-panel p {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

.feature-dots {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.feature-dots span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d5dfc, #20c7c9);
  box-shadow: 0 0 0 6px rgba(32, 199, 201, 0.08);
}

@media (max-width: 900px) {
  .hero-brain-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .hero-feature-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }
}


/* LUPA Clarity view separation, logo, spacing, and mobile polish */
body.auth-locked header,
body.auth-locked nav,
body.auth-locked main {
  display: none !important;
}

body.auth-unlocked #loginGate,
body.auth-unlocked .login-gate {
  display: none !important;
}

body.auth-locked #loginGate,
body.auth-locked .login-gate {
  display: flex !important;
}

/* Front page spacing fix */
.login-gate {
  min-height: 100svh !important;
  padding-top: clamp(28px, 5vh, 58px) !important;
  padding-bottom: 42px !important;
}

.login-copy {
  transform: translateY(-8px);
}

.hero-brain-logo {
  width: 74px !important;
  height: 74px !important;
  margin-bottom: 16px !important;
  object-fit: contain !important;
  border-radius: 18px !important;
  filter: drop-shadow(0 14px 26px rgba(32, 199, 201, 0.20)) !important;
}

.login-copy h1 {
  font-size: clamp(3.8rem, 6.8vw, 6.1rem) !important;
  line-height: 0.94 !important;
}

.hero-feature-panel {
  margin-top: 26px !important;
}

/* Logged-in app logo */
.app-brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  margin-right: 12px;
  vertical-align: middle;
  filter: drop-shadow(0 8px 14px rgba(32, 199, 201, 0.16));
}

/* Keep header aligned after adding logo */
body.auth-unlocked header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

body.auth-unlocked header > * {
  flex-shrink: 0;
}

/* Translate button */
.language-toggle {
  border-radius: 999px !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(109, 93, 252, 0.18) !important;
  background: rgba(255, 255, 255, 0.84) !important;
  color: #5b4be8 !important;
  font-weight: 800 !important;
}

/* Make front page not require awkward scrolling on normal laptop screens */
@media (min-width: 901px) {
  .clean-login-hero,
  .login-hero {
    align-items: center !important;
  }

  .login-card {
    transform: translateY(14px);
  }
}

/* iPhone / Android improvements */
@media (max-width: 900px) {
  .login-gate {
    min-height: auto !important;
    padding: 28px 18px 38px !important;
  }

  .login-copy {
    transform: none !important;
  }

  .hero-brain-logo {
    width: 64px !important;
    height: 64px !important;
  }

  .login-copy h1 {
    font-size: clamp(3.1rem, 14vw, 4.6rem) !important;
  }

  .login-card {
    transform: none !important;
  }
}

@media (max-width: 760px) {
  body.auth-unlocked header {
    align-items: flex-start !important;
  }

  .app-brand-logo {
    width: 36px;
    height: 36px;
  }

  .language-toggle {
    padding: 8px 12px !important;
  }
}


/* LUPA Clarity Analysis Results page */
.analysis-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.analysis-score-card {
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(109, 93, 252, 0.35), rgba(32, 199, 201, 0.35)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 20px 55px rgba(16, 24, 40, 0.07);
}

.analysis-score-card span {
  display: block;
  color: #0f6b72;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analysis-score-card strong {
  display: block;
  margin-top: 10px;
  color: #101828;
  font-size: 2.4rem;
  letter-spacing: -0.07em;
}

.analysis-score-card p {
  margin: 10px 0 0;
  color: #667085;
  word-break: break-word;
}

.analysis-table td,
.analysis-table th {
  white-space: nowrap;
}

.analysis-issue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.analysis-issue-grid div {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.06), rgba(32, 199, 201, 0.08));
  border: 1px solid rgba(109, 93, 252, 0.12);
}

.analysis-issue-grid strong {
  display: block;
  color: #101828;
  margin-bottom: 8px;
}

.analysis-issue-grid p {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .analysis-score-grid,
  .analysis-issue-grid {
    grid-template-columns: 1fr;
  }

  .analysis-table {
    display: block;
    overflow-x: auto;
  }
}


/* LUPA Clarity tab order + shadow files readability fix */
body.auth-unlocked button[data-action="shadow-status"],
body.auth-unlocked button[data-action="open-shadow"],
body.auth-unlocked button[data-action="add-shadow-inquiry"],
body.auth-unlocked button[data-action="update-shadow"],
body.auth-unlocked button[data-action="edit-shadow"],
body.auth-unlocked .card button {
  color: #101828 !important;
}

body.auth-unlocked .card .btn,
body.auth-unlocked .card button {
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.18) !important;
  color: #344054 !important;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04) !important;
}

body.auth-unlocked .card .btn.primary,
body.auth-unlocked .card button.primary,
body.auth-unlocked .card button[data-action="analyze-reports"],
body.auth-unlocked .card button[data-action="add-account"],
body.auth-unlocked .card button[data-action="add-dispute"],
body.auth-unlocked .card button[data-action="add-task"] {
  background: linear-gradient(135deg, #6d5dfc, #20c7c9) !important;
  color: #ffffff !important;
  border: none !important;
}

body.auth-unlocked #tab-shadow .card,
body.auth-unlocked #tab-today .card,
body.auth-unlocked #tab-accounts .card,
body.auth-unlocked #tab-disputes .card {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(109, 93, 252, 0.18), rgba(32, 199, 201, 0.2)) border-box !important;
  border: 1px solid transparent !important;
}

body.auth-unlocked #tab-shadow .card h3,
body.auth-unlocked #tab-shadow .card strong,
body.auth-unlocked #tab-shadow .card p,
body.auth-unlocked #tab-shadow .card span {
  color: #101828;
}

body.auth-unlocked #tab-shadow .card .small,
body.auth-unlocked #tab-shadow .card .sub {
  color: #667085 !important;
}

/* Make suggested task rows readable */
body.auth-unlocked .suggestion,
body.auth-unlocked .task-suggestion,
body.auth-unlocked li,
body.auth-unlocked .task-row {
  color: #344054;
}

/* Better app header logo placement */
.app-brand-logo {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  margin-right: 8px !important;
}

/* Spanish mode polish */
body.lang-es [data-tab="today"]::after {
  content: "";
}


/* LUPA Clarity inside logo + spacing fix */
body.auth-unlocked header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 14px !important;
  padding: 18px 22px !important;
}

body.auth-unlocked .app-brand-logo {
  display: inline-block !important;
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  margin: 0 6px 0 0 !important;
  flex: 0 0 auto !important;
  filter: drop-shadow(0 8px 16px rgba(32, 199, 201, 0.18)) !important;
}

body.auth-unlocked header h1,
body.auth-unlocked header .brand,
body.auth-unlocked header strong {
  margin-left: 0 !important;
}

/* Tighten space between top navigation and page content */
body.auth-unlocked main {
  margin-top: 24px !important;
}

body.auth-unlocked main > section {
  padding-top: 0 !important;
}

body.auth-unlocked h1 {
  margin-top: 0 !important;
}

/* Mobile logo safety */
@media (max-width: 760px) {
  body.auth-unlocked header {
    gap: 8px !important;
    padding: 15px !important;
  }

  body.auth-unlocked .app-brand-logo {
    width: 36px !important;
    height: 36px !important;
  }

  body.auth-unlocked main {
    margin-top: 20px !important;
  }
}


/* AI Logic analysis polish */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.analysis-score-card,
.mini-card {
  background: linear-gradient(135deg, #ffffff, #f4ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.18) !important;
  border-radius: 24px !important;
  padding: 22px !important;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.06) !important;
}

.analysis-score-card span {
  display: block;
  color: #00747a;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.analysis-score-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #101828;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

body.auth-unlocked #tab-analysis table {
  width: 100%;
}

body.auth-unlocked #tab-analysis th {
  color: #5b4bff !important;
}

@media (max-width: 840px) {
  .analysis-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }
}


/* User-friendly Analysis layout */
.analysis-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 22px 0 !important;
}

.summary-card {
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.14) !important;
  border-radius: 22px !important;
  padding: 18px !important;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.05) !important;
}

.summary-card span {
  display: block !important;
  color: #667085 !important;
  font-size: 0.92rem !important;
  margin-bottom: 8px !important;
}

.summary-card strong {
  display: block !important;
  font-size: 2rem !important;
  color: #101828 !important;
}

.account-card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 18px !important;
}

.account-review-card {
  background: linear-gradient(135deg, #ffffff, #f4ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.05) !important;
}

.account-card-top {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  align-items: flex-start !important;
  margin-bottom: 12px !important;
}

.account-card-top strong {
  font-size: 1.05rem !important;
  color: #101828 !important;
}

.account-card-top span {
  background: #eefcff !important;
  color: #00747a !important;
  border: 1px solid rgba(32, 199, 201, 0.22) !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.account-review-card p {
  margin: 8px 0 !important;
  line-height: 1.45 !important;
}

.bureau-chip-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

.bureau-chip {
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  border-radius: 999px !important;
  padding: 7px 10px !important;
  font-size: 0.84rem !important;
  color: #344054 !important;
}

.soft-score-label {
  font-size: clamp(1.35rem, 3vw, 1.9rem) !important;
  line-height: 1.1 !important;
}

body.auth-unlocked #tab-analysis table th,
body.auth-unlocked #tab-analysis table td {
  padding: 10px 12px !important;
}

@media (max-width: 900px) {
  .analysis-summary-grid,
  .account-card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile layout fix for LUPA Clarity */
@media (max-width: 780px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    padding: 0 !important;
  }

  body.auth-unlocked header,
  body.auth-unlocked main,
  body.auth-unlocked footer {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body.auth-unlocked header {
    margin-top: 14px !important;
    padding: 16px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  body.auth-unlocked .app-brand-logo {
    width: 42px !important;
    height: 42px !important;
  }

  body.auth-unlocked header h1,
  body.auth-unlocked header .brand,
  body.auth-unlocked header strong {
    font-size: 1.45rem !important;
    line-height: 1.05 !important;
  }

  body.auth-unlocked nav,
  body.auth-unlocked [role="tablist"] {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding: 8px !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.auth-unlocked [role="tab"] {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    padding: 11px 15px !important;
    font-size: 0.95rem !important;
  }

  body.auth-unlocked main {
    margin-top: 26px !important;
  }

  body.auth-unlocked main h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.06em !important;
  }

  body.auth-unlocked .card,
  body.auth-unlocked section,
  body.auth-unlocked dialog {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.auth-unlocked .card {
    padding: 20px !important;
    border-radius: 24px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.auth-unlocked label,
  body.auth-unlocked input,
  body.auth-unlocked textarea,
  body.auth-unlocked select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.auth-unlocked input,
  body.auth-unlocked textarea,
  body.auth-unlocked select {
    font-size: 16px !important;
  }

  body.auth-unlocked .grid,
  body.auth-unlocked .form-grid,
  body.auth-unlocked .stats,
  body.auth-unlocked .analysis-grid,
  body.auth-unlocked .analysis-summary-grid,
  body.auth-unlocked .account-card-grid,
  body.auth-unlocked .mini-grid {
    grid-template-columns: 1fr !important;
  }

  body.auth-unlocked .lupa-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.auth-unlocked table {
    min-width: 680px !important;
  }

  body.auth-unlocked button {
    max-width: 100% !important;
    white-space: normal !important;
  }

  /* Login screen: bring login higher on mobile */
  body:not(.auth-unlocked) .login-gate,
  body:not(.auth-unlocked) .login-hero {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  body:not(.auth-unlocked) .login-hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  body:not(.auth-unlocked) .login-copy {
    order: 1 !important;
  }

  body:not(.auth-unlocked) .login-card {
    order: 2 !important;
    margin-top: 8px !important;
  }

  body:not(.auth-unlocked) .hero-feature-panel {
    order: 3 !important;
  }

  body:not(.auth-unlocked) .login-copy h1 {
    font-size: clamp(3.1rem, 15vw, 4.6rem) !important;
    line-height: 0.9 !important;
  }

  body:not(.auth-unlocked) .login-card,
  body:not(.auth-unlocked) .hero-feature-panel {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* Analysis flow upgrade: approval, differences, compact reports */
.remove-review-link {
  background: #ffffff !important;
  color: #344054 !important;
  border: 1px solid rgba(109, 93, 252, 0.22) !important;
  border-radius: 999px !important;
  padding: 11px 16px !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06) !important;
}

.approval-grid,
.discrepancy-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 16px !important;
}

.approval-card,
.discrepancy-card {
  background: linear-gradient(135deg, #ffffff, #f4ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.05) !important;
}

.approval-card span {
  display: block !important;
  color: #00747a !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  font-size: .82rem !important;
  margin-bottom: 8px !important;
}

.approval-card strong,
.discrepancy-card strong {
  display: block !important;
  color: #101828 !important;
  font-size: 1.05rem !important;
  margin-bottom: 8px !important;
}

.approval-card p,
.discrepancy-card p {
  margin: 0 !important;
  line-height: 1.5 !important;
}

.reports-reviewed-compact {
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.14) !important;
  border-radius: 22px !important;
  padding: 16px 18px !important;
  margin: 22px 0 !important;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.04) !important;
}

.reports-reviewed-compact summary {
  cursor: pointer !important;
  font-weight: 900 !important;
  color: #344054 !important;
}

.reports-reviewed-compact[open] summary {
  margin-bottom: 12px !important;
}

@media (max-width: 900px) {
  .approval-grid,
  .discrepancy-grid {
    grid-template-columns: 1fr !important;
  }
}


/* LUPA Clarity login options */
.auth-provider-stack {
  margin-top: 18px !important;
  display: grid !important;
  gap: 13px !important;
}

.auth-secondary-btn {
  width: 100% !important;
  border-radius: 999px !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(109, 93, 252, 0.2) !important;
  background: #ffffff !important;
  color: #344054 !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05) !important;
}

#appleSignInBtn {
  background: #101828 !important;
  color: #ffffff !important;
  border: none !important;
}

.auth-divider {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #667085 !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
}

.auth-divider::before,
.auth-divider::after {
  content: "" !important;
  height: 1px !important;
  background: rgba(109, 93, 252, 0.16) !important;
  flex: 1 !important;
}

.auth-email-grid {
  display: grid !important;
  gap: 10px !important;
}

.auth-field {
  display: grid !important;
  gap: 7px !important;
  text-align: left !important;
  color: #667085 !important;
  font-weight: 700 !important;
}

.auth-field input {
  width: 100% !important;
  border-radius: 18px !important;
  border: 1px solid rgba(109, 93, 252, 0.18) !important;
  padding: 13px 15px !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
}

.auth-inline-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.auth-link-btn {
  border: none !important;
  background: transparent !important;
  color: #5b4bff !important;
  font-weight: 900 !important;
  padding: 4px !important;
  cursor: pointer !important;
}

.auth-message {
  min-height: 20px !important;
  margin: 0 !important;
  font-size: 0.92rem !important;
  color: #667085 !important;
}

.auth-message.error {
  color: #b42318 !important;
}

.auth-message.success {
  color: #027a48 !important;
}

@media (max-width: 700px) {
  .auth-inline-actions {
    grid-template-columns: 1fr !important;
  }
}


/* Apple login removed */
#appleSignInBtn {
  display: none !important;
}

/* Tighten top space on public login page */
body:not(.auth-unlocked) .login-gate,
body:not(.auth-unlocked) .login-hero {
  padding-top: 28px !important;
  margin-top: 0 !important;
}

body:not(.auth-unlocked) .hero-brain-logo {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

@media (max-width: 780px) {
  body:not(.auth-unlocked) .login-gate,
  body:not(.auth-unlocked) .login-hero {
    padding-top: 14px !important;
    margin-top: 0 !important;
  }

  body:not(.auth-unlocked) .hero-brain-logo {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
  }
}


/* LUPA cleanup: mobile, logo, login, analysis, accounts, disputes, progress */
#appleSignInBtn {
  display: none !important;
}

body:not(.auth-unlocked) .hero-brain-logo {
  width: 72px !important;
  height: auto !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

body.auth-unlocked .app-brand-logo {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
}

.remove-review-link,
body.auth-unlocked button[data-action="remove-analysis"] {
  background: #ffffff !important;
  color: #344054 !important;
  border: 1px solid rgba(109, 93, 252, 0.22) !important;
  border-radius: 999px !important;
  padding: 11px 16px !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06) !important;
}

.analysis-two-column {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 18px !important;
  margin: 20px 0 !important;
  align-items: start !important;
}

.one-col {
  grid-template-columns: 1fr !important;
}

.card-label {
  display: inline-flex !important;
  width: fit-content !important;
  background: #eefcff !important;
  color: #00747a !important;
  border: 1px solid rgba(32, 199, 201, 0.22) !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
}

.dispute-plan-grid,
.progress-list {
  display: grid !important;
  gap: 14px !important;
  margin-top: 16px !important;
}

.dispute-plan-card,
.progress-card,
.approval-card,
.discrepancy-card,
.account-review-card,
.mini-card {
  background: linear-gradient(135deg, #ffffff, #f4ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.05) !important;
}

.progress-layout {
  display: grid !important;
  grid-template-columns: 1fr 360px !important;
  gap: 18px !important;
  align-items: start !important;
  margin-top: 18px !important;
}

.todo-panel {
  position: sticky !important;
  top: 18px !important;
}

.todo-line {
  display: grid !important;
  grid-template-columns: 18px 1fr !important;
  gap: 10px !important;
  align-items: start !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(109, 93, 252, 0.12) !important;
}

.todo-line span {
  width: 14px !important;
  height: 14px !important;
  border-radius: 999px !important;
  border: 2px solid #20c7c9 !important;
  margin-top: 4px !important;
}

.todo-line p {
  margin: 0 !important;
  color: #344054 !important;
}

.row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 18px 0 24px !important;
}

.empty-line {
  color: #667085 !important;
  font-style: italic !important;
  margin-top: 20px !important;
}

body.auth-unlocked h1 {
  letter-spacing: -0.055em !important;
}

body.auth-unlocked .card strong,
body.auth-unlocked h2,
body.auth-unlocked h3 {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

@media (max-width: 900px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    padding: 0 !important;
  }

  body.auth-unlocked header,
  body.auth-unlocked main,
  body.auth-unlocked footer,
  body:not(.auth-unlocked) .login-gate,
  body:not(.auth-unlocked) .login-hero {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body.auth-unlocked header {
    overflow: hidden !important;
    padding: 16px !important;
    border-radius: 24px !important;
  }

  body.auth-unlocked nav,
  body.auth-unlocked [role="tablist"] {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.auth-unlocked [role="tab"] {
    flex: 0 0 auto !important;
    min-width: max-content !important;
  }

  body.auth-unlocked main h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem) !important;
    line-height: 0.95 !important;
  }

  body.auth-unlocked .card,
  body.auth-unlocked section,
  body.auth-unlocked input,
  body.auth-unlocked textarea,
  body.auth-unlocked select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.auth-unlocked .analysis-grid,
  body.auth-unlocked .analysis-summary-grid,
  body.auth-unlocked .account-card-grid,
  body.auth-unlocked .mini-grid,
  body.auth-unlocked .approval-grid,
  body.auth-unlocked .discrepancy-grid,
  body.auth-unlocked .analysis-two-column,
  body.auth-unlocked .progress-layout {
    grid-template-columns: 1fr !important;
  }

  .todo-panel {
    position: static !important;
  }

  body:not(.auth-unlocked) .login-hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    padding-top: 12px !important;
  }

  body:not(.auth-unlocked) .login-card {
    order: 1 !important;
    margin-top: 8px !important;
    width: 100% !important;
    padding: 22px !important;
    border-radius: 28px !important;
  }

  body:not(.auth-unlocked) .login-copy {
    order: 2 !important;
  }

  body:not(.auth-unlocked) .hero-feature-panel {
    order: 3 !important;
  }

  body:not(.auth-unlocked) .auth-inline-actions {
    grid-template-columns: 1fr !important;
  }
}


/* Final LUPA polish: clarity, mobile, flags, tables */
#appleSignInBtn {
  display: none !important;
}

body:not(.auth-unlocked) .login-gate {
  padding-top: 18px !important;
  margin-top: 0 !important;
  min-height: auto !important;
}

body:not(.auth-unlocked) .login-hero {
  padding-top: 0 !important;
  margin-top: 0 !important;
  align-items: center !important;
}

body:not(.auth-unlocked) .hero-brain-logo {
  width: 68px !important;
  height: auto !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

body.auth-unlocked .app-brand-logo {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
}

.row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 18px 0 24px !important;
}

.row-actions button,
.remove-review-link,
body.auth-unlocked button[data-action="remove-analysis"] {
  appearance: none !important;
  border-radius: 999px !important;
  padding: 11px 16px !important;
  font-weight: 850 !important;
  border: 1px solid rgba(109, 93, 252, 0.2) !important;
  background: #ffffff !important;
  color: #344054 !important;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06) !important;
}

.row-actions button:first-child {
  background: #163b35 !important;
  color: #d6fff6 !important;
  border: none !important;
}

.remove-review-link {
  background: #fff !important;
  color: #344054 !important;
}

.analysis-two-column {
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr !important;
  gap: 18px !important;
  margin: 20px 0 !important;
  align-items: start !important;
}

.one-col {
  grid-template-columns: 1fr !important;
}

.card-label,
.table-flag {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  background: #eefcff !important;
  color: #00747a !important;
  border: 1px solid rgba(32, 199, 201, 0.24) !important;
  border-radius: 999px !important;
  padding: 7px 11px !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  margin-bottom: 12px !important;
  line-height: 1.15 !important;
}

.discrepancy-card strong,
.mini-card strong,
.dispute-plan-card strong,
.account-review-card strong {
  display: block !important;
  margin: 4px 0 12px !important;
  line-height: 1.2 !important;
}

.dispute-plan-card .card-label + strong,
.mini-card .card-label + strong {
  margin-top: 8px !important;
}

.dispute-plan-grid,
.progress-list {
  display: grid !important;
  gap: 14px !important;
  margin-top: 16px !important;
}

.dispute-plan-card,
.progress-card,
.approval-card,
.discrepancy-card,
.account-review-card,
.mini-card {
  background: linear-gradient(135deg, #ffffff, #f4ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.05) !important;
}

.bureau-chip-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

.bureau-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: auto !important;
  max-width: 100% !important;
  border-radius: 999px !important;
  padding: 8px 11px !important;
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.17) !important;
  color: #344054 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}

.accounts-table-card table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
}

.accounts-table-card th {
  color: #5b4bff !important;
  font-weight: 900 !important;
  text-align: left !important;
  padding: 10px 12px !important;
}

.accounts-table-card td {
  vertical-align: top !important;
  padding: 14px 12px !important;
  background: #ffffff !important;
  border-top: 1px solid rgba(109, 93, 252, 0.10) !important;
  border-bottom: 1px solid rgba(109, 93, 252, 0.10) !important;
  line-height: 1.4 !important;
}

.accounts-table-card td:first-child {
  border-left: 1px solid rgba(109, 93, 252, 0.10) !important;
  border-radius: 18px 0 0 18px !important;
}

.accounts-table-card td:last-child {
  border-right: 1px solid rgba(109, 93, 252, 0.10) !important;
  border-radius: 0 18px 18px 0 !important;
}

.accounts-table-card td p {
  margin: 8px 0 0 !important;
  color: #667085 !important;
}

.mobile-account-list {
  display: none !important;
}

.progress-layout {
  display: grid !important;
  grid-template-columns: 1fr 360px !important;
  gap: 18px !important;
  align-items: start !important;
  margin-top: 18px !important;
}

.todo-panel {
  position: sticky !important;
  top: 18px !important;
}

.todo-line {
  display: grid !important;
  grid-template-columns: 18px 1fr !important;
  gap: 10px !important;
  align-items: start !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(109, 93, 252, 0.12) !important;
}

.todo-line span {
  width: 14px !important;
  height: 14px !important;
  border-radius: 999px !important;
  border: 2px solid #20c7c9 !important;
  margin-top: 4px !important;
}

.todo-line p {
  margin: 0 !important;
  color: #344054 !important;
}

.reports-reviewed-compact {
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.14) !important;
  border-radius: 22px !important;
  padding: 16px 18px !important;
  margin: 22px 0 !important;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.04) !important;
}

.reports-reviewed-compact summary {
  cursor: pointer !important;
  font-weight: 900 !important;
  color: #344054 !important;
}

@media (max-width: 900px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    padding: 0 !important;
  }

  body.auth-unlocked header,
  body.auth-unlocked main,
  body.auth-unlocked footer,
  body:not(.auth-unlocked) .login-gate,
  body:not(.auth-unlocked) .login-hero {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body:not(.auth-unlocked) .login-hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    padding-top: 10px !important;
  }

  body:not(.auth-unlocked) .login-copy {
    order: 1 !important;
    width: 100% !important;
    text-align: left !important;
  }

  body:not(.auth-unlocked) .login-card {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 6px !important;
    padding: 22px !important;
    border-radius: 28px !important;
    box-sizing: border-box !important;
  }

  body:not(.auth-unlocked) .hero-feature-panel {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body:not(.auth-unlocked) .hero-brain-logo {
    width: 76px !important;
    margin-bottom: 12px !important;
  }

  body.auth-unlocked header {
    overflow: hidden !important;
    padding: 16px !important;
    border-radius: 24px !important;
  }

  body.auth-unlocked nav,
  body.auth-unlocked [role="tablist"] {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.auth-unlocked [role="tab"] {
    flex: 0 0 auto !important;
    min-width: max-content !important;
  }

  body.auth-unlocked main h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem) !important;
    line-height: 0.95 !important;
  }

  body.auth-unlocked .card,
  body.auth-unlocked section,
  body.auth-unlocked input,
  body.auth-unlocked textarea,
  body.auth-unlocked select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.auth-unlocked .analysis-grid,
  body.auth-unlocked .analysis-summary-grid,
  body.auth-unlocked .account-card-grid,
  body.auth-unlocked .mini-grid,
  body.auth-unlocked .approval-grid,
  body.auth-unlocked .discrepancy-grid,
  body.auth-unlocked .analysis-two-column,
  body.auth-unlocked .progress-layout {
    grid-template-columns: 1fr !important;
  }

  .desktop-account-table {
    display: none !important;
  }

  .mobile-account-list {
    display: grid !important;
    gap: 14px !important;
  }

  .todo-panel {
    position: static !important;
  }
}


/* Interactive Progress & Tasks */
.progress-overview-card {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 12px !important;
  align-items: center !important;
  background: linear-gradient(135deg, #ffffff, #f1ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  margin: 18px 0 !important;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.05) !important;
}

.progress-overview-card strong {
  font-size: 1.1rem !important;
}

.progress-overview-card p {
  margin: 5px 0 0 !important;
  color: #667085 !important;
}

.progress-overview-card > span {
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  color: #5b4bff !important;
}

.progress-meter {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  height: 12px !important;
  border-radius: 999px !important;
  background: rgba(109, 93, 252, 0.12) !important;
  overflow: hidden !important;
}

.progress-meter > div {
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #6d5dfc, #20c7c9) !important;
  transition: width 0.25s ease !important;
}

.progress-card-head {
  display: flex !important;
  justify-content: space-between !important;
  gap: 14px !important;
  align-items: flex-start !important;
}

.progress-status-pill {
  display: inline-flex !important;
  white-space: nowrap !important;
  border-radius: 999px !important;
  padding: 7px 11px !important;
  font-weight: 900 !important;
  font-size: 0.8rem !important;
  color: #00747a !important;
  background: #eefcff !important;
  border: 1px solid rgba(32, 199, 201, 0.25) !important;
}

.progress-card.is-completed,
.interactive-todo.is-completed {
  opacity: 0.72 !important;
  background: linear-gradient(135deg, #ffffff, #f8fffd) !important;
}

.progress-card.is-completed strong,
.interactive-todo.is-completed strong {
  text-decoration: line-through !important;
}

.progress-note-label,
.progress-due-label,
.progress-add-form label {
  display: grid !important;
  gap: 8px !important;
  margin-top: 14px !important;
  color: #667085 !important;
  font-weight: 800 !important;
}

.progress-note-label textarea,
.progress-add-form textarea {
  min-height: 76px !important;
  resize: vertical !important;
}

.progress-note-label textarea,
.progress-due-label input,
.progress-add-form input,
.progress-add-form textarea,
.progress-add-form select,
.interactive-todo textarea,
.interactive-todo input[type="date"] {
  width: 100% !important;
  border-radius: 16px !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  padding: 11px 13px !important;
  box-sizing: border-box !important;
  font-size: 1rem !important;
  background: #ffffff !important;
}

.progress-card-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

.progress-card-actions button {
  border-radius: 999px !important;
  padding: 10px 15px !important;
  border: 1px solid rgba(109, 93, 252, 0.2) !important;
  background: #ffffff !important;
  color: #344054 !important;
  font-weight: 900 !important;
}

.progress-card-actions button:first-child {
  background: #163b35 !important;
  color: #d6fff6 !important;
  border: none !important;
}

.todo-list {
  display: grid !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.interactive-todo {
  grid-template-columns: 22px 1fr !important;
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.13) !important;
  border-radius: 18px !important;
  padding: 14px !important;
}

.interactive-todo input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #20c7c9 !important;
  margin-top: 3px !important;
}

.interactive-todo strong {
  display: block !important;
  margin-bottom: 4px !important;
}

.interactive-todo p {
  margin: 0 0 10px !important;
  color: #667085 !important;
}

.interactive-todo textarea {
  min-height: 58px !important;
  margin-bottom: 8px !important;
}

.progress-add-form {
  background: #f8ffff !important;
  border: 1px solid rgba(32, 199, 201, 0.22) !important;
  border-radius: 20px !important;
  padding: 16px !important;
  margin: 16px 0 !important;
}

@media (max-width: 900px) {
  .progress-card-head {
    display: grid !important;
  }

  .progress-status-pill {
    width: fit-content !important;
  }

  .progress-layout {
    grid-template-columns: 1fr !important;
  }

  .todo-panel {
    position: static !important;
  }
}


/* Accounts Bureau Comparison Snapshot */
.accounts-snapshot-card {
  margin: 24px 0 !important;
}

.snapshot-heading-row {
  display: flex !important;
  justify-content: space-between !important;
  gap: 16px !important;
  align-items: flex-start !important;
  margin-bottom: 18px !important;
}

.snapshot-heading-row strong {
  font-size: 1.15rem !important;
}

.snapshot-count-pill {
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 999px !important;
  background: #eefcff !important;
  color: #00747a !important;
  border: 1px solid rgba(32, 199, 201, 0.25) !important;
  padding: 9px 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.bureau-snapshot-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.bureau-snapshot-card {
  background: linear-gradient(135deg, #ffffff, #f4ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.05) !important;
}

.bureau-snapshot-top {
  display: grid !important;
  gap: 8px !important;
}

.bureau-snapshot-top span {
  color: #00747a !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

.bureau-snapshot-top strong {
  font-size: 1.6rem !important;
  letter-spacing: -0.04em !important;
}

.bureau-stat-list {
  display: grid !important;
  gap: 9px !important;
  margin: 16px 0 !important;
}

.bureau-stat-list div {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
  border-bottom: 1px solid rgba(109, 93, 252, 0.10) !important;
  padding-bottom: 8px !important;
}

.bureau-stat-list span {
  color: #667085 !important;
}

.bureau-stat-list strong {
  color: #101828 !important;
}

.bureau-balance {
  margin: 0 !important;
  color: #344054 !important;
}

.snapshot-mini-strip {
  margin-top: 18px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(109, 93, 252, 0.12) !important;
}

.snapshot-mini-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

.snapshot-mini-item {
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.13) !important;
  border-radius: 18px !important;
  padding: 13px !important;
}

.snapshot-mini-item strong {
  display: block !important;
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
}

.snapshot-mini-item p {
  margin: 6px 0 0 !important;
  color: #00747a !important;
  font-weight: 850 !important;
}

@media (max-width: 900px) {
  .snapshot-heading-row {
    display: grid !important;
  }

  .snapshot-count-pill {
    width: fit-content !important;
  }

  .bureau-snapshot-grid,
  .snapshot-mini-grid {
    grid-template-columns: 1fr !important;
  }
}


/* Shadow Files CFPB 2025 guide */
.shadow-guide-hero {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 20px !important;
  align-items: center !important;
  margin: 20px 0 !important;
}

.shadow-guide-hero strong {
  display: block !important;
  font-size: 1.4rem !important;
  margin-top: 8px !important;
}

.shadow-guide-number {
  min-width: 160px !important;
  text-align: center !important;
  background: linear-gradient(135deg, #ffffff, #f1ffff) !important;
  border: 1px solid rgba(32, 199, 201, 0.22) !important;
  border-radius: 24px !important;
  padding: 18px !important;
}

.shadow-guide-number strong {
  font-size: 2.6rem !important;
  line-height: 1 !important;
  margin: 0 !important;
  color: #5b4bff !important;
}

.shadow-guide-number span {
  display: block !important;
  margin-top: 6px !important;
  color: #667085 !important;
  font-weight: 800 !important;
}

.shadow-step-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 16px !important;
}

.shadow-step-grid div {
  background: linear-gradient(135deg, #ffffff, #f4ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.14) !important;
  border-radius: 20px !important;
  padding: 16px !important;
}

.shadow-step-grid span {
  display: inline-flex !important;
  width: 28px !important;
  height: 28px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #eefcff !important;
  color: #00747a !important;
  font-weight: 900 !important;
  margin-bottom: 10px !important;
}

.shadow-step-grid b {
  display: block !important;
  font-size: 1.05rem !important;
}

.shadow-step-grid p {
  margin: 8px 0 0 !important;
  color: #667085 !important;
}

.shadow-guide-list {
  display: grid !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.shadow-guide-detail {
  border: 1px solid rgba(109, 93, 252, 0.14) !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, #ffffff, #fbffff) !important;
  overflow: hidden !important;
}

.shadow-guide-detail summary {
  cursor: pointer !important;
  list-style: none !important;
  display: flex !important;
  justify-content: space-between !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 16px 18px !important;
  font-weight: 900 !important;
}

.shadow-guide-detail summary::-webkit-details-marker {
  display: none !important;
}

.shadow-guide-detail summary span {
  color: #101828 !important;
}

.shadow-guide-detail summary strong {
  color: #00747a !important;
  background: #eefcff !important;
  border: 1px solid rgba(32, 199, 201, 0.22) !important;
  border-radius: 999px !important;
  padding: 7px 11px !important;
  white-space: nowrap !important;
}

.shadow-guide-body {
  padding: 0 18px 18px !important;
}

.shadow-guide-body p {
  color: #344054 !important;
}

.shadow-company-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

.shadow-company-list span {
  display: inline-flex !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  padding: 8px 11px !important;
  color: #344054 !important;
  font-weight: 750 !important;
}

@media (max-width: 900px) {
  .shadow-guide-hero,
  .shadow-step-grid {
    grid-template-columns: 1fr !important;
  }

  .shadow-guide-number {
    text-align: left !important;
  }

  .shadow-guide-detail summary {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

/* =========================================================
   LUPA Clarity — IPHONE / MOBILE EMERGENCY FIX
   Fixes horizontal scrolling, header overflow, tabs, tables,
   file input, and cramped dashboard cards.
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  body {
    width: 100%;
    overflow-x: hidden;
  }

  main,
  .app,
  .page,
  .container,
  .dashboard,
  .dashboard-page,
  .content,
  .main-content,
  .shell {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .app,
  .page,
  .container,
  .dashboard,
  .dashboard-page,
  .content,
  .main-content,
  .shell {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Top brand card */
  header,
  .header,
  .app-header,
  .top-card,
  .brand-card,
  .dashboard-header {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 24px !important;
  }

  .brand-row,
  .brand,
  .brand-line,
  .logo-row,
  .top-row,
  .header-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .brand img,
  .brand-row img,
  .logo-row img,
  header img,
  .header img,
  .app-header img {
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
  }

  .brand-title,
  .site-title,
  .app-title,
  h1.logo-title,
  header h1,
  .header h1 {
    font-size: 22px !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    min-width: 0 !important;
  }

  .version,
  .app-version,
  .tagline,
  .subtitle,
  .brand-subtitle {
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Today's status pill */
  .today-status,
  .status-card,
  .status-pill,
  .summary-pill,
  [class*="status"] {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .today-status,
  .status-pill,
  .summary-pill {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 14px 16px !important;
    white-space: normal !important;
    overflow: hidden !important;
    border-radius: 999px !important;
  }

  .today-status *,
  .status-pill *,
  .summary-pill * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    min-width: 0 !important;
  }

  /* Dashboard title */
  h1,
  .page-title,
  .dashboard-title {
    font-size: clamp(36px, 11vw, 48px) !important;
    line-height: 0.95 !important;
    letter-spacing: -1.5px !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  p,
  .description,
  .helper-text,
  .muted,
  .small-text {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  /* Cards */
  .card,
  .panel,
  .section-card,
  .upload-card,
  .info-card,
  .analysis-card,
  .profile-card,
  .task-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  /* Tabs */
  .tabs,
  .tab-bar,
  .tab-list,
  .nav-tabs,
  .dashboard-tabs {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    display: flex !important;
    gap: 8px !important;
    padding: 8px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .tabs::-webkit-scrollbar,
  .tab-bar::-webkit-scrollbar,
  .tab-list::-webkit-scrollbar,
  .nav-tabs::-webkit-scrollbar,
  .dashboard-tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs button,
  .tab-bar button,
  .tab-list button,
  .nav-tabs button,
  .dashboard-tabs button,
  .tab,
  [role="tab"] {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    scroll-snap-align: start !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }

  /* File input */
  input,
  select,
  textarea,
  button {
    max-width: 100% !important;
  }

  input[type="file"] {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 14px !important;
  }

  /* Any desktop grid becomes stacked */
  .grid,
  .dashboard-grid,
  .profile-grid,
  .analysis-grid,
  .task-grid,
  .cards-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Tables become phone-friendly cards */
  table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block !important;
  }

  thead {
    display: none !important;
  }

  tr {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(124, 92, 255, 0.16) !important;
    border-radius: 18px !important;
    padding: 12px !important;
    overflow: hidden !important;
  }

  td {
    width: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
    padding: 8px 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #6f5cff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
  }

  /* Footer legal text */
  footer,
  .footer,
  .legal,
  .disclaimer {
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}



/* Top progress status cards + friendly nav polish */
.today-status-shell {
  padding: 14px !important;
  border-radius: 28px !important;
  background: linear-gradient(135deg, #ffffff, #f5ffff) !important;
  border: 1px solid rgba(32, 199, 201, 0.22) !important;
}

.today-status-wrap {
  display: grid !important;
  gap: 14px !important;
}

.today-status-title {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  align-items: center !important;
}

.today-status-title strong {
  color: #5b4bff !important;
  font-weight: 950 !important;
  font-size: 1rem !important;
}

.today-status-title span {
  color: #667085 !important;
  font-size: 0.92rem !important;
}

.today-status-cards {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.today-status-card {
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.13) !important;
  border-radius: 20px !important;
  padding: 14px !important;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.05) !important;
}

.today-status-card span {
  display: block !important;
  color: #667085 !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 8px !important;
}

.today-status-card strong {
  display: block !important;
  color: #101828 !important;
  font-size: 1.65rem !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

.today-status-card.completed {
  background: linear-gradient(135deg, #ffffff, #efffff) !important;
  border-color: rgba(32, 199, 201, 0.24) !important;
}

.today-status-card.completed strong {
  color: #00747a !important;
}

@media (max-width: 1100px) {
  .today-status-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  .today-status-title {
    display: grid !important;
  }

  .today-status-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .today-status-card {
    padding: 12px !important;
  }

  .today-status-card strong {
    font-size: 1.35rem !important;
  }
}

/* Final iPhone/mobile overflow fix */
@media (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  * {
    box-sizing: border-box !important;
  }

  body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.auth-unlocked header,
  body.auth-unlocked main,
  body.auth-unlocked footer,
  body.auth-unlocked .card,
  body.auth-unlocked section,
  body.auth-unlocked .panel,
  body.auth-unlocked .upload-card,
  body.auth-unlocked .info-card,
  body.auth-unlocked .analysis-card,
  body.auth-unlocked .progress-card {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }

  body.auth-unlocked header {
    margin-top: 12px !important;
    padding: 16px 14px !important;
    border-radius: 24px !important;
  }

  body.auth-unlocked header,
  body.auth-unlocked header * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.auth-unlocked header > div:first-child,
  body.auth-unlocked .brand-row,
  body.auth-unlocked .header-row,
  body.auth-unlocked .top-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 10px !important;
    width: 100% !important;
  }

  body.auth-unlocked .app-brand-logo,
  body.auth-unlocked header img,
  body.auth-unlocked .logo,
  body.auth-unlocked .brand-logo {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
  }

  body.auth-unlocked header h1,
  body.auth-unlocked header .brand,
  body.auth-unlocked header strong,
  body.auth-unlocked .brand-title,
  body.auth-unlocked .site-title {
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  body.auth-unlocked header small,
  body.auth-unlocked header span,
  body.auth-unlocked .version,
  body.auth-unlocked .tagline,
  body.auth-unlocked .user-id,
  body.auth-unlocked .build-id,
  body.auth-unlocked .cloud-status {
    font-size: 12px !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.auth-unlocked .today-status-shell,
  body.auth-unlocked .today-status-wrap,
  body.auth-unlocked .status-bar,
  body.auth-unlocked .today-status,
  body.auth-unlocked .status-pill {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  body.auth-unlocked .today-status-title {
    display: grid !important;
    gap: 4px !important;
    align-items: start !important;
  }

  body.auth-unlocked .today-status-cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.auth-unlocked .today-status-card {
    min-width: 0 !important;
    width: 100% !important;
    padding: 12px !important;
  }

  body.auth-unlocked .today-status-card span,
  body.auth-unlocked .today-status-card strong {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.auth-unlocked nav,
  body.auth-unlocked [role="tablist"],
  body.auth-unlocked .tabs,
  body.auth-unlocked .tab-nav,
  body.auth-unlocked .nav-tabs {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    overflow: visible !important;
    white-space: normal !important;
    padding: 10px !important;
  }

  body.auth-unlocked [role="tab"],
  body.auth-unlocked .tabs button,
  body.auth-unlocked .tab-nav button,
  body.auth-unlocked .nav-tabs button,
  body.auth-unlocked .tab {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 12px 10px !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.15 !important;
    border-radius: 18px !important;
  }

  body.auth-unlocked main {
    padding-bottom: calc(130px + env(safe-area-inset-bottom)) !important;
  }

  body.auth-unlocked main h1 {
    font-size: clamp(44px, 13vw, 60px) !important;
    line-height: 0.95 !important;
    overflow-wrap: anywhere !important;
  }

  body.auth-unlocked h2 {
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1.1 !important;
  }

  body.auth-unlocked p,
  body.auth-unlocked li,
  body.auth-unlocked label,
  body.auth-unlocked input,
  body.auth-unlocked button,
  body.auth-unlocked textarea,
  body.auth-unlocked select {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body.auth-unlocked input,
  body.auth-unlocked textarea,
  body.auth-unlocked select {
    width: 100% !important;
    font-size: 16px !important;
  }

  body.auth-unlocked input[type="file"] {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 15px !important;
    white-space: normal !important;
  }

  body.auth-unlocked .row-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.auth-unlocked .row-actions button {
    width: 100% !important;
  }

  body.auth-unlocked .analysis-grid,
  body.auth-unlocked .analysis-summary-grid,
  body.auth-unlocked .bureau-snapshot-grid,
  body.auth-unlocked .snapshot-mini-grid,
  body.auth-unlocked .approval-grid,
  body.auth-unlocked .analysis-two-column,
  body.auth-unlocked .progress-layout,
  body.auth-unlocked .account-card-grid,
  body.auth-unlocked .mini-grid,
  body.auth-unlocked .discrepancy-grid {
    grid-template-columns: 1fr !important;
  }

  body.auth-unlocked .lupa-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  body.auth-unlocked table.lupa-mobile-stack-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  body.auth-unlocked table.lupa-mobile-stack-table thead {
    display: none !important;
  }

  body.auth-unlocked table.lupa-mobile-stack-table tbody,
  body.auth-unlocked table.lupa-mobile-stack-table tr,
  body.auth-unlocked table.lupa-mobile-stack-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.auth-unlocked table.lupa-mobile-stack-table tr {
    padding: 14px !important;
    margin-bottom: 14px !important;
    border: 1px solid rgba(109, 93, 252, 0.14) !important;
    border-radius: 20px !important;
    background: #ffffff !important;
  }

  body.auth-unlocked table.lupa-mobile-stack-table td {
    padding: 8px 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    border: none !important;
  }

  body.auth-unlocked table.lupa-mobile-stack-table td::before {
    content: attr(data-label) !important;
    display: block !important;
    font-weight: 900 !important;
    color: #5b4bff !important;
    margin-bottom: 4px !important;
  }

  body.auth-unlocked footer {
    padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
  }
}

/* LUPA Clarity public-page and access-state refinements */
.public-benefits {
  grid-column: 1 / -1;
  width: 100%;
}

.public-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.public-feature-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(109, 93, 252, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.public-feature-card h3 {
  margin: 0 0 8px;
  color: #101828;
  font-size: 1rem;
}

.public-feature-card p {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

.access-gate {
  display: none;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--surface);
}

.access-card {
  width: min(520px, 100%);
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(109, 93, 252, 0.16);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
}

.access-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 14px; }
.access-card h1 { color: #101828; font-size: 2rem; line-height: 1.1; }
.access-card p { color: #667085; }
.access-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }

body.access-paused .topbar,
body.access-paused main,
body.access-paused footer { display: none !important; }
body.access-paused .access-gate { display: flex; }

@media (max-width: 900px) {
  body.auth-locked .login-copy { text-align: center; }
  body.auth-locked .hero-brain-logo { margin-left: auto !important; margin-right: auto !important; }
  body.auth-locked .hero-pills { justify-content: center; }
  body.auth-locked .login-copy { order: 1 !important; }
  body.auth-locked .login-card { order: 2 !important; }
  body.auth-locked .public-benefits { order: 3 !important; }
  .public-feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .access-actions { flex-direction: column; }
  .access-actions .btn { width: 100%; }
}

@media (max-width: 430px) {
  body.auth-unlocked nav,
  body.auth-unlocked [role="tablist"],
  body.auth-unlocked .tabs,
  body.auth-unlocked .tab-nav,
  body.auth-unlocked .nav-tabs,
  body.auth-unlocked .today-status-cards {
    grid-template-columns: 1fr !important;
  }

  body.auth-unlocked header > div:first-child,
  body.auth-unlocked .brand-row,
  body.auth-unlocked .header-row,
  body.auth-unlocked .top-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}


/* LUPA mobile + Report Review cleanup */
.remove-review-link,
button[data-action="remove-analysis"] {
  display: none !important;
}

.lupa-analysis-difference-spotlight {
  margin: 22px 0 !important;
}

.lupa-diff-hero {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 18px !important;
  align-items: center !important;
  margin-bottom: 18px !important;
}

.lupa-diff-hero strong {
  display: block !important;
  font-size: 1.35rem !important;
  margin-top: 8px !important;
}

.lupa-diff-number {
  min-width: 130px !important;
  text-align: center !important;
  background: linear-gradient(135deg, #ffffff, #efffff) !important;
  border: 1px solid rgba(32, 199, 201, 0.24) !important;
  border-radius: 22px !important;
  padding: 16px !important;
}

.lupa-diff-number strong {
  display: block !important;
  font-size: 2.5rem !important;
  line-height: 1 !important;
  color: #5b4bff !important;
}

.lupa-diff-number span {
  color: #667085 !important;
  font-weight: 850 !important;
}

.lupa-diff-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.lupa-diff-card {
  background: linear-gradient(135deg, #ffffff, #f4ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  border-radius: 24px !important;
  padding: 18px !important;
}

.lupa-diff-card strong {
  display: block !important;
  margin: 8px 0 10px !important;
  line-height: 1.2 !important;
}

.lupa-diff-bureaus {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 14px 0 !important;
}

.lupa-diff-bureaus div {
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.14) !important;
  border-radius: 16px !important;
  padding: 10px !important;
}

.lupa-diff-bureaus span {
  display: block !important;
  color: #5b4bff !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  margin-bottom: 5px !important;
}

.lupa-diff-bureaus b {
  display: block !important;
  color: #344054 !important;
  font-weight: 850 !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  * {
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.auth-unlocked header,
  body.auth-unlocked main,
  body.auth-unlocked footer {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }

  body.auth-unlocked header {
    margin-top: 10px !important;
    padding: 14px !important;
    border-radius: 24px !important;
    display: grid !important;
    gap: 12px !important;
  }

  body.auth-unlocked header > div:first-child {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 10px !important;
    width: 100% !important;
  }

  body.auth-unlocked .app-brand-logo,
  body.auth-unlocked header img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
  }

  body.auth-unlocked header h1,
  body.auth-unlocked header strong,
  body.auth-unlocked header .brand,
  body.auth-unlocked .brand-title,
  body.auth-unlocked .site-title {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.auth-unlocked header span,
  body.auth-unlocked header small,
  body.auth-unlocked .version,
  body.auth-unlocked .tagline,
  body.auth-unlocked .cloud-status {
    font-size: 12px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.auth-unlocked .today-status-shell,
  body.auth-unlocked .today-status-wrap {
    width: 100% !important;
    overflow: visible !important;
  }

  body.auth-unlocked .today-status-title {
    display: grid !important;
    gap: 4px !important;
  }

  body.auth-unlocked .today-status-cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body.auth-unlocked .today-status-card {
    width: 100% !important;
    padding: 12px !important;
  }

  body.auth-unlocked nav,
  body.auth-unlocked [role="tablist"] {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    overflow: visible !important;
    white-space: normal !important;
    padding: 10px !important;
  }

  body.auth-unlocked [role="tab"],
  body.auth-unlocked nav button {
    width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    line-height: 1.15 !important;
    text-align: center !important;
    padding: 12px 10px !important;
    border-radius: 18px !important;
  }

  body.auth-unlocked main {
    padding-bottom: calc(140px + env(safe-area-inset-bottom)) !important;
  }

  body.auth-unlocked main > section:not([hidden]),
  body.auth-unlocked .card,
  body.auth-unlocked .panel,
  body.auth-unlocked .upload-card,
  body.auth-unlocked .info-card,
  body.auth-unlocked .analysis-card,
  body.auth-unlocked .progress-card,
  body.auth-unlocked .accounts-snapshot-card,
  body.auth-unlocked .accounts-table-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
  }

  body.auth-unlocked main h1,
  body.auth-unlocked section h1 {
    font-size: clamp(42px, 13vw, 58px) !important;
    line-height: 0.95 !important;
    overflow-wrap: anywhere !important;
  }

  body.auth-unlocked input,
  body.auth-unlocked textarea,
  body.auth-unlocked select,
  body.auth-unlocked input[type="file"] {
    width: 100% !important;
    font-size: 16px !important;
  }

  body.auth-unlocked .row-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.auth-unlocked .row-actions button {
    width: 100% !important;
  }

  body.auth-unlocked .analysis-grid,
  body.auth-unlocked .analysis-summary-grid,
  body.auth-unlocked .lupa-diff-grid,
  body.auth-unlocked .lupa-diff-bureaus,
  body.auth-unlocked .bureau-snapshot-grid,
  body.auth-unlocked .snapshot-mini-grid,
  body.auth-unlocked .approval-grid,
  body.auth-unlocked .analysis-two-column,
  body.auth-unlocked .progress-layout,
  body.auth-unlocked .account-card-grid,
  body.auth-unlocked .mini-grid,
  body.auth-unlocked .discrepancy-grid {
    grid-template-columns: 1fr !important;
  }

  body.auth-unlocked .desktop-account-table {
    display: none !important;
  }

  body.auth-unlocked .mobile-account-list {
    display: grid !important;
    gap: 14px !important;
  }

  body.auth-unlocked .lupa-table-wrap {
    overflow: visible !important;
    width: 100% !important;
  }

  body.auth-unlocked table {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.auth-unlocked table thead {
    display: none !important;
  }

  body.auth-unlocked table tbody,
  body.auth-unlocked table tr,
  body.auth-unlocked table td {
    display: block !important;
    width: 100% !important;
  }

  body.auth-unlocked table tr {
    margin-bottom: 14px !important;
    padding: 14px !important;
    border: 1px solid rgba(109, 93, 252, 0.14) !important;
    border-radius: 20px !important;
    background: #ffffff !important;
  }

  body.auth-unlocked table td {
    padding: 8px 0 !important;
    border: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.auth-unlocked table td::before {
    content: attr(data-label) !important;
    display: block !important;
    color: #5b4bff !important;
    font-weight: 900 !important;
    margin-bottom: 4px !important;
  }
}

@media (max-width: 430px) {
  body.auth-unlocked nav,
  body.auth-unlocked [role="tablist"],
  body.auth-unlocked .today-status-cards {
    grid-template-columns: 1fr !important;
  }

  body.auth-unlocked header > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}


/* Mobile nav + profile polish */
@media (max-width: 768px) {
  body.auth-unlocked nav,
  body.auth-unlocked [role="tablist"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    padding: 8px !important;
    border-radius: 24px !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity !important;
  }

  body.auth-unlocked nav::-webkit-scrollbar,
  body.auth-unlocked [role="tablist"]::-webkit-scrollbar {
    display: none !important;
  }

  body.auth-unlocked [role="tab"],
  body.auth-unlocked nav button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    padding: 12px 18px !important;
    border-radius: 999px !important;
    scroll-snap-align: start !important;
  }

  body.auth-unlocked .today-status-shell,
  body.auth-unlocked .today-status-wrap,
  body.auth-unlocked .today-status-shell * {
    white-space: normal !important;
    overflow-wrap: normal !important;
  }

  body.auth-unlocked #tab-profile .card button {
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  body.auth-unlocked #tab-profile .card {
    overflow: hidden !important;
  }
}

@media (max-width: 430px) {
  body.auth-unlocked nav,
  body.auth-unlocked [role="tablist"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
  }

  body.auth-unlocked [role="tab"],
  body.auth-unlocked nav button {
    width: auto !important;
  }
}


/* Data Backup section polish */
.lupa-backup-card {
  overflow: hidden !important;
}

.lupa-backup-card h2,
.lupa-backup-card h3,
.lupa-backup-card strong:first-child {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.lupa-backup-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
  margin: 18px 0 14px !important;
}

.lupa-backup-control {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
  padding: 11px 16px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(109, 93, 252, 0.18) !important;
  background: #ffffff !important;
  color: #344054 !important;
  font-size: 0.95rem !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04) !important;
}

.lupa-backup-control input[type="file"] {
  display: none !important;
}

.lupa-backup-note {
  max-width: 760px !important;
  color: #667085 !important;
  line-height: 1.5 !important;
  margin-top: 8px !important;
}

@media (max-width: 768px) {
  .lupa-backup-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .lupa-backup-control {
    width: 100% !important;
    border-radius: 18px !important;
    justify-content: center !important;
  }

  .lupa-backup-note {
    font-size: 0.95rem !important;
  }
}


/* LUPA workflow connection styling */
.lupa-flow-dashboard-summary,
.lupa-all-accounts-from-reports,
.lupa-dispute-letter-workspace {
  margin: 22px 0 !important;
}

.lupa-flow-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

.lupa-flow-stat-grid div {
  background: linear-gradient(135deg, #ffffff, #f4ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.14) !important;
  border-radius: 20px !important;
  padding: 16px !important;
}

.lupa-flow-stat-grid span {
  display: block !important;
  color: #667085 !important;
  font-weight: 850 !important;
  margin-bottom: 8px !important;
}

.lupa-flow-stat-grid strong {
  display: block !important;
  color: #101828 !important;
  font-size: 2rem !important;
  line-height: 1 !important;
}

.lupa-flow-mini-grid,
.lupa-flow-account-grid,
.lupa-dispute-order-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 16px !important;
}

.lupa-flow-mini-card,
.lupa-flow-account-card,
.lupa-dispute-order-card {
  background: linear-gradient(135deg, #ffffff, #f4ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  border-radius: 24px !important;
  padding: 18px !important;
  overflow: hidden !important;
}

.lupa-flow-card-top {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
  align-items: flex-start !important;
  margin-bottom: 12px !important;
}

.lupa-flow-card-top b {
  color: #00747a !important;
  font-size: 0.9rem !important;
  text-align: right !important;
}

.lupa-flow-chip-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

.lupa-flow-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  background: #ffffff !important;
  border-radius: 999px !important;
  padding: 8px 11px !important;
  color: #344054 !important;
  line-height: 1.15 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

.lupa-letter-box {
  margin-top: 14px !important;
  border-top: 1px solid rgba(109, 93, 252, 0.12) !important;
  padding-top: 14px !important;
}

.lupa-letter-box summary {
  cursor: pointer !important;
  font-weight: 900 !important;
  color: #5b4bff !important;
  margin-bottom: 12px !important;
}

.lupa-letter-box textarea {
  width: 100% !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  border-radius: 18px !important;
  padding: 14px !important;
  background: #ffffff !important;
  color: #101828 !important;
  font: inherit !important;
  line-height: 1.45 !important;
  resize: vertical !important;
}

@media (max-width: 768px) {
  .lupa-flow-stat-grid,
  .lupa-flow-mini-grid,
  .lupa-flow-account-grid,
  .lupa-dispute-order-list {
    grid-template-columns: 1fr !important;
  }

  .lupa-flow-card-top {
    display: grid !important;
  }

  .lupa-flow-card-top b {
    text-align: left !important;
  }

  .lupa-flow-chip {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}


/* Full site spacing polish + action plan tools */
.card-label {
  margin: 0 10px 10px 0 !important;
  vertical-align: middle !important;
}

.card-label + strong,
.card-label + b,
.card-label + h3,
.card-label + span {
  margin-left: 8px !important;
}

.lupa-flow-card-top,
.lupa-task-card,
.lupa-action-head {
  gap: 12px !important;
}

.lupa-flow-card-top .card-label {
  margin-bottom: 8px !important;
}

.lupa-flow-card-top {
  align-items: flex-start !important;
  flex-wrap: wrap !important;
}

.lupa-flow-card-top > * {
  min-width: 0 !important;
}

.lupa-action-tools {
  margin: 22px 0 !important;
}

.lupa-action-head {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
}

.lupa-action-head h2 {
  margin: 8px 0 !important;
}

.lupa-action-score {
  text-align: center !important;
  background: linear-gradient(135deg, #ffffff, #efffff) !important;
  border: 1px solid rgba(32, 199, 201, 0.24) !important;
  border-radius: 22px !important;
  padding: 16px !important;
  min-width: 130px !important;
}

.lupa-action-score strong {
  display: block !important;
  font-size: 2rem !important;
  color: #5b4bff !important;
}

.lupa-action-score span {
  color: #667085 !important;
  font-weight: 850 !important;
}

.lupa-action-bar {
  width: 100% !important;
  height: 14px !important;
  background: #eef2ff !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  margin: 16px 0 !important;
}

.lupa-action-bar span {
  display: block !important;
  height: 100% !important;
  background: linear-gradient(135deg, #6d5dfc, #20c7c9) !important;
  border-radius: 999px !important;
}

.lupa-action-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 14px 0 !important;
}

.lupa-action-buttons button {
  width: auto !important;
  min-width: 0 !important;
  border-radius: 999px !important;
  padding: 12px 16px !important;
}

.lupa-task-form {
  background: linear-gradient(135deg, #ffffff, #f4ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  border-radius: 22px !important;
  padding: 16px !important;
  margin: 16px 0 !important;
}

.lupa-task-form label {
  display: grid !important;
  gap: 6px !important;
  margin-bottom: 12px !important;
  color: #667085 !important;
  font-weight: 850 !important;
}

.lupa-task-form input,
.lupa-task-form textarea {
  width: 100% !important;
  border: 1px solid rgba(109, 93, 252, 0.18) !important;
  border-radius: 16px !important;
  padding: 12px !important;
  font: inherit !important;
}

.lupa-task-list {
  display: grid !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.lupa-task-card {
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.14) !important;
  border-radius: 20px !important;
  padding: 14px !important;
}

.lupa-task-card.is-complete {
  opacity: 0.72 !important;
  background: #f8fffe !important;
}

.lupa-task-check {
  display: flex !important;
  gap: 10px !important;
  align-items: flex-start !important;
  font-weight: 900 !important;
}

.lupa-task-check input {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 auto !important;
  margin-top: 2px !important;
}

.lupa-task-card p {
  margin: 8px 0 !important;
}

.lupa-task-card small {
  color: #667085 !important;
  font-weight: 800 !important;
}

@media (max-width: 768px) {
  .lupa-action-head {
    grid-template-columns: 1fr !important;
  }

  .lupa-action-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .lupa-action-buttons button {
    width: 100% !important;
  }

  .card-label + strong,
  .card-label + b,
  .card-label + h3,
  .card-label + span {
    margin-left: 0 !important;
  }
}


/* Other Reports Tracker restored */
.lupa-other-reports-tracker {
  margin: 22px 0 !important;
}

.lupa-other-head {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 18px !important;
  align-items: center !important;
  margin-bottom: 18px !important;
}

.lupa-other-head h2 {
  margin: 10px 0 8px !important;
}

.lupa-other-score {
  min-width: 130px !important;
  text-align: center !important;
  background: linear-gradient(135deg, #ffffff, #efffff) !important;
  border: 1px solid rgba(32, 199, 201, 0.24) !important;
  border-radius: 22px !important;
  padding: 16px !important;
}

.lupa-other-score strong {
  display: block !important;
  font-size: 2rem !important;
  color: #5b4bff !important;
  line-height: 1 !important;
}

.lupa-other-score span {
  color: #667085 !important;
  font-weight: 850 !important;
}

.lupa-other-summary {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
}

.lupa-other-summary span {
  background: #ffffff !important;
  border: 1px solid rgba(109, 93, 252, 0.14) !important;
  border-radius: 999px !important;
  padding: 9px 12px !important;
  color: #344054 !important;
  font-weight: 800 !important;
}

.lupa-other-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.lupa-other-card {
  background: linear-gradient(135deg, #ffffff, #f4ffff) !important;
  border: 1px solid rgba(109, 93, 252, 0.16) !important;
  border-radius: 24px !important;
  padding: 18px !important;
  overflow: hidden !important;
}

.lupa-other-title-row {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  align-items: flex-start !important;
}

.lupa-other-card h3 {
  margin: 10px 0 !important;
  line-height: 1.15 !important;
}

.lupa-open-report {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  padding: 10px 13px !important;
  background: linear-gradient(135deg, #6d5dfc, #20c7c9) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.lupa-other-fields {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 14px 0 !important;
}

.lupa-other-fields label,
.lupa-other-note {
  display: grid !important;
  gap: 6px !important;
  color: #667085 !important;
  font-weight: 800 !important;
}

.lupa-other-fields input,
.lupa-other-fields select,
.lupa-other-note textarea {
  width: 100% !important;
  border: 1px solid rgba(109, 93, 252, 0.18) !important;
  border-radius: 16px !important;
  padding: 11px 12px !important;
  background: #ffffff !important;
  color: #101828 !important;
  font: inherit !important;
}

@media (max-width: 768px) {
  .lupa-other-head,
  .lupa-other-grid,
  .lupa-other-fields {
    grid-template-columns: 1fr !important;
  }

  .lupa-other-title-row {
    display: grid !important;
  }

  .lupa-open-report {
    width: 100% !important;
  }
}


/* LUPA Clarity cleanup: remove brain logo from visible UI */
img[src*="brain" i],
img[alt*="brain" i],
.brain,
.brain-logo,
.brand-brain,
.hero-brain,
.logo-mark img,
.brand-mark img {
  display: none !important;
}

/* Keep LUPA Clarity text clean */
.site-title,
.brand-title,
.logo-text,
.app-title {
  font-weight: 800;
}

/* Guided public homepage */
.login-gate { position: relative; padding: 34px 22px 56px; }
.public-controls { position: absolute; top: 18px; right: 22px; display: flex; gap: 8px; z-index: 2; }
.utility-toggle, .language-toggle {
  background: rgba(255,255,255,.82) !important;
  color: #27324a !important;
  border: 1px solid rgba(39,50,74,.16) !important;
  box-shadow: none !important;
}
.login-hero { grid-template-columns: 1fr !important; gap: 26px !important; max-width: 980px; }
.login-copy { max-width: 720px; padding: 22px 10px 0; }
.login-copy h1 { font-size: clamp(3rem, 7vw, 5.4rem); letter-spacing: -.075em; }
.login-copy h2 { max-width: 660px; margin-top: 12px; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.06; }
.hero-text { max-width: 630px; margin-top: 18px; font-size: 1rem; line-height: 1.6; }
.hero-actions { margin-top: 20px; }
.hero-actions .btn { min-width: 160px; text-align: center; }
.public-benefits { display: grid; gap: 24px; }
.guided-auth { width: min(640px, 100%); margin: 0; padding: 26px; }
.guided-auth[hidden], .pricing-section[hidden] { display: none !important; }
.auth-plan-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.auth-plan-choice { display: grid; gap: 4px; padding: 14px; border: 1px solid rgba(109,93,252,.18); border-radius: 16px; background: rgba(255,255,255,.62); color: #27324a; text-align: left; cursor: pointer; }
.auth-plan-choice strong { font-size: .95rem; }
.auth-plan-choice span { color: #667085; font-size: .82rem; }
.auth-plan-choice.is-selected { border-color: #6d5dfc; box-shadow: 0 0 0 3px rgba(109,93,252,.12); }
.auth-plan-choice:hover { border-color: #6d5dfc; }
#continueAuthBtn { width: 100%; }
#showSignInBtn, #backToChoicesBtn { margin-top: 10px; }
.guided-preview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 22px; align-items: stretch; padding: 28px; border: 1px solid rgba(109,93,252,.14); border-radius: 26px; background: rgba(255,255,255,.72); box-shadow: 0 18px 42px rgba(16,24,40,.06); }
.guided-preview h2 { margin: 5px 0 8px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.guided-preview p { color: #667085; line-height: 1.6; }
.guided-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.guided-steps li { display: flex; gap: 10px; align-items: center; font-weight: 700; color: #27324a; }
.guided-steps strong { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #6d5dfc, #20c7c9); }
.lupa-preview-card { display: grid; align-content: center; gap: 11px; padding: 20px; border-radius: 20px; background: #172033; color: #f8fbff; box-shadow: 0 18px 34px rgba(16,24,40,.16); }
.preview-card-head, .preview-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.preview-card-head { padding-top: 0; font-size: .9rem; color: #b9c7de; }
.preview-card-head strong { font-size: 1.65rem; color: #fff; }
.preview-row { font-size: .88rem; }
.preview-row b { color: #86e4d4; text-align: right; }
.organize-section { padding: 12px 4px; }
.organize-section > p { max-width: 690px; color: #667085; }
.organize-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 15px 0; }
.organize-list span { padding: 8px 12px; border-radius: 999px; background: rgba(109,93,252,.08); color: #41405f; font-weight: 700; font-size: .9rem; }
.plans-link { padding: 0; margin-top: 6px; color: #5b4be8; font-weight: 800; }
.pricing-section { padding-top: 10px; }

/* Calm high-contrast theme */
html[data-theme="dark"] body { background: #101828; color: #eef2f8; }
html[data-theme="dark"] .login-gate { background: radial-gradient(circle at top right, rgba(32,199,201,.14), transparent 32rem), linear-gradient(135deg, #101828, #151b2c); }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] .login-copy h1 { color: #f8fbff; }
html[data-theme="dark"] .login-copy h2 { color: #a99dff; }
html[data-theme="dark"] .hero-text, html[data-theme="dark"] .guided-preview p, html[data-theme="dark"] .organize-section > p { color: #c2ccdc; }
html[data-theme="dark"] .guided-preview, html[data-theme="dark"] .login-card, html[data-theme="dark"] .public-feature-card, html[data-theme="dark"] .pricing-card { background: #1a2437; border-color: rgba(166,157,255,.28); box-shadow: none; }
html[data-theme="dark"] .auth-plan-choice { background: #202c43; border-color: rgba(255,255,255,.16); color: #f8fbff; }
html[data-theme="dark"] .auth-plan-choice span { color: #c2ccdc; }
html[data-theme="dark"] .guided-steps li, html[data-theme="dark"] .organize-list span { color: #edf2f9; }
html[data-theme="dark"] .organize-list span { background: rgba(166,157,255,.16); }
html[data-theme="dark"] .utility-toggle, html[data-theme="dark"] .language-toggle { background: #263249 !important; color: #f8fbff !important; border-color: rgba(255,255,255,.2) !important; }
html[data-theme="dark"] header, html[data-theme="dark"] .topbar { background: #172033; }
html[data-theme="dark"] .card, html[data-theme="dark"] .metric, html[data-theme="dark"] dialog { background: #1a2437; color: #eef2f8; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: #101828 !important; color: #f8fbff !important; border-color: rgba(255,255,255,.25) !important; }

@media (max-width: 700px) {
  .login-gate { padding: 72px 18px 38px; }
  .public-controls { top: 16px; right: 16px; }
  .guided-preview { grid-template-columns: 1fr; padding: 22px; }
  .auth-plan-options { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* LUPA Clarity: community-first public home */
body.auth-locked { background: #fffaf4; }
body.auth-locked .login-gate {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 8%, rgba(49, 191, 190, .22), transparent 23rem),
    radial-gradient(circle at 6% 86%, rgba(255, 186, 120, .22), transparent 25rem),
    #fffaf4;
}
body.auth-locked .login-hero { max-width: 1080px !important; gap: 34px !important; }
body.auth-locked .login-copy { max-width: 770px; padding: 52px 12px 8px; }
body.auth-locked .community-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #0c666d;
  background: #dff6ef;
  letter-spacing: .06em;
}
body.auth-locked .login-copy h1 {
  margin: 17px 0 0;
  color: #1b2943;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  letter-spacing: -.09em;
  line-height: .9;
}
body.auth-locked .login-copy h2 {
  max-width: 735px;
  margin: 20px 0 0;
  color: #5a45c8;
  font-size: clamp(1.65rem, 3.4vw, 2.8rem);
  line-height: 1.08;
}
body.auth-locked .hero-text { max-width: 640px; color: #4d5b70; font-size: 1.12rem; }
body.auth-locked .hero-actions { display: flex; gap: 12px; align-items: center; }
body.auth-locked .hero-actions .btn.primary {
  border: 0;
  background: linear-gradient(135deg, #5e4bd8, #2ab9c7);
  box-shadow: 0 12px 24px rgba(75, 73, 187, .24);
}
body.auth-locked .hero-actions .btn.secondary { background: rgba(255,255,255,.7); }
.hero-reassurance { margin: 15px 0 0; color: #0c666d; font-size: .92rem; font-weight: 700; }
.guided-preview.human-first {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 38px;
  padding: 40px;
  border: 1px solid rgba(56, 73, 110, .1);
  border-radius: 30px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 22px 48px rgba(45, 53, 86, .08);
}
.guided-preview.human-first h2 { color: #1b2943; font-size: clamp(2rem, 3.2vw, 2.75rem); }
.guided-preview.human-first p { color: #536178; font-size: 1rem; }
.guided-preview.human-first .feature-label { color: #d25a3b; }
.guided-preview.human-first .guided-steps { gap: 13px; }
.guided-preview.human-first .guided-steps strong { background: #f3a663; color: #3d2b1e; }
.life-goals { display: grid; align-content: center; gap: 10px; }
.life-goals > p { margin: 0 0 4px; color: #0c666d !important; font-size: .77rem !important; font-weight: 800; letter-spacing: .09em; }
.goal-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid rgba(82, 64, 179, .12);
  border-radius: 18px;
  background: linear-gradient(120deg, #fff7ec, #f3f8ff);
}
.goal-card span { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #5a45c8; background: #e9e5ff; font-size: 1.25rem; }
.goal-card strong { color: #23314c; }
.goal-card small { color: #69768a; font-size: .8rem; }
html[data-theme="dark"] body.auth-locked .login-gate { background: radial-gradient(circle at top right, rgba(42,185,199,.17), transparent 24rem), #111c2e; }
html[data-theme="dark"] body.auth-locked .login-copy h1,
html[data-theme="dark"] .guided-preview.human-first h2 { color: #fff8f0; }
html[data-theme="dark"] .guided-preview.human-first { background: #1b2940; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .goal-card { background: #22324d; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .goal-card strong { color: #fff8f0; }
html[data-theme="dark"] .goal-card small { color: #c8d2e0; }
@media (max-width: 700px) {
  body.auth-locked .login-copy { padding-top: 30px; }
  body.auth-locked .hero-actions { display: grid; }
  .guided-preview.human-first { grid-template-columns: 1fr; gap: 28px; padding: 26px 22px; }
}

/* One simple Google entry point: compact on phones, composed on desktop. */
.gmail-auth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(470px, 100%);
  min-height: 240px;
  padding: 30px;
  border: 1px solid rgba(31, 46, 76, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 42px rgba(36, 48, 75, .10);
}
.gmail-auth h2 { margin: 7px 0 8px; color: #1b2943; font-size: 1.65rem; }
.gmail-auth .sub { margin: 0 0 20px; line-height: 1.55; color: #5b687b; }
.google-auth-button {
  display: flex;
  width: min(100%, 340px);
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: #1b2943 !important;
  box-shadow: none !important;
}
.google-auth-button::before {
  content: "G";
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: white;
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: .9rem;
  font-weight: 800;
}
.gmail-auth .auth-message:not(:empty) { position: absolute; right: 24px; bottom: 18px; left: 24px; text-align: center; }
.gmail-privacy { margin: 15px 0 0; color: #0c666d; font-size: .84rem; font-weight: 700; line-height: 1.45; }
.payment-placeholder {
  display: grid;
  gap: 3px;
  margin-top: 19px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #f6f3ff;
  color: #4b3ba5;
  font-size: .86rem;
}
.payment-placeholder strong { font-size: .9rem; }
.payment-placeholder span { color: #695f87; }
html[data-theme="dark"] .gmail-auth { background: #1b2940; border-color: rgba(255,255,255,.14); box-shadow: none; }
html[data-theme="dark"] .gmail-auth h2 { color: #fff8f0; }
html[data-theme="dark"] .gmail-auth .sub { color: #c8d2e0; }
html[data-theme="dark"] .payment-placeholder { background: #26355a; color: #e1dbff; }
html[data-theme="dark"] .payment-placeholder span { color: #c9c2e9; }
@media (min-width: 900px) {
  body.auth-locked .login-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr) !important;
    align-items: center;
  }
  body.auth-locked .public-benefits { display: contents; }
  body.auth-locked .gmail-auth { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
  body.auth-locked .guided-preview,
  body.auth-locked .organize-section,
  body.auth-locked .pricing-section { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .gmail-auth { width: 100%; min-height: 180px; padding: 24px 20px; border-radius: 22px; }
  .google-auth-button { min-height: 54px; }
}

/* Leave visual breathing room below browser chrome without crowding mobile. */
@media (min-width: 769px) {
  body.auth-unlocked header.topbar { margin-top: clamp(28px, 3vw, 42px) !important; }
}
@media (max-width: 768px) {
  body.auth-unlocked header.topbar { margin-top: max(12px, env(safe-area-inset-top)) !important; }
  body.auth-locked .login-gate { padding-top: max(72px, calc(env(safe-area-inset-top) + 56px)) !important; }
}

/* Plain-language profile flow: clear sections, centered titles, readable forms. */
.simple-page-heading { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.simple-page-heading h1 { margin-bottom: 10px; }
.simple-page-heading p { margin: 0; color: #667085; font-size: 1.05rem; line-height: 1.5; }
.simple-profile-card { padding: 30px !important; }
.simple-card-heading { display: grid; justify-items: center; max-width: 700px; margin: 0 auto 24px; text-align: center; }
.simple-step { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 50%; background: linear-gradient(135deg, #6d5dfc, #20c7c9); color: #fff; font-weight: 900; }
.simple-card-heading h2 { margin: 0; color: #18233a; font-size: 1.4rem; }
.simple-card-heading p, .simple-note { margin: 8px 0 0; color: #667085; line-height: 1.5; }
.simple-profile-card .formgrid,
.simple-profile-card > label.f,
.simple-profile-card > input { max-width: 980px; margin-left: auto; margin-right: auto; }
.simple-profile-card .toolbar.simple-card-action { justify-content: center; margin: 20px 0 0; }
.simple-profile-card .simple-note { text-align: center; }
.simple-profile-card .lupa-backup-actions { justify-content: center; }
.simple-profile-card .lupa-backup-note { margin: 4px auto 0; text-align: center; }
html[data-theme="dark"] .simple-page-heading p,
html[data-theme="dark"] .simple-card-heading p,
html[data-theme="dark"] .simple-note { color: #c8d2e0; }
html[data-theme="dark"] .simple-card-heading h2 { color: #fff8f0; }
@media (max-width: 768px) {
  .simple-page-heading { margin-bottom: 20px; text-align: left; }
  .simple-profile-card { padding: 22px 18px !important; }
  .simple-card-heading { margin-bottom: 18px; }
  .simple-profile-card .lupa-backup-actions { justify-content: stretch; }
}

/* VA-tracker-inspired guided credit workflow. */
body.auth-unlocked { background: #f1f4f9 !important; color: #10274c; }
body.auth-unlocked header.topbar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #102d5b !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.auth-unlocked .topbar .brandrow { width: min(1180px, calc(100% - 40px)); min-height: 92px; margin: 0 auto; align-items: center !important; }
body.auth-unlocked .topbar .brand { color: #fff !important; font-size: 1.8rem !important; }
body.auth-unlocked .topbar .version { color: #b9cced !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
body.auth-unlocked .topbar .tagline, body.auth-unlocked .topbar .syncstate { color: #cdd8ea !important; }
body.auth-unlocked .topbar .authbox button { color: #fff !important; border-color: rgba(255,255,255,.45) !important; background: transparent !important; }
body.auth-unlocked .topbar .statusline { display: none !important; }
body.auth-unlocked .topbar nav.tabs {
  display: flex !important;
  width: 100% !important;
  padding: 0 max(20px, calc((100% - 1180px) / 2)) !important;
  gap: 22px !important;
  overflow-x: auto !important;
  background: #f8faff !important;
  border-bottom: 1px solid #dbe4f2;
}
body.auth-unlocked .topbar nav.tabs button {
  flex: 0 0 auto !important;
  padding: 19px 0 15px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #64718a !important;
  font-family: inherit !important;
  font-size: .98rem !important;
  font-weight: 800 !important;
}
body.auth-unlocked .topbar nav.tabs button[aria-selected="true"] { color: #102d5b !important; border-bottom-color: #2864ee !important; }
body.auth-unlocked main { max-width: 1180px !important; padding: 34px 20px 80px !important; }
body.auth-unlocked .card { border-color: #d7e1ef !important; border-radius: 18px !important; box-shadow: 0 10px 30px rgba(21, 43, 78, .05); }
.tracker-page-heading { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; margin-bottom: 24px; }
.tracker-page-heading > span, .tracker-next-actions > div > span, .tracker-upload-card > span, .tracker-review-next span { color: #6d7f9d; font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.tracker-page-heading h1 { margin: 5px 0 4px; font-size: clamp(2.1rem, 4vw, 3rem); }
.tracker-page-heading p { margin: 0; color: #65738b; }
.tracker-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.tracker-metric { min-height: 128px; padding: 22px; border: 1px solid #d7e1ef; border-radius: 18px; background: #fff; color: #10274c; text-align: left; cursor: pointer; }
.tracker-metric:hover { border-color: #2864ee; transform: translateY(-1px); }
.tracker-metric span { display: block; color: #6d7f9d; font-size: .78rem; font-weight: 900; letter-spacing: .09em; }
.tracker-metric strong { display: block; margin-top: 8px; font-size: 2.25rem; line-height: 1; }
.tracker-next-actions { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding: 26px !important; }
.tracker-next-actions h2 { margin: 4px 0 0; color: #10274c; }
.tracker-link { border: 0; background: transparent; color: #2864ee; font: inherit; font-weight: 900; cursor: pointer; }
.tracker-next-list { grid-column: 1 / -1; display: grid; }
.tracker-next-list button { display: grid; grid-template-columns: 1fr auto; gap: 3px 18px; padding: 16px 0; border: 0; border-top: 1px solid #e2e9f3; background: transparent; color: #10274c; text-align: left; cursor: pointer; }
.tracker-next-list small { grid-column: 1; color: #65738b; font-size: .95rem; }
.tracker-next-list b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #2864ee; }
.tracker-upload-card { padding: 26px !important; }
.tracker-upload-card h2 { margin: 5px 0 6px; }
.tracker-completion { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; margin-top: 20px; padding: 24px !important; border-color: #a9d8bf !important; background: linear-gradient(135deg, #f4fff8, #ffffff); }
.tracker-completion span { color: #3b7b5c; font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.tracker-completion h2 { margin: 0; color: #174b34; }
.tracker-completion p { grid-column: 1; margin: 0; color: #547063; }
.tracker-completion .tracker-link { grid-column: 2; grid-row: 1 / span 2; }
.tracker-review-next { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.tracker-review-next h2 { margin: 5px 0; }
.tracker-review-next p { margin: 0; color: #65738b; }
.tracker-review-next .btn + .btn { margin-left: 8px; }
.dispute-status-board { padding: 24px !important; }
.dispute-status-board > div > span { color: #6d7f9d; font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.dispute-status-board h2 { margin: 4px 0 14px; }
.tracker-dispute-list { display: grid; }
.tracker-dispute-row { display: grid; grid-template-columns: 1fr 190px; gap: 18px; align-items: center; padding: 17px 0; border-top: 1px solid #e2e9f3; }
.tracker-dispute-row p { margin: 4px 0 0; color: #65738b; line-height: 1.45; }
.tracker-dispute-row label { display: grid; gap: 5px; color: #6d7f9d; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tracker-dispute-row.is-resolved { opacity: .58; }
.desktop-account-table { display: none !important; }
.tracker-account-list { display: grid !important; gap: 16px; }
.tracker-account-card { display: grid; gap: 16px; padding: 22px; border: 1px solid #d7e1ef; border-radius: 18px; background: #fff; }
.account-card-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.account-card-top > div > span, .tracker-bureau-grid span { display: block; color: #6d7f9d; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.account-card-top strong { display: block; margin-top: 3px; font-size: 1.22rem; color: #10274c; }
.account-card-top > b { color: #65738b; font-size: .9rem; }
.tracker-issue { padding: 14px; border-radius: 12px; background: #fff8ed; color: #7a4b08; }
.tracker-issue p, .tracker-next-copy { margin: 5px 0 0; }
.tracker-bureau-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tracker-bureau-grid > div { padding: 14px; border: 1px solid #dce6f2; border-radius: 12px; background: #f9fbff; }
.tracker-bureau-grid strong { display: block; margin-top: 7px; color: #10274c; line-height: 1.35; }
@media (max-width: 768px) {
  body.auth-unlocked .topbar .brandrow { width: calc(100% - 28px); min-height: 76px; }
  body.auth-unlocked .topbar .version, body.auth-unlocked .topbar .tagline, body.auth-unlocked .topbar .syncstate { display: none !important; }
  body.auth-unlocked .topbar nav.tabs { gap: 18px !important; padding: 0 16px !important; border-radius: 0 !important; }
  body.auth-unlocked .topbar nav.tabs button { padding: 15px 0 12px !important; }
  .tracker-page-heading, .tracker-next-actions { grid-template-columns: 1fr; }
  .tracker-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tracker-metric { min-height: 108px; padding: 16px; }
  .tracker-next-actions { padding: 20px !important; }
  .tracker-bureau-grid { grid-template-columns: 1fr; }
  .tracker-review-next { display: grid; }
  .tracker-completion { grid-template-columns: 1fr; }
  .tracker-completion .tracker-link { grid-column: 1; grid-row: auto; justify-self: start; }
  .tracker-dispute-row { grid-template-columns: 1fr; }
}

/* Targeted public-home clarity update: upload → review → organize → next step. */
body.auth-locked .login-copy h1 { letter-spacing: -.075em; }
body.auth-locked .hero-actions {
  flex-wrap: wrap;
  align-items: stretch;
}
body.auth-locked .hero-actions .btn {
  min-width: 150px;
  justify-content: center;
}
body.auth-locked .hero-actions .upload-cta {
  border-color: rgba(42, 185, 199, .45);
  background: #ffffff;
  color: #0c666d;
}
body.auth-locked .guided-preview.human-first {
  align-items: stretch;
}
body.auth-locked .guided-steps li {
  align-items: center;
}
body.auth-locked .clarity-flow {
  align-content: stretch;
}
body.auth-locked .clarity-flow .goal-card {
  min-height: 86px;
}
body.auth-locked .clarity-flow .goal-card span {
  color: #0c666d;
  background: #dff6ef;
  font-weight: 900;
}
body.auth-locked .organize-section p {
  max-width: 760px;
}
@media (max-width: 700px) {
  body.auth-locked .login-copy h1 {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }
  body.auth-locked .hero-actions .btn {
    width: 100%;
  }
  body.auth-locked .guided-steps li {
    grid-template-columns: 34px 1fr;
  }
}

/* Targeted signed-in polish: closer to the VA tracker, less pill-shaped. */
.notranslate {
  translate: no;
}
body.auth-unlocked .topbar .brandrow {
  min-height: 74px !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
}
body.auth-unlocked .topbar .brand {
  flex: 0 0 auto;
  font-size: 1.55rem !important;
}
body.auth-unlocked .topbar .tagline {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.auth-unlocked .topbar .authbox {
  margin-left: auto !important;
  flex: 0 0 auto;
}
body.auth-unlocked .topbar .syncstate {
  font-family: inherit !important;
  font-weight: 800;
}
body.auth-unlocked .topbar nav.tabs {
  gap: 26px !important;
}
body.auth-unlocked main {
  padding-top: 42px !important;
}
body.auth-unlocked .tracker-page-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 22px;
}
body.auth-unlocked .tracker-page-heading > div > span,
body.auth-unlocked .tracker-page-heading > span {
  display: block;
  color: #6d7f9d;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.auth-unlocked .tracker-page-heading .btn {
  min-width: 150px;
  border-color: #bfd0e7;
  background: #fff;
  color: #102d5b;
}
body.auth-unlocked .tracker-metric {
  min-height: 112px;
  border-radius: 16px !important;
  box-shadow: 0 10px 24px rgba(16, 45, 91, .04);
}
body.auth-unlocked .tracker-next-actions {
  border-radius: 18px !important;
}
body.auth-unlocked .tracker-next-list {
  gap: 10px;
  margin-top: 10px;
}
body.auth-unlocked .tracker-next-list button {
  grid-template-columns: 1fr auto;
  padding: 15px 16px;
  border: 1px solid #dbe4f2;
  border-radius: 14px;
  background: #fff;
}
body.auth-unlocked .tracker-next-list small b {
  color: #10274c;
}
body.auth-unlocked .tracker-next-list em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #2864ee;
  font-style: normal;
  font-weight: 900;
}
@media (max-width: 900px) {
  body.auth-unlocked .topbar .brandrow {
    flex-wrap: wrap !important;
    min-height: 82px !important;
  }
  body.auth-unlocked .topbar .tagline,
  body.auth-unlocked .topbar .syncstate {
    display: none !important;
  }
  body.auth-unlocked .tracker-page-heading {
    grid-template-columns: 1fr;
  }
  body.auth-unlocked .tracker-page-heading .btn {
    width: fit-content;
  }
}

/* Reference-style public entry page for LUPA Clarity. */
body.auth-locked .login-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: max(26px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom)) !important;
  background:
    radial-gradient(circle at 14% 16%, rgba(45, 96, 168, .72), transparent 34rem),
    radial-gradient(circle at 78% 82%, rgba(22, 132, 119, .82), transparent 34rem),
    linear-gradient(135deg, #0c2448 0%, #071832 54%, #052236 100%) !important;
  color: #ffffff;
}
body.auth-locked .public-controls {
  top: 22px;
  right: 24px;
}
body.auth-locked .public-controls .utility-toggle {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}
body.auth-locked .login-hero.lupa-material-home {
  display: grid !important;
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  min-height: auto;
  place-items: center;
  gap: 0 !important;
}
body.auth-locked .lupa-material-home .login-copy {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 680px !important;
  padding: 0 !important;
  text-align: center;
}
.lupa-front-mark {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 50px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 13px;
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.lupa-front-mark span {
  width: 13px;
  height: 34px;
  border-radius: 4px;
  background: #ffffff;
}
.lupa-front-mark span:nth-child(2) { background: #ef6761; }
.lupa-front-mark span:nth-child(3) { background: #6da8e8; }
body.auth-locked .lupa-material-home .community-badge {
  margin: 0 0 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #aac4f3;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
}
body.auth-locked .lupa-material-home h1 {
  margin: 0;
  max-width: 760px;
  color: #ffffff !important;
  font-size: clamp(3.3rem, 8vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.065em;
}
body.auth-locked .lupa-material-home .hero-text {
  max-width: 620px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
}
body.auth-locked .lupa-material-home .gmail-auth {
  display: block;
  width: auto;
  min-height: 0;
  margin-top: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.auth-locked .lupa-material-home .google-auth-button {
  width: min(306px, calc(100vw - 48px));
  min-height: 60px;
  border-radius: 12px;
  background: #ffffff !important;
  color: #172033 !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2) !important;
}
body.auth-locked .lupa-material-home .google-auth-button::before {
  background: transparent;
}
body.auth-locked .lupa-material-home .hero-reassurance {
  margin-top: 18px;
  color: rgba(255, 255, 255, .72);
  font-size: .96rem;
  font-weight: 500;
}
body.auth-locked .lupa-material-home .auth-message:not(:empty) {
  position: static;
  margin-top: 14px;
  color: #ffffff;
}
@media (max-width: 700px) {
  body.auth-locked .login-gate {
    align-items: center;
    padding-top: 86px !important;
  }
  body.auth-locked .public-controls {
    top: 16px;
    right: 16px;
  }
  .lupa-front-mark {
    margin-bottom: 24px;
  }
  body.auth-locked .lupa-material-home h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }
}

/* Upload & Review Center mockup */
.upload-review-center {
  display: grid;
  gap: 18px;
}

.review-center-heading,
.review-upload-state,
.review-generate-row,
.review-error-top,
.review-tracker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.review-center-heading {
  align-items: flex-start;
}

.review-center-heading h2,
.review-section-title h3 {
  margin: 4px 0 6px;
}

.review-center-heading p,
.review-section-title p,
.review-upload-state p {
  margin: 0;
  color: #667085;
}

.review-upload-btn {
  flex: 0 0 auto;
}

.review-upload-state,
.review-empty-panel,
.review-summary-grid > div,
.review-error-card,
.review-tracker-row {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(244,255,255,0.9));
  border: 1px solid rgba(109, 93, 252, 0.14);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.05);
}

.review-upload-state {
  padding: 18px;
}

.review-upload-state span,
.review-summary-grid span,
.review-error-meta span,
.review-tracker-row label {
  color: #667085;
  font-size: 0.84rem;
  font-weight: 800;
}

.review-upload-state strong {
  display: block;
  color: #101828;
  font-size: 1.04rem;
  word-break: break-word;
}

.review-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.review-summary-grid > div {
  padding: 18px;
}

.review-summary-grid strong {
  display: block;
  margin-top: 8px;
  color: #101828;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.review-center-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.review-error-list,
.review-tracker-list {
  display: grid;
  gap: 12px;
}

.review-error-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.review-error-card.is-moved {
  opacity: 0.72;
}

.review-error-check {
  display: grid;
  place-items: start;
  padding-top: 4px;
}

.review-error-check input {
  width: 19px;
  height: 19px;
  accent-color: #5b4be8;
}

.review-error-card p {
  margin: 7px 0;
}

.review-error-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.review-error-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(109, 93, 252, 0.08);
  color: #344054;
}

.review-next-step {
  color: #344054;
  line-height: 1.45;
}

.review-generate-row {
  justify-content: flex-start;
  margin-top: 14px;
}

.review-generate-row span,
.review-tracker-actions span {
  color: #667085;
  font-weight: 800;
}

.review-tracker-panel {
  position: sticky;
  top: 18px;
}

.review-tracker-row {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.review-tracker-main strong {
  display: block;
  color: #101828;
  font-size: 1.02rem;
}

.review-tracker-row label {
  display: grid;
  gap: 5px;
}

.review-tracker-row textarea {
  min-height: 76px;
}

.review-empty-panel {
  padding: 20px;
}

.review-empty-panel strong {
  display: block;
  color: #101828;
  margin-bottom: 6px;
}

.review-empty-panel p {
  margin: 0;
  color: #667085;
}

@media (max-width: 920px) {
  .review-center-heading,
  .review-upload-state,
  .review-tracker-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .review-summary-grid,
  .review-center-layout {
    grid-template-columns: 1fr;
  }

  .review-tracker-panel {
    position: static;
  }
}

/* LUPA Clarity visual layout polish pass */
:root {
  --lupa-navy: #102d5b;
  --lupa-navy-deep: #071b35;
  --lupa-blue: #2864ee;
  --lupa-teal: #20a7b0;
  --lupa-bg: #f4f7fb;
  --lupa-card-bg: #ffffff;
  --lupa-border: #d8e2ef;
  --lupa-border-strong: #b8c8dd;
  --lupa-text: #10233f;
  --lupa-text-soft: #4f6179;
  --lupa-label: #526a8a;
  --lupa-shadow: 0 14px 38px rgba(16, 45, 91, .08);
  --lupa-shadow-soft: 0 8px 22px rgba(16, 45, 91, .055);
  --lupa-radius: 18px;
  --lupa-radius-sm: 12px;
}

html {
  background: var(--lupa-bg);
}

body {
  color: var(--lupa-text) !important;
}

body.auth-locked .login-gate {
  min-height: 100svh !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(24px, 5vh, 48px) 22px !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(40, 100, 238, .22), transparent 28rem),
    radial-gradient(circle at 86% 82%, rgba(32, 167, 176, .24), transparent 28rem),
    linear-gradient(135deg, #071b35 0%, #102d5b 54%, #0b3b4f 100%) !important;
}

body.auth-locked .login-hero.lupa-material-home,
body.auth-locked .clean-login-hero {
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px) !important;
  gap: clamp(28px, 5vw, 58px) !important;
  align-items: center !important;
  place-items: initial !important;
}

body.auth-locked .lupa-material-home .login-copy {
  display: grid !important;
  justify-items: start !important;
  max-width: 620px !important;
  text-align: left !important;
}

body.auth-locked .lupa-front-mark {
  margin-bottom: 22px !important;
}

body.auth-locked .lupa-material-home .community-badge {
  color: #bcd4ff !important;
  letter-spacing: .12em !important;
}

body.auth-locked .lupa-material-home h1 {
  max-width: 620px !important;
  font-size: clamp(3.15rem, 7vw, 5.9rem) !important;
  line-height: .95 !important;
  letter-spacing: -.055em !important;
}

body.auth-locked .lupa-material-home .hero-text {
  max-width: 560px !important;
  margin: 18px 0 0 !important;
  color: rgba(255, 255, 255, .84) !important;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem) !important;
  line-height: 1.62 !important;
}

body.auth-locked .lupa-material-home .gmail-auth {
  width: min(360px, 100%) !important;
  margin-top: 28px !important;
}

body.auth-locked .lupa-material-home .google-auth-button {
  width: 100% !important;
  min-height: 54px !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .18) !important;
}

body.auth-locked .lupa-material-home .hero-reassurance {
  margin-top: 14px !important;
  color: rgba(255, 255, 255, .74) !important;
}

.login-preview-panel {
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .24);
  color: var(--lupa-text);
}

.preview-window-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}

.preview-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef6761;
}

.preview-window-bar span:nth-child(2) { background: #f6bd45; }
.preview-window-bar span:nth-child(3) { background: #20a7b0; }

.preview-heading span,
.preview-metrics span {
  display: block;
  color: var(--lupa-label);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preview-heading strong {
  display: block;
  margin-top: 7px;
  color: var(--lupa-text);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.preview-metrics div,
.preview-flow {
  border: 1px solid var(--lupa-border);
  border-radius: 14px;
  background: #f8fbff;
}

.preview-metrics div {
  padding: 14px;
}

.preview-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--lupa-navy);
  font-size: 1.85rem;
  line-height: 1;
}

.preview-flow {
  display: grid;
  gap: 0;
  padding: 6px 16px;
}

.preview-flow p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--lupa-border);
  color: var(--lupa-text-soft);
  font-weight: 750;
}

.preview-flow p:last-child {
  border-bottom: 0;
}

.preview-flow p span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lupa-blue), var(--lupa-teal));
}

body.auth-unlocked {
  background: var(--lupa-bg) !important;
  color: var(--lupa-text) !important;
}

body.auth-unlocked header.topbar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--lupa-navy) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(7, 27, 53, .12) !important;
}

body.auth-unlocked .topbar .brandrow {
  width: min(1180px, calc(100% - 40px)) !important;
  min-height: 68px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

body.auth-unlocked .topbar .brand {
  color: #ffffff !important;
  font-size: 1.42rem !important;
  line-height: 1.1 !important;
  letter-spacing: -.03em !important;
}

body.auth-unlocked .topbar .version,
body.auth-unlocked .topbar .tagline,
body.auth-unlocked .topbar .syncstate {
  color: #c8d7ee !important;
  font-size: .82rem !important;
}

body.auth-unlocked .topbar .authbox {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

body.auth-unlocked .topbar .authbox button,
body.auth-unlocked .language-toggle {
  min-height: 34px !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.auth-unlocked #statusLine {
  display: block !important;
  width: min(1180px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #dce8fb !important;
  box-shadow: none !important;
  font-size: .88rem !important;
}

body.auth-unlocked #statusLine .prompt {
  color: #ffffff !important;
}

body.auth-unlocked .topbar nav.tabs {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 max(20px, calc((100% - 1180px) / 2)) !important;
  gap: 6px !important;
  background: #ffffff !important;
  border-top: 1px solid rgba(255, 255, 255, .12) !important;
  border-bottom: 1px solid var(--lupa-border) !important;
  box-shadow: none !important;
  overflow-x: auto !important;
}

body.auth-unlocked .topbar nav.tabs button {
  min-height: 48px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--lupa-text-soft) !important;
  font-size: .94rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

body.auth-unlocked .topbar nav.tabs button[aria-selected="true"] {
  color: var(--lupa-navy) !important;
  border-bottom-color: var(--lupa-blue) !important;
  background: #f6f9fd !important;
}

body.auth-unlocked main,
footer.disclaimer {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.auth-unlocked main {
  padding: 32px 0 72px !important;
}

body.auth-unlocked main > section {
  display: grid;
  gap: 20px;
}

body.auth-unlocked main > section[hidden] {
  display: none !important;
}

body.auth-unlocked h1 {
  color: var(--lupa-text) !important;
  font-size: clamp(2rem, 3.2vw, 2.65rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -.04em !important;
}

body.auth-unlocked h2 {
  color: var(--lupa-text) !important;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
  line-height: 1.18 !important;
}

body.auth-unlocked h3,
body.auth-unlocked strong {
  color: var(--lupa-text);
}

body.auth-unlocked p,
body.auth-unlocked .muted,
body.auth-unlocked .sub,
body.auth-unlocked .small,
body.auth-unlocked .empty,
body.auth-unlocked .empty-line {
  color: var(--lupa-text-soft) !important;
  line-height: 1.58 !important;
}

body.auth-unlocked .card,
body.auth-unlocked .metric,
body.auth-unlocked .summary-card,
body.auth-unlocked .analysis-score-card,
body.auth-unlocked .mini-card,
body.auth-unlocked .account-review-card,
body.auth-unlocked .dispute-plan-card,
body.auth-unlocked .progress-overview-card,
body.auth-unlocked .progress-card,
body.auth-unlocked .todo-line,
body.auth-unlocked .shadow-guide-detail,
body.auth-unlocked .shadow-step-grid > div,
body.auth-unlocked .review-upload-state,
body.auth-unlocked .review-empty-panel,
body.auth-unlocked .review-summary-grid > div,
body.auth-unlocked .review-error-card,
body.auth-unlocked .review-tracker-row {
  border: 1px solid var(--lupa-border) !important;
  border-radius: var(--lupa-radius) !important;
  background: var(--lupa-card-bg) !important;
  box-shadow: var(--lupa-shadow-soft) !important;
}

body.auth-unlocked .card {
  padding: clamp(18px, 2.4vw, 24px) !important;
  margin: 0 !important;
}

body.auth-unlocked .tracker-page-heading,
body.auth-unlocked .simple-page-heading,
body.auth-unlocked .analysis-header-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 16px !important;
  margin: 0 0 4px !important;
}

body.auth-unlocked .tracker-page-heading p,
body.auth-unlocked .simple-page-heading p,
body.auth-unlocked .analysis-header-row p {
  margin-top: 6px !important;
  max-width: 720px !important;
}

body.auth-unlocked .tracker-page-heading > span,
body.auth-unlocked .tracker-page-heading > div > span,
body.auth-unlocked .card-label,
body.auth-unlocked .simple-step,
body.auth-unlocked .tracker-next-actions > div > span,
body.auth-unlocked .tracker-upload-card > span,
body.auth-unlocked .tracker-review-next span {
  color: var(--lupa-label) !important;
  font-size: .76rem !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

body.auth-unlocked .tracker-metrics,
body.auth-unlocked .analysis-grid,
body.auth-unlocked .analysis-summary-grid,
body.auth-unlocked .bureau-snapshot-grid,
body.auth-unlocked .approval-grid,
body.auth-unlocked .review-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
}

body.auth-unlocked .tracker-metric {
  min-height: 108px !important;
  padding: 18px !important;
  border: 1px solid var(--lupa-border) !important;
  border-radius: var(--lupa-radius) !important;
  background: #ffffff !important;
  color: var(--lupa-text) !important;
  box-shadow: var(--lupa-shadow-soft) !important;
}

body.auth-unlocked .tracker-metric span,
body.auth-unlocked .summary-card span,
body.auth-unlocked .review-summary-grid span {
  color: var(--lupa-label) !important;
}

body.auth-unlocked .tracker-metric strong,
body.auth-unlocked .summary-card strong,
body.auth-unlocked .review-summary-grid strong {
  color: var(--lupa-navy) !important;
  font-size: clamp(1.8rem, 3vw, 2.25rem) !important;
  line-height: 1 !important;
}

body.auth-unlocked .tracker-next-actions,
body.auth-unlocked .tracker-review-next,
body.auth-unlocked .tracker-completion,
body.auth-unlocked .review-center-heading,
body.auth-unlocked .review-upload-state {
  align-items: center !important;
}

body.auth-unlocked .tracker-next-list button,
body.auth-unlocked .snapshot-mini-item,
body.auth-unlocked .bureau-snapshot-card,
body.auth-unlocked .approval-card,
body.auth-unlocked .discrepancy-card,
body.auth-unlocked .progress-add-form {
  border: 1px solid var(--lupa-border) !important;
  border-radius: var(--lupa-radius-sm) !important;
  background: #f8fbff !important;
  box-shadow: none !important;
}

body.auth-unlocked button,
body.auth-unlocked .btn,
body.auth-unlocked a.btn {
  border-radius: 10px !important;
  font-weight: 850 !important;
}

body.auth-unlocked .btn.primary,
body.auth-unlocked button.primary,
body.auth-unlocked button[data-action="analyze-reports"],
body.auth-unlocked .card button[data-action="add-account"],
body.auth-unlocked .card button[data-action="add-dispute"],
body.auth-unlocked .card button[data-action="add-task"],
body.auth-unlocked button[data-action="review-center-generate"] {
  background: linear-gradient(135deg, var(--lupa-blue), var(--lupa-teal)) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 10px 24px rgba(40, 100, 238, .18) !important;
}

body.auth-unlocked .btn.secondary,
body.auth-unlocked .card .btn.secondary,
body.auth-unlocked .card button:not(.primary):not([data-action="analyze-reports"]):not([data-action="add-account"]):not([data-action="add-dispute"]):not([data-action="add-task"]):not([data-action="review-center-generate"]) {
  background: #ffffff !important;
  color: var(--lupa-navy) !important;
  border: 1px solid var(--lupa-border-strong) !important;
  box-shadow: none !important;
}

body.auth-unlocked input,
body.auth-unlocked select,
body.auth-unlocked textarea {
  border: 1px solid var(--lupa-border-strong) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--lupa-text) !important;
  box-shadow: none !important;
}

body.auth-unlocked .formgrid,
body.auth-unlocked .analysis-two-column,
body.auth-unlocked .progress-layout,
body.auth-unlocked .review-center-layout {
  gap: 18px !important;
}

body.auth-unlocked table,
body.auth-unlocked .lupa-table-wrap table {
  color: var(--lupa-text) !important;
}

body.auth-unlocked table th,
body.auth-unlocked .lupa-table-wrap th {
  color: var(--lupa-label) !important;
  font-weight: 900 !important;
}

body.auth-unlocked table td,
body.auth-unlocked .lupa-table-wrap td {
  color: var(--lupa-text-soft) !important;
}

body.auth-unlocked .pill {
  border-radius: 999px !important;
  font-weight: 900 !important;
}

body.auth-unlocked .pill.info { background: #eaf1ff !important; color: #1d4ed8 !important; }
body.auth-unlocked .pill.warn { background: #fff4db !important; color: #8a5600 !important; }
body.auth-unlocked .pill.bad { background: #ffe8e8 !important; color: #a32424 !important; }
body.auth-unlocked .pill.ok { background: #e5f7ef !important; color: #0f6b45 !important; }

footer.disclaimer {
  color: var(--lupa-text-soft) !important;
}

@media (max-width: 920px) {
  body.auth-locked .login-hero.lupa-material-home,
  body.auth-locked .clean-login-hero {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  body.auth-locked .lupa-material-home .login-copy {
    justify-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
  }

  .login-preview-panel {
    max-width: 520px;
    margin: 0 auto;
  }

  body.auth-unlocked .topbar .brandrow,
  body.auth-unlocked #statusLine,
  body.auth-unlocked main,
  footer.disclaimer {
    width: min(100% - 28px, 1180px) !important;
  }

  body.auth-unlocked .topbar .authbox {
    width: 100%;
    margin-left: 0 !important;
  }

  body.auth-unlocked .topbar .syncstate {
    flex-basis: 100%;
  }

  body.auth-unlocked .topbar nav.tabs {
    padding: 0 14px !important;
  }

  body.auth-unlocked main {
    padding-top: 24px !important;
  }

  body.auth-unlocked .tracker-page-heading,
  body.auth-unlocked .simple-page-heading,
  body.auth-unlocked .analysis-header-row,
  body.auth-unlocked .tracker-next-actions,
  body.auth-unlocked .tracker-review-next,
  body.auth-unlocked .tracker-completion,
  body.auth-unlocked .review-center-heading,
  body.auth-unlocked .review-upload-state {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
}

@media (max-width: 640px) {
  body.auth-locked .login-gate {
    padding: 74px 16px 28px !important;
  }

  body.auth-locked .lupa-material-home h1 {
    font-size: clamp(2.8rem, 15vw, 4.1rem) !important;
  }

  .login-preview-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .preview-metrics {
    grid-template-columns: 1fr;
  }

  body.auth-unlocked .topbar .brandrow {
    min-height: 0 !important;
    padding: 14px 0 !important;
  }

  body.auth-unlocked .topbar .version,
  body.auth-unlocked .topbar .tagline {
    display: none !important;
  }

  body.auth-unlocked .topbar .authbox button,
  body.auth-unlocked .language-toggle {
    flex: 1 1 auto;
  }

  body.auth-unlocked h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem) !important;
  }

  body.auth-unlocked .card {
    padding: 16px !important;
  }

  body.auth-unlocked .tracker-metrics,
  body.auth-unlocked .analysis-grid,
  body.auth-unlocked .analysis-summary-grid,
  body.auth-unlocked .bureau-snapshot-grid,
  body.auth-unlocked .approval-grid,
  body.auth-unlocked .review-summary-grid,
  body.auth-unlocked .tracker-bureau-grid,
  body.auth-unlocked .formgrid {
    grid-template-columns: 1fr !important;
  }
}

/* LUPA Clarity public entry card */
body.auth-locked {
  background: #f6f8fb !important;
}

body.auth-locked .login-gate {
  min-height: 100svh !important;
  padding: 32px 18px !important;
  background: #f6f8fb !important;
  color: #162033 !important;
}

body.auth-locked .login-hero.lupa-material-home,
body.auth-locked .clean-login-hero {
  display: grid !important;
  width: 100% !important;
  max-width: 460px !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  gap: 0 !important;
}

body.auth-locked .lupa-material-home .public-entry-card {
  display: grid !important;
  width: 100% !important;
  max-width: 460px !important;
  margin: 0 auto !important;
  padding: 30px !important;
  justify-items: center !important;
  text-align: center !important;
  border: 1px solid #dfe5ee !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 45px rgba(20, 35, 64, .11) !important;
}

body.auth-locked .lupa-entry-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid #d7dfeb;
  border-radius: 8px;
  background: #eef6f5;
  color: #133c45;
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 0;
}

body.auth-locked .lupa-material-home .public-entry-card h1 {
  margin: 0 !important;
  color: #162033 !important;
  font-size: clamp(2.15rem, 8vw, 3rem) !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

body.auth-locked .public-entry-card .entry-subtitle {
  margin: 8px 0 0;
  color: #526174;
  font-size: .98rem;
  font-weight: 700;
}

body.auth-locked .lupa-material-home .public-entry-card .hero-text {
  max-width: 350px !important;
  margin: 16px 0 22px !important;
  color: #5f6b7a !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

body.auth-locked .entry-pricing {
  display: grid;
  width: 100%;
  gap: 10px;
  margin: 0 0 22px;
}

body.auth-locked .entry-pricing div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  background: #fbfcfe;
  text-align: left;
}

body.auth-locked .entry-pricing span {
  color: #526174;
  font-size: .93rem;
  font-weight: 700;
}

body.auth-locked .entry-pricing strong {
  color: #162033;
  font-size: .96rem;
  white-space: nowrap;
}

body.auth-locked .lupa-material-home .public-entry-card .google-auth-button {
  width: 100% !important;
  min-height: 50px !important;
  border: 1px solid #162033 !important;
  border-radius: 8px !important;
  background: #162033 !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

body.auth-locked .lupa-material-home .public-entry-card .auth-message:not(:empty) {
  position: static !important;
  margin: 14px 0 0 !important;
  color: #9b1c1c !important;
  font-size: .94rem !important;
  line-height: 1.4 !important;
}

body.auth-locked .login-preview-panel,
body.auth-locked .lupa-material-home .hero-reassurance,
body.auth-locked .lupa-front-mark,
body.auth-locked .lupa-material-home .community-badge {
  display: none !important;
}

@media (max-width: 520px) {
  body.auth-locked .login-gate {
    padding: 78px 14px 26px !important;
  }

  body.auth-locked .lupa-material-home .public-entry-card {
    padding: 24px 18px !important;
  }

  body.auth-locked .entry-pricing div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* Split-screen Google-only login gate */
body.auth-locked {
  background: #ffffff;
}

body.auth-locked #loginGate.login-gate {
  display: flex !important;
  min-height: 100svh !important;
  width: 100% !important;
  padding: 0 !important;
  overflow: hidden;
  background: #111827 !important;
}

body.auth-locked .split-container {
  display: flex;
  width: 100%;
  min-height: 100svh;
  font-family: "Inter", var(--body);
}

body.auth-locked .left-panel {
  position: relative;
  display: flex;
  flex: 1 1 55%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 40px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 26% 22%, rgba(175, 169, 236, .46) 0, transparent 24rem),
    radial-gradient(circle at 76% 72%, rgba(32, 199, 201, .30) 0, transparent 22rem),
    linear-gradient(135deg, #111827 0%, #17233f 52%, #231a47 100%);
}

body.auth-locked .left-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(109, 93, 252, .18), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .10), transparent 16rem);
  pointer-events: none;
}

body.auth-locked .brand-wall {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
}

body.auth-locked .brand-kicker {
  margin: 0 0 18px;
  color: rgba(214, 226, 255, .82);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.auth-locked .overlay-brand {
  color: #ffffff;
  font-size: clamp(4.75rem, 8.6vw, 8.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .86;
  text-shadow: 0 28px 70px rgba(32, 199, 201, .22);
}

body.auth-locked .brand-line {
  max-width: 34rem;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  font-weight: 600;
  line-height: 1.55;
}

body.auth-locked .cards-container {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(440px, 100%);
  flex-direction: column;
  gap: 20px;
  margin-top: 74px;
}

body.auth-locked .info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 118px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  color: #1f2937;
}

body.auth-locked .card-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body.auth-locked .avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  color: #0f172a;
  font-size: .82rem;
  font-weight: 800;
}

body.auth-locked .avatar.p1 {
  background: #38bdf8;
}

body.auth-locked .avatar.p2 {
  background: #fbbf24;
}

body.auth-locked .profile-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

body.auth-locked .profile-text .name {
  color: #172033;
  font-size: 1rem;
  font-weight: 800;
}

body.auth-locked .profile-text .sub {
  margin: 0;
  color: #64748b;
  font-size: .86rem;
  line-height: 1.35;
}

body.auth-locked .card-details {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 7px;
  color: #334155;
  font-size: .9rem;
  text-align: right;
}

body.auth-locked .metric-row {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

body.auth-locked .metric-row .label {
  color: #64748b;
}

body.auth-locked .metric-row .val {
  color: #172033;
  font-weight: 800;
}

body.auth-locked .metric-row .val.active {
  color: #059669;
}

body.auth-locked .right-panel {
  position: relative;
  display: flex;
  width: 45%;
  min-width: 480px;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(32, 199, 201, .26) 0, transparent 18rem),
    radial-gradient(circle at 12% 82%, rgba(109, 93, 252, .34) 0, transparent 20rem),
    linear-gradient(145deg, #111827 0%, #17233f 54%, #211944 100%);
}

body.auth-locked .right-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), transparent 42%),
    radial-gradient(circle at 50% 45%, rgba(175, 169, 236, .14), transparent 18rem);
  pointer-events: none;
}

body.auth-locked .form-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 430px);
  flex-direction: column;
  align-items: stretch;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background: rgba(255, 255, 255, .10);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  backdrop-filter: blur(22px);
  text-align: left;
}

body.auth-locked .progress-indicator {
  display: flex;
  align-self: flex-end;
  gap: 6px;
  margin-bottom: clamp(44px, 9vh, 84px);
}

body.auth-locked .progress-indicator .dot {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
}

body.auth-locked .progress-indicator .dot.active {
  background: #0ea5e9;
}

body.auth-locked .main-logo {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .92) !important;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

body.auth-locked .entry-subtitle {
  margin: 0 0 34px;
  color: #9fe7ee !important;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.auth-locked .headline {
  margin: 0 0 14px;
  color: #f8fbff;
  font-size: clamp(1.85rem, 2.35vw, 2.35rem);
  font-weight: 900;
  line-height: 1.05;
}

body.auth-locked .tagline {
  max-width: 36ch;
  margin: 0 0 34px;
  color: rgba(226, 232, 240, .82) !important;
  font-size: 1.02rem !important;
  line-height: 1.58 !important;
}

body.auth-locked .form-wrapper .entry-pricing {
  display: grid;
  width: 100%;
  gap: 10px;
  margin: 0 0 22px;
}

body.auth-locked .form-wrapper .entry-pricing div {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  background: #fbfcfe;
  text-align: left;
}

body.auth-locked .form-wrapper .entry-pricing span {
  color: #526174;
  font-size: .93rem;
  font-weight: 800;
}

body.auth-locked .form-wrapper .entry-pricing strong {
  color: #162033;
  font-size: .96rem;
  white-space: nowrap;
}

body.auth-locked .oauth-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

body.auth-locked .split-container .oauth-btn.google-auth-button {
  display: flex !important;
  position: relative;
  width: 100% !important;
  min-height: 60px !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-family: "Inter", var(--body) !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .20) !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

body.auth-locked .split-container .oauth-btn.google-auth-button:hover {
  transform: translateY(-1px);
  border-color: #ffffff !important;
  background: #f8fbff !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .28) !important;
}

body.auth-locked .split-container .google-auth-button::before {
  content: "G";
  display: grid;
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: .92rem;
  font-weight: 800;
}

body.auth-locked .split-container .auth-message {
  min-height: 22px;
  margin: 0 0 24px !important;
  color: rgba(226, 232, 240, .78);
  font-size: .92rem;
  line-height: 1.4;
}

body.auth-locked .split-container .auth-message.error {
  color: #9b1c1c;
}

body.auth-locked .split-container .auth-message.success {
  color: #9fe7ee;
}

body.auth-locked .form-footer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: rgba(226, 232, 240, .78);
}

body.auth-locked .form-footer .utility-toggle {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .82);
  font-family: "Inter", var(--body);
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

body.auth-locked .form-footer .utility-toggle:hover {
  border-color: rgba(159, 231, 238, .42);
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
}

html[data-theme="dark"] body.auth-locked .right-panel,
html[data-theme="dark"] body.auth-locked #loginGate.login-gate {
  background: #111827 !important;
}

html[data-theme="dark"] body.auth-locked .main-logo,
html[data-theme="dark"] body.auth-locked .headline {
  color: #f8fafc !important;
}

html[data-theme="dark"] body.auth-locked .entry-subtitle,
html[data-theme="dark"] body.auth-locked .tagline,
html[data-theme="dark"] body.auth-locked .split-container .auth-message {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] body.auth-locked .form-wrapper .entry-pricing div,
html[data-theme="dark"] body.auth-locked .split-container .oauth-btn.google-auth-button,
html[data-theme="dark"] body.auth-locked .form-footer .utility-toggle {
  border-color: rgba(203, 213, 225, .28) !important;
  background: #111c2e !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] body.auth-locked .split-container .oauth-btn.google-auth-button {
  border-color: rgba(255, 255, 255, .78) !important;
  background: #ffffff !important;
  color: #111827 !important;
}

html[data-theme="dark"] body.auth-locked .form-wrapper .entry-pricing span {
  color: #cbd5e1;
}

html[data-theme="dark"] body.auth-locked .form-wrapper .entry-pricing strong {
  color: #f8fafc;
}

@media (max-width: 900px) {
  body.auth-locked #loginGate.login-gate {
    overflow-y: auto;
  }

  body.auth-locked .left-panel {
    display: none;
  }

  body.auth-locked .right-panel {
    width: 100%;
    min-width: 0;
    min-height: 100svh;
    padding: max(28px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  }

  body.auth-locked .progress-indicator {
    margin-bottom: 46px;
  }
}

@media (max-width: 520px) {
  body.auth-locked .right-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  body.auth-locked .form-wrapper .entry-pricing div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  body.auth-locked .form-footer {
    flex-wrap: wrap;
  }
}
