/* X_SHELL_v1 — MyZipApply only. Every rule is under body.x-app,
   which the MyZipApply bar adds. Other brands do not get that class. */

:root {
  --x-ink: #0f1419;
  --x-muted: #3d4f5f;
  --x-line: #d0d0d0;
  --x-hover: #e8f6ee;
  --x-green: #007733;
  --x-green-d: #00662c;
  --x-accent: #007733;
}

/* ── Job seeker app ───────────────────────────────────────────── */
body.x-app {
  background: #fff !important;
  color: #0f1419;
  --text: #0f1419;
  --ink: #0f1419;
  --muted: #3d4f5f;
  --accent: #007733;
  --accent-2: #00662c;
  --border: #d0d0d0;
  --apply: #007733;
  --on-apply: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.x-app .wrap {
  max-width: 640px;
  margin-left: 0;
  margin-right: auto;
  padding-top: 0.6rem;
}
body.x-app h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f1419 !important;
}
body.x-app h2 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1419 !important;
}
body.x-app p, body.x-app li, body.x-app label, body.x-app .row-head { color: #0f1419; }
body.x-app .greet h1 { font-size: 2rem; }
body.x-app .greet p, body.x-app .lede, body.x-app .sub, body.x-app .muted,
body.x-app .score-sub, body.x-app .kcol-sub, body.x-app .im-sub, body.x-app .subtitle {
  color: #3d4f5f !important;
}
body.x-app a { color: #007733; }
body.x-app a:hover { color: #00662c; }

@media (min-width: 901px) {
  body.x-app { padding-left: 248px !important; }
  body.x-app.x-rail-on { padding-right: 292px !important; }
  body.x-app .topbar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 248px; height: 100vh;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    border-bottom: 0; border-right: 1px solid var(--x-line);
    padding: 8px 10px 16px; overflow-y: auto; z-index: 1400;
    background: #fff !important; gap: 2px;
  }
  body.x-app .topbar > div:first-child {
    flex-direction: column; align-items: flex-start; width: 100%; gap: 0.35rem;
  }
  body.x-app .topbar .topnav {
    flex-direction: column; align-items: stretch; overflow: visible; width: 100%; gap: 2px;
  }
  body.x-app .topbar .topnav-link,
  body.x-app .topbar .x-more > summary {
    display: flex; align-items: center; border-radius: 999px;
    font-size: 1.08rem; font-weight: 700; padding: 11px 16px; color: var(--x-ink);
    background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer;
  }
  body.x-app .topbar .topnav-link:hover,
  body.x-app .topbar .x-more > summary:hover { background: #e8f6ee; color: #007733; }
  body.x-app .topbar .topnav-link.x-on,
  body.x-app .topbar .x-more > summary.x-on {
    background: #e5f6ec !important;
    color: #007733 !important;
    font-weight: 800 !important;
    box-shadow: inset 4px 0 0 #007733;
  }
  body.x-app .nav-blink { animation: none !important; background: transparent !important; box-shadow: none !important; }
  body.x-app .topbar .tb-out {
    color: var(--x-muted); border: 0; background: transparent; font-weight: 700;
    border-radius: 999px; padding: 10px 16px;
  }
  body.x-app .topbar .tb-out:hover { background: var(--x-hover); color: var(--x-ink); }
  body.x-app .x-rail { display: block; }
  body.x-app.has-webnav { padding-top: 0 !important; }
  body.x-app .topbar.jtn {
    height: 100vh !important; background: #fff !important;
    border-bottom: 0 !important; border-right: 1px solid var(--x-line) !important;
  }
  body.x-app .topbar.jtn .topnav-link { color: var(--x-ink) !important; }
  body.x-app .topbar.jtn .topnav-link:hover { background: var(--x-hover) !important; color: var(--x-ink) !important; }
  body.x-app .topbar.jtn .jtn-out { color: var(--x-ink) !important; border-color: var(--x-line) !important; }
}

@media (max-width: 900px) {
  body.x-app { padding-bottom: 64px !important; padding-left: 0 !important; }
  body.x-app .topbar {
    position: sticky; top: 0; z-index: 1400; background: #fff;
    border-bottom: 1px solid var(--x-line); padding: 0.55rem 0.75rem;
  }
  body.x-app .topbar .topnav {
    display: flex !important;
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    height: auto; background: #fff; border-top: 1px solid var(--x-line);
    justify-content: space-around; align-items: stretch; z-index: 1600;
    padding: 2px 2px calc(4px + env(safe-area-inset-bottom));
    overflow: visible; gap: 0;
  }
  body.x-app .topbar .topnav > .topnav-link,
  body.x-app .topbar .x-more > summary.topnav-link {
    flex: 1 1 0; font-size: 0.68rem; font-weight: 700; line-height: 1.15;
    text-align: center; justify-content: center; white-space: normal;
    padding: 8px 2px; border-radius: 12px; color: var(--x-ink);
  }
  body.x-app .topbar .topnav > .x-more { flex: 1 1 0; min-width: 0; }
  body.x-app .x-more:not([open]) > a.topnav-link { display: none !important; }
  body.x-app .topbar .topnav-link.x-on,
  body.x-app .topbar .x-more > summary.x-on {
    background: #e5f6ec !important;
    color: #007733 !important;
    font-weight: 800 !important;
    box-shadow: inset 0 -3px 0 #007733;
  }
  body.x-app .nav-blink { animation: none !important; background: transparent !important; box-shadow: none !important; }
  body.x-app .topbar .topnav-link.x-on {
    box-shadow: inset 0 -3px 0 #007733;
    background: #e5f6ec !important;
    color: #007733 !important;
  }
  body.x-app .x-more[open] {
    position: fixed; left: 8px; right: 8px; bottom: 68px;
    background: #fff; border: 1px solid var(--x-line); border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 20, 25, 0.16); z-index: 1700; padding: 6px;
  }
  body.x-app .x-more[open] > .topnav-link {
    display: flex !important; font-size: 1.02rem; text-align: left; justify-content: flex-start;
    padding: 12px 14px; border-radius: 12px;
  }
  body.x-app .x-rail { display: none !important; }
}

body.x-app .x-more > summary { list-style: none; }
body.x-app .x-more > summary::-webkit-details-marker { display: none; }
@media (min-width: 901px) {
  body.x-app .x-more[open] > .topnav-link { display: flex; }
}

body.x-app .x-rail {
  display: none; position: fixed; top: 0; right: 0; width: 292px; height: 100vh;
  padding: 20px 18px; border-left: 1px solid var(--x-line); background: #fff;
  overflow: auto; z-index: 20; box-sizing: border-box;
}
body.x-app .x-rail h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; color: #0f1419; }
body.x-app .x-rail p { color: var(--x-muted); font-size: 0.95rem; line-height: 1.45; margin: 0 0 12px; }
body.x-app .x-rail a { color: #007733; font-weight: 800; text-decoration: none; }
body.x-app .x-rail a:hover { text-decoration: underline; color: #00662c; }

/* Cards keep a white face, a real edge, and a green strip. */
body.x-app .card,
body.x-app .find-card,
body.x-app .cad-card,
body.x-app .kcol,
body.x-app .column,
body.x-app .funnel-cell,
body.x-app .score a,
body.x-app .im,
body.x-app .today-row,
body.x-app .streak-card,
body.x-app .empty-state {
  background: #fff !important;
  border: 1px solid #d0d0d0 !important;
  border-left: 4px solid #007733 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #0f1419 !important;
}
body.x-app .score .score-n,
body.x-app .kcol-n,
body.x-app .funnel-cell .n {
  color: #007733 !important;
  font-weight: 800 !important;
  font-size: 2rem !important;
}
body.x-app .score .score-h, body.x-app .kcol-h { color: #3d4f5f !important; font-weight: 800; }

/* One filled green button. Other actions stay readable, not faded. */
body.x-app .wrap #ta-save,
body.x-app .single-cta a,
body.x-app .cad-btn,
body.x-app .kanban-empty a.btn,
body.x-app .empty-state .cta {
  background: #fff !important;
  color: #0f1419 !important;
  border: 1px solid #b5b5b5 !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}
body.x-app .empty-state a.cta:first-of-type {
  background: #007733 !important;
  color: #fff !important;
  border: 0 !important;
}
body.x-app #js_search_btn,
body.x-app .x-go,
body.x-app .im-btn,
body.x-app a.btn.primary,
body.x-app button.aa-big,
body.x-app a[style*="background:var(--accent)"],
body.x-app a[style*="background: var(--accent)"],
body.x-app .btn.apply {
  background: #007733 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0.8rem 1.3rem !important;
  font-weight: 800 !important;
}
/* A second action is a green word, not another filled button. */
body.x-app a.x-text-link,
body.x-app .single-cta a.primary,
body.x-app a.aa-big {
  background: none !important;
  color: #007733 !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-weight: 800 !important;
  text-decoration: none;
}
body.x-app a.x-text-link:hover,
body.x-app .single-cta a.primary:hover,
body.x-app a.aa-big:hover { color: #00662c !important; text-decoration: underline; }
body.x-app .find-row button {
  background: none !important;
  color: #007733 !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-weight: 800 !important;
  text-decoration: underline;
}
body.x-app .bar .next-line {
  background: transparent !important;
  color: #b7f7c8 !important;
  animation: none !important;
  box-shadow: none !important;
  text-decoration: underline;
}
body.x-app .aa-top {
  background: transparent !important;
  color: #b7f7c8 !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 4px 0 !important;
  font-weight: 800 !important;
  text-decoration: underline;
  animation: none !important;
}
body.x-app a[style*="color:#22c55e"],
body.x-app a[style*="color: #22c55e"],
body.x-app a[style*="color:#16a34a"] {
  color: #007733 !important;
}
/* The public landing keeps one filled button: Show me my matches. */
body.x-land .btn-primary,
body.x-land .journey-hero .btn-primary,
body.x-land a.btn.primary,
body.x-land .hero .btn.primary,
body.x-land .final-cta .btn,
body.x-land .sg-go,
body.x-land #chrome-extension a,
body.x-land .vplay-acts a.go {
  background: none !important;
  background-image: none !important;
  color: #007733 !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-weight: 800 !important;
  text-decoration: underline;
}
body.x-land .final-cta .btn { color: #b7f7c8 !important; }
body.x-app #help_bot_pill {
  background: #fff !important;
  color: #007733 !important;
  border: 1px solid #007733 !important;
  box-shadow: none !important;
}
body.x-app .mza-ad2 { border-color: #007733 !important; }

body.x-app #js_search_btn:hover,
body.x-app .im-btn:hover,
body.x-app .btn-primary:hover { background: #00662c !important; }

body.x-app .toolbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}
body.x-app .x-more-fields {
  flex: 1 1 100%; border: 0; margin: 0.2rem 0 0;
}
body.x-app .x-more-fields > summary {
  cursor: pointer; color: var(--x-muted); font-weight: 700; font-size: 0.92rem;
}
body.x-app .x-more-fields[open] > summary { margin-bottom: 0.45rem; }

/* Swipe keeps the phone in the middle. The menu is the same MyZipApply shell. */
body.x-app .mza-bar { box-shadow: none !important; background: transparent !important; }
@media (min-width: 901px) {
  body.x-app .mza-bar { position: static !important; height: 0; overflow: visible; }
}
@media (max-width: 900px) {
  body.x-app .mza-bar { display: block !important; position: static !important; }
}
