/* My account (account.html) and Sign in (login.html). Same theme as the home page: soft purple/teal gradients,
   rounded white cards, purple accents. Loaded only by those two pages, after styles.css and home.css. */

.ac-hero { padding: 40px 0 0; background: radial-gradient(900px 420px at 88% 0%, #e9ddff 0%, transparent 70%), radial-gradient(700px 380px at 0% 0%, #e0f1ff 0%, transparent 70%), #fff; border-bottom: 1px solid var(--line); }
.ac-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 26px; }
.ac-who { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ac-avatar { flex: none; width: 72px; height: 72px; border-radius: 22px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 14px 30px -14px rgba(125, 42, 232, .7); }
.ac-who h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 4px; line-height: 1.15; overflow-wrap: anywhere; }
.ac-sub { color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ac-sub span + span::before { content: "•"; margin-right: 14px; color: #c9bfe3; }
.ac-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-hero-actions .btn { padding: 10px 18px; font-size: 15px; }

/* tabs */
.ac-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.ac-tabs::-webkit-scrollbar { display: none; }
.ac-tab { flex: none; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--body); padding: 12px 16px; border-bottom: 3px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.ac-tab:hover { color: var(--purple); }
.ac-tab[aria-selected="true"] { color: var(--purple); border-bottom-color: var(--purple); }
.ac-tab .ac-count { font-size: 12px; font-weight: 700; background: var(--purple-l); color: var(--purple-d); border-radius: 999px; padding: 1px 8px; }

.ac-main { padding: 30px 0 80px; background: linear-gradient(180deg, #fbfaff, #fff 320px); min-height: 50vh; }
.ac-panel[hidden] { display: none; }
.ac-alert { margin-bottom: 18px; }

/* stat tiles */
.ac-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.ac-stat { background: #fff; border: 1px solid var(--bd); border-radius: 20px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-s); }
.ac-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.ac-ico svg { width: 22px; height: 22px; }
.ac-ico.purple { background: var(--purple-l); color: var(--purple); } .ac-ico.teal { background: var(--teal-l); color: var(--teal-d); }
.ac-ico.pink { background: var(--pink-l); color: #d63a86; } .ac-ico.sun { background: var(--sun-l); color: #a86c00; }
.ac-stat b { display: block; font-size: 26px; line-height: 1.1; color: var(--ink); }
.ac-stat span { display: block; color: var(--muted); font-size: 13.5px; font-weight: 600; line-height: 1.3; }

/* cards */
.ac-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.ac-stack { display: grid; gap: 20px; }
.ac-card { background: #fff; border: 1px solid var(--bd); border-radius: 22px; box-shadow: var(--shadow-s); padding: 22px 24px; min-width: 0; }
.ac-card + .ac-card { margin-top: 20px; } .ac-grid .ac-card + .ac-card, .ac-stack .ac-card + .ac-card { margin-top: 0; }
.ac-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ac-card-head h2 { font-size: 19px; margin: 0; letter-spacing: -.01em; }
.ac-link { border: 0; background: none; font: inherit; color: var(--purple); font-weight: 600; font-size: 14px; cursor: pointer; padding: 0; }
.ac-link:hover { text-decoration: underline; }
.ac-muted { color: var(--muted); font-size: 14px; margin: 0; }
.ac-empty { text-align: center; padding: 26px 10px; color: var(--muted); font-size: 15px; }
.ac-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* key / value lists */
.ac-dl { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; margin: 0; }
.ac-dl dt, .ac-dl dd { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; margin: 0; }
.ac-dl dt { color: var(--muted); font-weight: 600; font-size: 14px; }
.ac-dl dd { color: var(--ink); overflow-wrap: anywhere; }
.ac-dl dt:nth-last-of-type(1), .ac-dl dd:last-of-type { border-bottom: 0; }

/* status badges */
.ac-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ac-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ac-badge.good { background: #dcf7ec; color: #0a8a5c; } .ac-badge.warn { background: var(--sun-l); color: #8a5a00; } .ac-badge.bad { background: var(--pink-l); color: #b4235e; }
.ac-badge.plain { background: var(--tint); color: var(--body); } .ac-badge.plain::before { display: none; }

/* licences */
.ac-licence { border: 1px solid var(--bd); border-radius: 18px; padding: 18px 20px; background: linear-gradient(180deg, #fff, #fcfbff); }
.ac-licence + .ac-licence { margin-top: 16px; }
.ac-lic-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ac-key { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .04em; color: var(--ink); }
.ac-copy { border: 1px solid var(--bd); background: #fff; border-radius: 8px; font: 600 12px/1 inherit; color: var(--purple); padding: 6px 9px; cursor: pointer; font-family: inherit; }
.ac-copy:hover { background: var(--tint); }
.ac-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.ac-fact { background: var(--tint); border-radius: 14px; padding: 11px 14px; min-width: 0; }
.ac-fact span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ac-fact b { display: block; font-size: 15.5px; margin-top: 2px; color: var(--ink); overflow-wrap: anywhere; }
.ac-fact small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ac-bar { height: 6px; border-radius: 4px; background: #e6def8; margin-top: 7px; overflow: hidden; } .ac-bar i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
.ac-subhead { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 4px 0 8px; }
.ac-machine { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ac-machine .ac-ico { width: 40px; height: 40px; border-radius: 12px; }
.ac-machine-main { flex: 1; min-width: 0; }
.ac-machine-main b { display: block; font-size: 15.5px; overflow-wrap: anywhere; }
.ac-machine-main span { color: var(--muted); font-size: 13.5px; }
.ac-machine-side { text-align: right; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.ac-machine-side b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }

/* classes */
.ac-class { border-top: 1px solid var(--line); }
.ac-class:first-child { border-top: 0; }
.ac-class summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 14px 4px; cursor: pointer; border-radius: 12px; }
.ac-class summary::-webkit-details-marker { display: none; }
.ac-class summary:hover { background: var(--tint); }
.ac-date { flex: none; width: 54px; text-align: center; border-radius: 14px; background: var(--purple-l); color: var(--purple-d); padding: 6px 0; line-height: 1.1; }
.ac-date b { display: block; font-size: 20px; } .ac-date span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ac-class-main { flex: 1; min-width: 0; }
.ac-class-main b { display: block; font-size: 15.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-class-main span { color: var(--muted); font-size: 13.5px; }
.ac-chev { flex: none; color: var(--muted); transition: transform .15s; } .ac-class[open] .ac-chev { transform: rotate(90deg); }
.ac-class-body { padding: 4px 4px 18px 74px; }
.ac-qa { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.ac-qa:last-child { border-bottom: 0; }
.ac-qa .ac-q { font-weight: 700; color: var(--ink); margin: 2px 0 6px; }
.ac-qa .ac-a { white-space: pre-wrap; color: var(--body); font-size: 15px; line-height: 1.6; }
.ac-time { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ac-transcript { margin-top: 10px; }
.ac-transcript summary { cursor: pointer; font-weight: 600; color: var(--purple); font-size: 14px; }
.ac-transcript div { font-size: 14px; color: var(--body); padding: 3px 0; }

/* topics */
.ac-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-chip { background: var(--purple-l); color: var(--purple-d); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.ac-chip:nth-child(3n+2) { background: var(--teal-l); color: var(--teal-d); } .ac-chip:nth-child(3n) { background: var(--sky-l); color: #1b6f99; }
.ac-resume { margin-top: 16px; border: 1px solid var(--bd); border-radius: 14px; overflow: hidden; }
.ac-resume summary { cursor: pointer; padding: 12px 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; background: var(--tint); }
.ac-resume pre { margin: 0; padding: 16px; white-space: pre-wrap; font: 14px/1.6 inherit; font-family: inherit; color: var(--body); max-height: 380px; overflow: auto; }

/* tables */
.ac-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ac-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.ac-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.ac-table tr:last-child td { border-bottom: 0; }
.ac-scroll { overflow-x: auto; }

/* forms */
.ac-form { display: grid; gap: 14px; max-width: 460px; }
.ac-form input { padding: 11px 14px; }
.ac-form .btn { justify-self: start; }
.ac-first { max-width: 520px; margin: 10px auto 0; }
.ac-first .ac-ico { margin-bottom: 12px; }

/* sign in page */
.ac-login { padding: 56px 0 80px; background: radial-gradient(800px 420px at 85% 0%, #e9ddff 0%, transparent 70%), radial-gradient(700px 380px at 0% 20%, #e0f1ff 0%, transparent 70%), #fff; }
.ac-login-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--bd); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.ac-login-card h1 { font-size: 30px; margin: 14px 0 6px; }
.ac-login-card .ac-ico { width: 54px; height: 54px; border-radius: 16px; }
.ac-login-card .btn { width: 100%; }
.ac-login-foot { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .ac-stats { grid-template-columns: repeat(2, 1fr); }
  .ac-grid { grid-template-columns: 1fr; }
  .ac-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ac-avatar { width: 56px; height: 56px; font-size: 20px; border-radius: 18px; }
  .ac-stat { padding: 14px; gap: 10px; } .ac-stat b { font-size: 22px; }
  .ac-card { padding: 18px; }
  .ac-machine-side { display: none; }
  .ac-class-body { padding-left: 4px; }
  .ac-dl { grid-template-columns: 1fr; } .ac-dl dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Career toolkit (career.html) ---------- */
.cr-steps { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 18px; }
.cr-steps a { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--bd); border-radius: 999px; padding: 7px 14px 7px 7px; font-size: 14px; color: var(--ink); text-decoration: none; }
.cr-steps a:hover { background: var(--tint); }
.cr-steps a[aria-current="step"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 12px 26px -14px rgba(125, 42, 232, .8); font-weight: 700; }
.cr-steps a[aria-current="step"] b { background: rgba(255, 255, 255, .28); }
.cr-steps a.done:not([aria-current]) b { background: #0a8a5c; font-size: 0; }
.cr-steps a.done:not([aria-current]) b::after { content: "✓"; font-size: 13px; }
.cr-stepnav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.cr-steps b { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 12.5px; }
.cr-card { scroll-margin-top: 90px; }
.cr-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.cr-card-head h2 { font-size: 20px; margin: 2px 0 2px; }
.cr-step { flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--purple-l); color: var(--purple-d); display: grid; place-items: center; font-weight: 800; }
.cr-upload { display: grid; gap: 12px; }
.cr-drop { display: grid; gap: 4px; justify-items: center; text-align: center; border: 2px dashed #cfc6e6; border-radius: 16px; padding: 22px 16px; cursor: pointer; background: #fcfbff; font-weight: 600; }
.cr-drop:hover { border-color: var(--purple); background: var(--tint); }
.cr-file { max-width: 100%; margin-top: 8px; font-size: 14px; }
.cr-upload textarea, .cr-card textarea { min-height: 140px; font-size: 15px; }
.cr-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.cr-current { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cr-replace summary, .cr-preview summary, .cr-history summary { cursor: pointer; font-weight: 600; color: var(--purple); margin: 8px 0; }
.cr-replace[open] summary { margin-bottom: 12px; }
.cr-score { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.cr-score p { margin: 2px 0 4px; color: var(--body); }
.cr-ring { flex: none; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; }
.cr-ring span { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: var(--ink); }
.cr-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; margin-bottom: 16px; }
.cr-checks, .cr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cr-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.cr-checks li b { display: block; color: var(--ink); } .cr-checks li span:not(.cr-dot) { color: var(--body); }
.cr-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.cr-dot.good { background: #dcf7ec; color: #0a8a5c; } .cr-dot.warn { background: var(--sun-l); color: #8a5a00; } .cr-dot.bad { background: var(--pink-l); color: #b4235e; }
.cr-list li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--body); }
.cr-list li::before { content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 800; }
.ac-chip.cr-missing { background: var(--sun-l); color: #8a5a00; }
.cr-improved, .cr-letter { border: 1px solid var(--bd); border-radius: 16px; padding: 16px 18px; background: #fcfbff; margin: 8px 0 14px; }
.cr-improved-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.cr-improved-head p { margin: 2px 0 0; }
.cr-resume { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; font-size: 14.5px; line-height: 1.55; color: var(--ink); max-height: 520px; overflow: auto; }
.cr-r-name { font-size: 22px; font-weight: 800; } .cr-r-line { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.cr-resume h4 { margin: 16px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.cr-resume p { margin: 4px 0; color: var(--ink); } .cr-resume ul { margin: 4px 0 8px; padding-left: 20px; }
.cr-r-item { margin-bottom: 8px; } .cr-r-role { font-weight: 700; } .cr-r-role span { font-weight: 400; color: var(--muted); }
.cr-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 10px; }
.cr-match .cr-row, #cr-match .cr-row { grid-template-columns: 1fr 1fr; }
#cr-match select { margin-bottom: 10px; }
.cr-suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.cr-chip-btn { border: 0; cursor: pointer; font: inherit; font-size: 13.5px; }
.cr-chip-btn:hover { filter: brightness(.96); }
.cr-versions { display: grid; gap: 14px; margin-top: 10px; }
.cr-version { border: 1px solid var(--bd); border-radius: 16px; padding: 14px 16px; background: linear-gradient(180deg, #fff, #fcfbff); }
.cr-version-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.cr-version p { margin: 6px 0 10px; }
.cr-version-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cr-delete { color: #b4235e; }
.cr-match { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cr-letter-text { white-space: pre-wrap; font-size: 15px; line-height: 1.65; color: var(--ink); margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.cr-history { margin-top: 14px; }
.cr-history-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cr-history-name { flex: 1; min-width: 160px; font-weight: 600; }
.cr-privacy { margin-top: 18px; text-align: center; }
@media (max-width: 760px) {
  .cr-grid, .cr-row, #cr-match .cr-row { grid-template-columns: 1fr; }
  .cr-score { align-items: flex-start; }
  .cr-ring { width: 70px; height: 70px; } .cr-ring span { width: 54px; height: 54px; font-size: 20px; }
}

/* ---------- AI Job search (career.html, step 5) ---------- */
.js-form { display: grid; gap: 10px; }
.js-row { display: grid; gap: 10px; align-items: center; }
.js-row.two { grid-template-columns: 1fr 1fr; }
.js-row.three { grid-template-columns: 1.4fr 1fr 1fr; }
.js-row.actions { grid-template-columns: auto 1fr auto; }
.js-form input[type="text"], .js-form select, .js-form textarea { padding: 10px 12px; font-size: 15px; }
.js-form textarea { min-height: 0; resize: vertical; }
.js-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--body); cursor: pointer; }
.js-check input { width: 18px; height: 18px; accent-color: var(--purple); }
.js-small { font-size: 13px; margin: 8px 0 0; }
.js-status {  margin: 12px 0 0; font-size: 14.5px; font-weight: 600; }
.js-status:empty { display: none; }
.js-status.busy { color: var(--purple); background: var(--tint); border-radius: 14px; padding: 12px 14px; }
.js-status.bad { color: #b4235e; }
.js-status-in { display: flex; align-items: center; gap: 10px; }
.js-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: js-spin .8s linear infinite; flex: none; }
@keyframes js-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .js-spin { animation: none; } }
.js-result { margin-top: 18px; }
.js-profile { border: 1px solid var(--bd); background: var(--tint); border-radius: 16px; padding: 14px 16px; }
.js-profile p { margin: 6px 0; }
.js-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; }
.js-line .ac-chips { margin: 0; }
.js-group { margin-top: 18px; }
.js-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.js-group-head h3 { margin: 0; font-size: 17px; }
.js-group.high .jb-scroll { border-color: #9fd8c2; } .js-group.medium .jb-scroll { border-color: #ecd29a; } .js-group.stretch .jb-scroll { border-color: #efb4c9; }
.js-num { color: var(--muted); font-weight: 700; width: 28px; }
.js-fit { min-width: 38px; justify-content: center; }
.js-fixes { margin-top: 20px; border: 1px solid #ecd29a; background: #fffaf0; border-radius: 16px; padding: 14px 16px; }
.js-notes { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.js-counts { display: inline-flex; gap: 4px; }
.jb-info { color: var(--muted); font-size: 13.5px; font-weight: 600; margin: 14px 0 0; }
.jb-scroll { overflow-x: auto; border: 1px solid var(--bd); border-radius: 16px; }
.jb-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.jb-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--tint); padding: 10px 12px; white-space: nowrap; }
.jb-table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
.jb-table tr:hover td { background: #fcfbff; }
.jb-reason { font-size: 12.5px; color: var(--body); max-width: 300px; }
.jb-gap { font-size: 12px; color: #a86c00; margin-top: 2px; }
.jb-open { white-space: nowrap; text-align: right; }
@media (max-width: 900px) {
  .js-row.three { grid-template-columns: 1fr 1fr; } .js-row.three input:first-child { grid-column: 1 / -1; }
  .js-row.actions { grid-template-columns: 1fr auto; } .js-row.actions .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .js-row.two, .js-row.three, .js-row.actions { grid-template-columns: 1fr; }
  .jb-scroll { border: 0 !important; overflow: visible; }
  .jb-table, .jb-table tbody, .jb-table tr, .jb-table td { display: block; width: 100%; }
  .jb-table thead { display: none; }
  .jb-table tr { border: 1px solid var(--bd); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
  .jb-table td { border: 0; padding: 4px 0; }
  .jb-table td[data-label]:not([data-label="Role"]):not([data-label="#"])::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12.5px; font-weight: 600; }
  .js-num { width: auto; }
  .jb-open { text-align: left; margin-top: 6px; }
}

/* ---------- Prepare for this job (AI Job search results) ---------- */
.js-table .jb-open { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.pp-toggle { white-space: nowrap; }
.pp-toggle[aria-expanded="true"] { background: var(--purple-l); border-color: var(--purple); color: var(--purple-d); }
.pp-toggle.ready:not([aria-expanded="true"]) { border-color: #b98cff; }
.jb-table tr.pp-row > td, .jb-table tr.pp-row:hover > td { background: #fbf9ff; padding: 0; }
.pp-cell { border-top: 0 !important; }
.pp { padding: 18px 20px 14px; border-left: 4px solid var(--purple); }
.pp-head { display: grid; gap: 8px; margin-bottom: 14px; }
.pp-meter { position: relative; height: 12px; border-radius: 8px; background: #ece6fb; overflow: hidden; }
.pp-meter i { position: absolute; top: 0; bottom: 0; }
.pp-meter .now { left: 0; background: #0a8a5c; border-radius: 8px 0 0 8px; }
.pp-meter .gain { background: repeating-linear-gradient(135deg, #7d2ae8 0 6px, #a374f5 6px 12px); }
.pp-scores { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--body); }
.pp-scores b { font-size: 18px; color: #0a8a5c; } .pp-scores b.up { color: var(--purple); }
.pp-summary { margin: 0; font-weight: 600; color: var(--ink); }
.pp-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.pp-grid.two { grid-template-columns: 1fr 1fr; margin-top: 16px; }
.pp-side { display: grid; gap: 16px; }
.pp-sec { background: #fff; border: 1px solid var(--bd); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.pp-sec h4 { margin: 0 0 6px; font-size: 15.5px; }
.pp-intro { font-size: 13px; margin: 0 0 10px; }
.pp-sec.revise { margin-top: 16px; }
.pp-gaps { display: grid; gap: 10px; }
.pp-gap { border: 1px solid var(--line); border-left: 4px solid #a86c00; border-radius: 12px; padding: 10px 12px; }
.pp-gap.high { border-left-color: #b4235e; } .pp-gap.low { border-left-color: #0a8a5c; }
.pp-gap-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pp-pts { background: var(--purple-l); color: var(--purple-d); border-radius: 999px; padding: 2px 9px; font-size: 12.5px; font-weight: 800; }
.pp-hours { font-size: 12.5px; }
.pp-why, .pp-how { margin: 4px 0 0; font-size: 13.5px; color: var(--body); }
.pp-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pp-link { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--bd); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.pp-link:hover { background: var(--tint); text-decoration: none; }
.pp-link.youtube { border-color: #f5b5b5; } .pp-link.youtube:hover { background: #fff1f1; }
.pp-link.official { border-color: #b9d3f5; } .pp-link.official:hover { background: #f0f6ff; }
.pp-link.udemy-free, .pp-link.udemy-paid { border-color: #d9c6fb; }
.pp-link.cert { border-color: #ecd29a; background: #fffaf0; }
.pp-revise { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pp-rev { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pp-list { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 5px; font-size: 14px; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pp-note { font-size: 12px; margin: 12px 0 0; }
@media (max-width: 900px) { .pp-grid, .pp-grid.two { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .jb-table tr.pp-row { padding: 0; overflow: hidden; }
  .jb-table tr.pp-row > td { padding: 0; }
  .pp { padding: 14px 12px; }
}

/* ---------- skill matrix (Prepare for this job) ---------- */
.pp-sec.matrix { margin-bottom: 16px; }
.mx-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.mx-chip { border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 700; }
.mx-chip.good, .mx-status.good { background: #dcf5ea; color: #0a8a5c; }
.mx-chip.warn, .mx-status.warn { background: #fff1d6; color: #a86c00; }
.mx-chip.bad, .mx-status.bad { background: #fde2e7; color: #b4235e; }
.mx-score { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--body); }
.mx-score b { font-size: 18px; color: var(--purple); }
.mx-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.mx-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.mx-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--tint); padding: 9px 12px; white-space: nowrap; }
.mx-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.mx-table tfoot td { background: var(--tint); }
.mx-table tr.mx-missing td:first-child { box-shadow: inset 3px 0 0 #b4235e; }
.mx-table tr.mx-partial td:first-child { box-shadow: inset 3px 0 0 #a86c00; }
.mx-table tr.mx-match td:first-child { box-shadow: inset 3px 0 0 #0a8a5c; }
.mx-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mx-status { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.mx-ev { color: var(--body); font-size: 13px; }
.mx-bar { width: 70px; height: 6px; border-radius: 4px; background: #ece6fb; overflow: hidden; margin-bottom: 4px; }
.mx-bar i { display: block; height: 100%; background: #0a8a5c; }
.mx-gap { color: #b4235e; font-weight: 700; }
.mx-note { margin: 8px 0 0; }
.mx-absent { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 640px) {
  .mx-score { margin-left: 0; width: 100%; }
  .mx-scroll { border: 0; overflow: visible; }
  .mx-table, .mx-table tbody, .mx-table tfoot, .mx-table tr, .mx-table td { display: block; width: 100%; }
  .mx-table thead { display: none; }
  .mx-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
  .mx-table td { border: 0; padding: 3px 0; box-shadow: none !important; }
  .mx-table td[data-label]:not([data-label="Required"])::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; font-weight: 600; }
  .mx-table tbody tr.mx-missing { border-left: 4px solid #b4235e; } .mx-table tbody tr.mx-partial { border-left: 4px solid #a86c00; } .mx-table tbody tr.mx-match { border-left: 4px solid #0a8a5c; }
  .mx-table tfoot td:empty { display: none; }
  .mx-table td[data-label="Required"]::before { content: none !important; }
  .mx-bar { display: inline-block; vertical-align: middle; margin: 0 6px 0 0; }
}

/* ---------- token badge in the Career toolkit header ---------- */
.cr-tokens.warn { background: #fff1d6; color: #a86c00; } .cr-tokens.out { background: #fde2e7; color: #b4235e; }

/* ---------- Skill Gap Matrix under each job ---------- */
.jb-table tr.gm-row > td, .jb-table tr.gm-row:hover > td { border-top: 0; padding: 0 12px 10px; background: #fff; }
.gm { border: 1px dashed var(--bd); border-radius: 12px; background: #fcfbff; }
.gm > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 12px; font-size: 13.5px; }
.gm > summary::-webkit-details-marker { display: none; }
.gm > summary::after { content: "▸ Show"; margin-left: auto; color: var(--purple); font-weight: 700; font-size: 13px; }
.gm[open] > summary::after { content: "▾ Hide"; }
.gm[open] > summary { border-bottom: 1px solid var(--line); }
.gm-title { font-weight: 800; color: var(--ink); margin-right: 4px; }
.gm .mx-chip { padding: 2px 9px; font-size: 12px; }
.gm-score { color: var(--body); font-weight: 600; } .gm-score b { color: var(--purple); }
.gm > div { padding: 10px 12px 12px; }
.gm .mx-summary { display: none; }
@media (max-width: 640px) {
  .jb-table tr.gm-row { border: 0; padding: 0; margin: -6px 0 12px; background: transparent; }
  .jb-table tr.gm-row > td { padding: 0; }
  .gm > summary::after { margin-left: 0; }
}

/* ---------- clicking a matrix row jumps to its gap ---------- */
.mx-table tr.mx-click { cursor: pointer; }
.mx-table tr.mx-click:hover td, .mx-table tr.mx-click:focus td { background: #f6f0ff; }
.mx-table tr.mx-click:focus { outline: 2px solid var(--purple); outline-offset: -2px; }
.gm-hint { font-size: 12.5px; margin: 0 0 6px; }
.pp-gap.flash { animation: pp-flash 2.6s ease; }
@keyframes pp-flash { 0%, 60% { box-shadow: 0 0 0 3px #7d2ae8; background: #f6f0ff; } 100% { box-shadow: none; background: transparent; } }
@media (prefers-reduced-motion: reduce) { .pp-gap.flash { animation: none; outline: 3px solid #7d2ae8; } }

/* ---------- the same jobs on other sites ---------- */
.je-links { font-size: 12px; color: var(--muted); white-space: nowrap; text-align: center; }
.je-links a { color: var(--purple); font-weight: 600; }
.je-box { margin-top: 20px; border: 1px solid var(--bd); background: #fff; border-radius: 16px; padding: 14px 16px; }
.je-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.je-row b { min-width: 180px; color: var(--ink); font-size: 14px; }
.je-firms { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .je-links { text-align: left; } .je-row b { min-width: 0; width: 100%; } }
