/* CV Mojo - app theme for the v2 preview.
   Loaded after the SPA's own styles (index.php) only while the preview
   cookie is set. It remaps the SPA design tokens to the new palette and
   restyles the shared chrome (header, buttons, cards, inputs). Colours
   hard-coded in inline styles are untouched until the app pages are rebuilt. */

:root {
  --c-primary: #27349f;
  --c-primary-light: #e4e7fb;
  --c-primary-dark: #1f2a85;
  --c-accent: #7a5a00;
  --c-accent-light: #fff1c7;
  --c-success: #1d6b45;
  --c-success-light: #e1f3e8;
  --c-dark: #191d3b;
  --c-text: #2b2f4c;
  --c-text-light: #5d6180;
  --c-border: #e3e5f1;
  --c-bg: #f2f3f8;
  --green-sidebar: #27349f;
  --green-active: #1f2a85;
  --green-accent: #27349f;
  --green-dot: #939acf;
  --chip-bg: #eceef6;
  --stat-c-green: #27349f;
  --focus-ring: 0 0 0 4px rgba(39, 52, 159, 0.16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: var(--font);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(25, 29, 59, 0.06), 0 2px 8px rgba(25, 29, 59, 0.04);
  --shadow: 0 1px 2px rgba(25, 29, 59, 0.06), 0 2px 8px rgba(25, 29, 59, 0.04);
  --shadow-lg: 0 10px 30px rgba(25, 29, 59, 0.08), 0 2px 6px rgba(25, 29, 59, 0.05);
  --shadow-hover: 0 10px 30px rgba(25, 29, 59, 0.08), 0 2px 6px rgba(25, 29, 59, 0.05);
  --header-h: 68px;
}

body { color: var(--c-text); background: var(--c-bg); }
h1, h2, h3 { color: var(--c-dark); letter-spacing: -0.02em; }
h1 { font-weight: 800; letter-spacing: -0.03em; }
a { color: var(--c-primary); }

/* Header: white, blurred, hairline once the page scrolls under it. */
.header { background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--c-border); }
.header-inner { max-width: 1248px; }
.logo { gap: 10px; color: var(--c-dark); }
.logo:hover { opacity: 1; }
.brand-badge { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; font-size: 14px; font-weight: 800; letter-spacing: -0.04em; color: #fff; background: linear-gradient(150deg, #27349f, #191d3b); border-radius: 10px; }
.brand-badge::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 7px; height: 3px; background: #f5ff38; border-radius: 2px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: #191d3b; }
.brand-mojo { color: #27349f; }
.nav { gap: 4px; }
.nav-link { padding: 9px 12px; font-size: 15px; font-weight: 500; color: var(--c-dark); border-radius: 10px; box-shadow: none; }
.nav-link:hover { color: var(--c-primary); background: var(--c-bg); }
.nav-link.active { color: var(--c-primary); font-weight: 600; background: var(--c-bg); box-shadow: none; }

/* Buttons: pills. */
.btn { min-height: 42px; padding: 9px 18px; font-size: 14.5px; font-weight: 600; border-radius: 999px; }
.btn-primary { color: #fff; background: var(--c-primary); box-shadow: 0 6px 16px rgba(39, 52, 159, 0.22); }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-outline { color: var(--c-dark); background: #fff; border: 1.5px solid #cfd2e6; }
.btn-outline:hover { color: var(--c-primary); background: #fff; border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-bg); }

/* Cards and inputs. */
.card { border-color: var(--c-border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow-lg); }
.form-input { min-height: 44px; border: 1.5px solid #cfd2e6; border-radius: 12px; }
.form-input:focus { border-color: var(--c-primary); box-shadow: var(--focus-ring); }
.form-label { color: var(--c-dark); }
.tag { border-radius: 999px; }


/* ════════════════════════════════════════════════════════════════════════
   App shell: a left sidebar on every signed-in page (built by app.js).
   ════════════════════════════════════════════════════════════════════════ */
:root {
  --side-w: 264px;
  --navy: #191d3b;
  --indigo: #27349f;
  --yellow: #f5ff38;
  --yellow-soft: #fbffc9;
  --cyan: #3afaf4;
  --cyan-soft: #d5fdfc;
  --channel: #aab2ff;
  --channel-soft: #eef0ff;
  --mist: #f2f3f8;
  --paper: #f6f5f0;
  --line: #e3e5f1;
  --muted: #5d6180;
  --text: #2b2f4c;
  --ok: #3bbe00;
  --ok-soft: #e8f8df;
  --amber: #7a5a00;
  --amber-soft: #fff1c7;
}
.side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 120; display: flex; flex-direction: column; width: var(--side-w); padding: 22px 16px 16px; overflow-y: auto; color: #c9cdea; background: radial-gradient(420px 260px at 0% 0%, rgba(58, 250, 244, .09), transparent 60%), linear-gradient(180deg, #1f2556 0%, var(--navy) 55%); scrollbar-width: thin; }
.side-brand { display: inline-flex; align-items: center; gap: 10px; padding: 2px 10px 24px; color: #fff; text-decoration: none; }
.side-brand:hover { text-decoration: none; }
.side-brand .brand-badge { color: var(--navy); background: #fff; }
.side-brand .brand-name { color: #fff; }
.side-brand .brand-mojo { color: var(--yellow); }
.side-nav { display: grid; gap: 18px; }
.side-group { display: grid; gap: 2px; }
.side-label { margin: 0 0 6px; padding: 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8f94bb; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 14.5px; font-weight: 600; color: #c9cdea; text-decoration: none; border-radius: 12px; transition: background-color .15s ease, color .15s ease; }
.side-link svg { flex: none; opacity: .8; }
.side-link:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .07); }
.side-link.is-active { color: var(--navy); background: var(--yellow); box-shadow: 0 6px 18px rgba(245, 255, 56, .18); }
.side-link.is-active svg { opacity: 1; }
.side-link--sub { padding: 8px 12px 8px 14px; font-size: 14px; font-weight: 500; }
.side-more summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; }
.side-more summary::-webkit-details-marker { display: none; }
.side-more summary svg { transition: transform .2s ease; }
.side-more[open] summary svg { transform: rotate(180deg); }
/* Application pack and its tools (2026-10-26): the link, a button that opens the list, and the list. */
.side-tree-row { display: flex; align-items: center; gap: 2px; }
.side-tree-row .side-link { flex: 1; min-width: 0; }
.side-twist { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #c9cdea; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.side-twist:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.side-twist svg { transition: transform .2s ease; }
.side-twist[aria-expanded="true"] svg { transform: rotate(180deg); }
.side-subs { display: grid; gap: 1px; margin: 2px 0 6px 22px; padding: 0 0 0 10px; list-style: none; border-left: 1.5px solid rgba(255, 255, 255, .14); }
.side-subs[hidden] { display: none; }
.side-sub { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #c9cdea; text-decoration: none; border-radius: 10px; }
.side-sub svg { flex: none; opacity: .75; }
.side-sub:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .07); }
.side-sub.is-active { color: var(--navy); background: var(--yellow); }
.side-sub.is-active svg { opacity: 1; }
.side-link.is-parent { color: #fff; }
.side-twist:focus-visible, .side-sub:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .side-twist svg { transition: none; } }
.side-foot { display: grid; gap: 12px; margin-top: auto; padding-top: 24px; }
/* Free uses box (app.js usesBoxHtml): free members only, a calm panel rather than an advert. */
.side-uses { display: grid; justify-items: start; gap: 6px; padding: 13px 15px 14px; color: #c9cdea; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; }
.side-uses-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.side-uses-top b { font-size: 15px; font-weight: 800; color: #fff; }
.side-uses-dots { display: inline-flex; gap: 4px; }
.side-uses-dots i { width: 9px; height: 9px; background: var(--cyan); border-radius: 50%; }
.side-uses-dots i.is-used { background: rgba(255, 255, 255, .22); }
.side-uses-what { padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: #c9cdea; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.side-uses-what:hover { color: #fff; }
.side-uses-info { margin: 0; font-size: 13px; line-height: 1.45; color: #e3e6f7; }
.side-uses-info[hidden] { display: none; }
.side-uses-up { font-size: 13px; font-weight: 700; line-height: 1.4; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.side-uses-up:hover { color: var(--cyan); }
.side-uses :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.side-user { display: flex; align-items: center; gap: 6px; padding: 8px; background: rgba(255, 255, 255, .06); border-radius: 14px; }
.side-user-main { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.side-user-main:hover { color: #fff; text-decoration: none; }
.side-user-main b { display: block; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.side-user-main > span > span { display: block; font-size: 12.5px; color: #aeb3dc; }
.side-user-main > span { min-width: 0; }
.side-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; font-size: 14px; font-weight: 800; color: var(--navy); object-fit: cover; background: var(--cyan); border-radius: 50%; }
.side-icon { display: grid; place-items: center; width: 36px; height: 36px; color: #aeb3dc; border-radius: 10px; }
.side-icon:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.side-scrim { display: none; }

body.has-side { padding-left: var(--side-w); }
body.has-side .header .logo,
body.has-side #hamburgerBtn,
body.has-side #mainNav > .nav-link:not(.nav-badge),
body.has-side #exploreDropWrap,
body.has-side #tokenCounter,
body.has-side #mainNav > button[title^="Quick actions"] { display: none !important; }
body.has-side .header-inner { max-width: none; gap: 14px; padding: 0 32px; }
body.has-side .header-inner > div:last-child { margin-left: auto; }
body.has-side .main { padding: 32px 32px 64px; }
.top-search { display: inline-flex; align-items: center; gap: 10px; width: min(380px, 40vw); padding: 9px 12px 9px 14px; font: inherit; font-size: 14px; color: var(--muted); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.top-search:hover { background: #fff; border-color: var(--indigo); }
.top-search kbd { margin-left: auto; padding: 1px 7px; font: 600 11.5px/1.6 var(--font); color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.side-toggle { display: none; place-items: center; width: 42px; height: 42px; color: var(--navy); background: var(--mist); border: 0; border-radius: 12px; cursor: pointer; }
/* Sidebar count badges (app.js "Sidebar counts"; Messages: app-messages.js). Capped at 99+, hidden at 0. */
.side-count { margin-left: auto; min-width: 22px; padding: 1px 7px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 18px; text-align: center; color: var(--navy); background: var(--yellow); border-radius: 999px; }
.side-count[hidden] { display: none; }
.side-link.is-active .side-count { color: #fff; background: var(--navy); }
/* Mobile menu button: a dot while any badge shows a number. */
.side-toggle { position: relative; }
.side-toggle.has-count::after { content: ''; position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 2px var(--navy); pointer-events: none; }
/* Quick notes button, left of the bell (app.js "Quick notes"; the panel's own styles are app-notes.css). The
   bell's look and badge, as a real button; the count is navy, as it is a tally rather than an alert. */
.cvn-btn { font: inherit; line-height: inherit; background: none; border: 0; cursor: pointer; }
.cvn-btn .nav-badge-count { top: 0; right: 2px; background: var(--navy); }
.cvn-btn .nav-badge-count[hidden] { display: none; }
.cvn-btn[aria-expanded="true"] { color: var(--navy); background: var(--yellow-soft, #FFE7A3); border-radius: 10px; }
.cvn-btn[aria-busy="true"] { cursor: progress; }
.cvn-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 10px; }
/* Small phones: with the extra button, tighten the top bar so the menu button never gets squeezed. */
@media (max-width: 380px) {
  body.has-side .header-inner { gap: 8px; }
  body.has-side .side-toggle, body.has-side .top-search { flex: none; }
  body.has-side #mainNav .nav-link.nav-badge { padding: 8px 6px; }
  body.has-side #mainNav .nav-user { padding: 4px 0 4px 4px; }
}
@media (max-width: 340px) {
  body.has-side .header .logo { padding-left: 8px; padding-right: 8px; }
  body.has-side .header .logo .brand-name, body.has-side .header .logo .brand-mojo { font-size: 21px; }
}
@media (max-width: 960px) {
  body.has-side { padding-left: 0; }
  .side { transform: translateX(-100%); transition: transform .25s ease; }
  body.side-open .side { transform: none; box-shadow: 24px 0 60px rgba(0, 0, 0, .3); }
  body.side-open .side-scrim { position: fixed; inset: 0; z-index: 110; display: block; background: rgba(13, 15, 30, .45); }
  .side-toggle { display: inline-grid; }
  body.has-side .header .logo { display: flex !important; }
  body.has-side .header-inner { padding: 0 16px; }
  body.has-side .main { padding: 20px 16px 48px; }
  .top-search { width: auto; padding: 10px; }
  .top-search span, .top-search kbd { display: none; }
}
@media (max-width: 768px) {
  body.has-side #mainNav { position: static !important; display: flex !important; flex-direction: row !important; gap: 2px; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
  body.has-side #mainNav .nav-link { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* ════════════════════════════════════════════════════════════════════════
   Shared pieces for the new app screens.
   ════════════════════════════════════════════════════════════════════════ */
.cvm-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--navy); white-space: nowrap; background: #e7e9f4; border-radius: 999px; }
.cvm-status::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.cvm-status--ok { color: var(--ok); background: var(--ok-soft); }
.cvm-status--warn { color: var(--amber); background: var(--amber-soft); }
.cvm-status--low { color: #b42318; background: #fdecea; }
.cvm-status--info { color: var(--indigo); background: #e4e7fb; }
.cvm-sticker { position: absolute; z-index: 2; display: inline-flex; padding: 6px 12px; font-size: 12.5px; font-weight: 800; line-height: 1.2; color: var(--navy); white-space: nowrap; background: var(--yellow); border-radius: 9px; box-shadow: 0 8px 18px rgba(25, 29, 59, .15); transform: rotate(4deg); }
.cvm-sticker--navy { color: #fff; background: var(--navy); }
.cvm-ring { position: relative; flex: none; display: inline-grid; place-items: center; }
.cvm-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cvm-ring circle { fill: none; stroke-width: 6; }
.cvm-ring .bg { stroke: var(--mist); }
.cvm-ring .fg { stroke: var(--ok); stroke-linecap: round; transition: stroke-dasharray 1.1s cubic-bezier(.2, .8, .2, 1); }
.cvm-ring.tone-warn .fg { stroke: #e0a800; }
.cvm-ring.tone-low .fg { stroke: #e5484d; }
.cvm-ring.tone-none .fg { stroke: transparent; }
.cvm-ring b { position: relative; font-weight: 800; color: var(--navy); }
.cvm-ring--md { width: 96px; height: 96px; }
.cvm-ring--md b { font-size: 28px; letter-spacing: -.04em; }
.cvm-ring--sm { width: 42px; height: 42px; }
.cvm-ring--sm circle { stroke-width: 7; }
.cvm-ring--sm b { font-size: 12.5px; }
.cvm-sheet { display: grid; align-content: start; gap: 5px; width: 104px; aspect-ratio: 210 / 297; padding: 12px 11px; text-align: left; background: #fff; border-radius: 6px; box-shadow: 0 10px 24px rgba(25, 29, 59, .14); transform: rotate(-4deg); transition: transform .25s ease; }
.cvm-sheet b { overflow: hidden; font-size: 9px; line-height: 1.2; color: var(--navy); white-space: nowrap; text-overflow: ellipsis; }
.cvm-sheet span { overflow: hidden; margin: -3px 0 3px; font-size: 7px; line-height: 1.2; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.cvm-sheet i { display: block; height: 4px; background: #dfe1f1; border-radius: 2px; }
.cvm-sheet i.w60 { width: 60%; }
.cvm-sheet i.w40 { width: 40%; }
.cvm-sheet i.is-marked { background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.btn.btn-yellow { color: var(--navy); background: var(--yellow); border-color: var(--yellow); box-shadow: none; }
.btn.btn-yellow:hover { color: var(--navy); background: #fbff8a; }
.btn.btn-ghost-dark { color: #fff; background: transparent; border: 1.5px solid rgba(255, 255, 255, .4); }
.btn.btn-ghost-dark:hover { background: rgba(255, 255, 255, .08); }

/* ════════════════════════════════════════════════════════════════════════
   Dashboard
   ════════════════════════════════════════════════════════════════════════ */
.db { display: grid; gap: 24px; }
.db-verify { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px; font-size: 14.5px; color: var(--navy); background: var(--yellow-soft); border: 1px solid #e9ef8c; border-radius: 14px; }
.db-verify svg { color: var(--indigo); }
.db-link { margin-left: auto; padding: 0; font: inherit; font-weight: 700; color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.db-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.db-hello { margin: 0; font-size: 16px; font-weight: 600; color: var(--muted); }
.db-name { margin: 2px 0 14px; font-size: clamp(2.1rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: var(--navy); }
.db-mark { padding: 0 .05em; background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.db-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.db-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 13px; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.db-pill svg { color: var(--indigo); }
.db-pill--pro { background: var(--yellow); border-color: var(--yellow); }
.db-pill--pro svg { color: var(--navy); }
.db-pill--badge { background: var(--channel-soft); border-color: var(--channel-soft); }
.db-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.db-head-actions .btn { min-height: 46px; padding: 10px 20px; font-size: 15px; }
.db-feed { display: grid; gap: 10px; }
.db-notice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; font: inherit; font-size: 14.5px; text-align: left; color: var(--text); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--cyan); border-radius: 14px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.db-notice:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(25, 29, 59, .08); }
.db-notice--bell { border-left-color: var(--yellow); }
.db-notice > svg { flex: none; color: var(--muted); }
.db-notice-text { flex: 1; min-width: 0; }
.db-notice-text b { color: var(--navy); }
.db-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; font-size: 13px; font-weight: 800; color: var(--navy); object-fit: cover; background: var(--channel); border-radius: 50%; }
.db-av--bell { background: var(--yellow); }
.db-time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.db-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.db-col { display: grid; gap: 24px; }
.db-card { position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 1px 2px rgba(25, 29, 59, .05), 0 2px 8px rgba(25, 29, 59, .04); }
.db-card[hidden] { display: none; }
.db-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.db-card-h h2 { margin: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
.db-card-h a { font-size: 14px; font-weight: 600; cursor: pointer; }
.db-label { margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.db-block { width: 100%; margin-bottom: 18px; }

/* Continue where you left off */
.db-continue { overflow: hidden; }
.db-continue::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--yellow); }
.db-continue-body { display: flex; align-items: center; gap: 26px; }
.db-sheet { flex: none; padding: 18px 20px; background: var(--channel-soft); border: 0; border-radius: 18px; cursor: pointer; }
.db-sheet:hover .cvm-sheet { transform: rotate(0deg) translateY(-3px); }
.db-continue-info { flex: 1; min-width: 0; }
.db-continue-info h2 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.db-meta { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.db-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.db-nudge { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 10px 14px; font-size: 14px; line-height: 1.5; color: var(--navy); background: var(--yellow-soft); border-radius: 12px; }
.db-nudge svg { flex: none; margin-top: 1px; color: var(--indigo); }
.db-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.db-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.db-tools-label { margin-right: 4px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.db-tool { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--navy); background: var(--mist); border: 1.5px solid transparent; border-radius: 999px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.db-tool:hover { color: var(--indigo); background: #fff; border-color: var(--indigo); }
.db-tool svg { color: var(--indigo); }

/* Lists */
.db-list { display: grid; gap: 2px; }
.db-row { display: flex; align-items: center; gap: 14px; padding: 10px; color: var(--text); text-decoration: none; border-radius: 14px; cursor: pointer; }
.db-row:hover { text-decoration: none; background: var(--mist); }
.db-row > svg:last-child { flex: none; color: var(--muted); }
.db-row-main { flex: 1; min-width: 0; }
.db-row-main b { display: block; overflow: hidden; font-size: 15px; color: var(--navy); white-space: nowrap; text-overflow: ellipsis; }
.db-row-main span { display: block; overflow: hidden; font-size: 13px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.db-logo { flex: none; display: grid; place-items: center; width: 42px; height: 42px; font-weight: 800; color: var(--navy); background: var(--tone, var(--cyan-soft)); border-radius: 12px; }
.db-empty { display: grid; justify-items: start; gap: 12px; padding: 18px; background: var(--mist); border-radius: 16px; }
.db-empty p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Score */
.db-score-body { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.db-score-label { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.db-score-for { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.db-progress-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.db-progress-top b { color: var(--navy); }
.db-progress p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.db-bar { display: block; height: 8px; overflow: hidden; background: var(--mist); border-radius: 4px; }
.db-bar i { display: block; height: 100%; background: var(--indigo); border-radius: 4px; transition: width 1s ease; }
.db-bar--yellow { box-shadow: inset 0 0 0 1px rgba(25, 29, 59, .08); }
.db-bar--yellow i { background: var(--yellow); box-shadow: inset 0 0 0 1px rgba(25, 29, 59, .12); }

/* Next steps */
.db-steps-progress { display: flex; align-items: center; gap: 12px; }
.db-steps-progress .db-bar { flex: 1; }
.db-steps-progress b { font-size: 13px; color: var(--navy); white-space: nowrap; }
.db-steps { display: grid; gap: 2px; margin: 14px 0 0; padding: 0; list-style: none; }
.db-step { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; font: inherit; text-align: left; color: var(--text); background: none; border: 0; border-radius: 12px; cursor: pointer; }
.db-step:hover:not(:disabled) { background: var(--mist); }
.db-step:disabled { cursor: default; }
.db-step > svg { flex: none; margin-left: auto; color: var(--muted); }
.db-check { flex: none; display: grid; place-items: center; width: 24px; height: 24px; color: #fff; border: 2px solid #cfd2e6; border-radius: 50%; }
.db-step.is-done .db-check { background: var(--ok); border-color: var(--ok); }
.db-step-text b { display: block; font-size: 14.5px; color: var(--navy); }
.db-step-text span { display: block; font-size: 13px; color: var(--muted); }
.db-step.is-done .db-step-text b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(93, 97, 128, .45); }

/* Review and earn */
.db-review { color: #c9cdea; background: radial-gradient(360px 220px at 100% 0%, rgba(58, 250, 244, .14), transparent 60%), linear-gradient(150deg, var(--indigo), var(--navy)); border: 0; box-shadow: 0 10px 30px rgba(25, 29, 59, .18); }
.db-review .db-label { color: #aeb3dc; }
.db-review h2 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.db-review p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; }
.db-review .db-next { padding: 10px 12px; background: rgba(255, 255, 255, .08); border-radius: 12px; }
.db-review .db-next b { color: #fff; }
.db-review .cvm-sticker { top: -12px; right: 20px; }

/* First visit: no CVs yet */
.db-welcome { position: relative; padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 1px 2px rgba(25, 29, 59, .05), 0 2px 8px rgba(25, 29, 59, .04); }
.db-kicker { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--indigo); }
.db-welcome h2 { margin: 0 0 10px; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.db-welcome-lead { max-width: 52ch; margin: 0 0 30px; font-size: 16.5px; color: var(--muted); }
.db-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.db-path { position: relative; display: grid; align-content: start; gap: 8px; padding: 24px 22px; font: inherit; text-align: left; color: var(--text); background: var(--tone-soft, var(--mist)); border: 2px solid transparent; border-radius: 20px; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.db-path:hover { border-color: var(--navy); transform: translateY(-4px); box-shadow: 0 16px 34px rgba(25, 29, 59, .12); }
.db-path--yellow { --tone-soft: var(--yellow-soft); }
.db-path--cyan { --tone-soft: var(--cyan-soft); }
.db-path--channel { --tone-soft: var(--channel-soft); }
.db-path-ic { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 8px; color: var(--navy); background: #fff; border-radius: 14px; box-shadow: 0 6px 14px rgba(25, 29, 59, .08); transform: rotate(-4deg); }
.db-path b { font-size: 1.15rem; color: var(--navy); }
.db-path-d { font-size: 14.5px; line-height: 1.5; }
.db-path-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--indigo); }
.db-path .cvm-sticker { top: -12px; right: 16px; }
.db-unlocks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 20px 0 0; list-style: none; font-size: 14.5px; font-weight: 600; color: var(--navy); border-top: 1px dashed var(--line); }
.db-unlocks li { display: inline-flex; align-items: center; gap: 8px; }
.db-unlocks svg { color: var(--indigo); }

/* Dashboard: Your tools (2026-10-26). Every tool in four groups, with what it costs. */
.tt-lead { margin: -4px 0 18px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.tt-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
@media (max-width: 700px) { .tt-groups { grid-template-columns: minmax(0, 1fr); } }
.tt-group { min-width: 0; }
.tt-group-h { margin: 0 0 6px; padding: 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tt-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tt { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: 16px; transition: background-color .15s ease; }
.tt:hover { color: var(--text); text-decoration: none; background: var(--mist); }
.tt:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.tt-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; color: var(--navy); background: var(--yellow-soft); border-radius: 12px; }
.tt-ic--cv { background: var(--cyan-soft); }
.tt-ic--leave { background: var(--channel-soft); }
.tt-ic--money { background: var(--mist); }
.tt-text { display: grid; gap: 2px; min-width: 0; }
.tt-text b { font-size: 15px; font-weight: 800; color: var(--navy); }
.tt-line { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.tt-top { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.tt-tag { display: inline-flex; align-items: center; padding: 1px 9px; font-size: 12px; font-weight: 800; line-height: 19px; color: var(--navy); background: var(--yellow-soft); border-radius: 999px; }
.tt-tag--free, .tt-tag--pro { color: #13705f; background: var(--ok-soft, #d8f3ee); }
.tt-tag--out { color: #b34a00; background: #ffe9da; }
.tt-tag--cv { color: var(--muted); background: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.db-welcome + .tt-card { margin-top: 26px; }
#dbToolsH:focus { outline: none; }

/* A tool that works on a CV, opened with no CV yet (UI.needCv). */
.nc { padding: 32px; }
.nc-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
.nc-ic { flex: none; display: grid; place-items: center; width: 64px; height: 64px; color: var(--navy); background: var(--yellow); border-radius: 18px; transform: rotate(-4deg); }
.nc-title { margin: 0 0 6px; font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.nc-lead { max-width: 62ch; margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.nc-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.nc-way { display: flex; align-items: center; gap: 12px; padding: 16px; font: inherit; text-align: left; color: var(--text); background: var(--mist); border: 2px solid transparent; border-radius: 18px; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.nc-way:hover { border-color: var(--navy); transform: translateY(-2px); }
.nc-way:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.nc-way--main { background: var(--yellow-soft); }
.nc-way > svg { flex: none; color: var(--navy); }
.nc-way-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; color: var(--navy); background: var(--paper, #fff); border-radius: 12px; }
.nc-way-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.nc-way-text b { font-size: 15px; color: var(--navy); }
.nc-way-text span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.nc-also { margin-top: 26px; padding-top: 18px; border-top: 2px dashed var(--line); }
.nc-also-h { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--navy); }
.nc-also-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nc-also-list .ap-chip { text-decoration: none; }
@media (max-width: 640px) {
  .nc { padding: 22px 18px; }
  .nc-head { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .nc-way { transition: none; } .nc-way:hover { transform: none; } }

/* Cards settle in once on load. */
@keyframes db-in { from { opacity: 0; translate: 0 10px; } }
.db-head, .db-feed, .db-card, .db-welcome { animation: db-in .45s ease both; }
.db-col:last-child .db-card { animation-delay: .08s; }
.db-col .db-card + .db-card { animation-delay: .14s; }
@media (prefers-reduced-motion: reduce) { .db-head, .db-feed, .db-card, .db-welcome { animation: none; } .cvm-ring .fg, .db-bar i { transition: none; } }

@media (max-width: 1180px) { .db-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .db-paths { grid-template-columns: minmax(0, 1fr); }
  .db-continue-body { flex-direction: column; align-items: flex-start; }
  .db-welcome { padding: 26px 20px; }
  .db-card { padding: 20px; }
  .db-head-actions { width: 100%; }
  .db-head-actions .btn { flex: 1; }
  .db-notice .db-time { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   Toolkit for rebuilt app pages (ap-*), shared by every app-*.js file.
   ════════════════════════════════════════════════════════════════════════ */
.ap { display: grid; gap: 24px; }
.ap-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.ap-head-text { min-width: 0; }
.ap-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ap-crumbs li + li::before { content: '/'; margin-right: 10px; color: #b6b9d6; }
.ap-crumbs a { color: var(--muted); }
.ap-crumbs a:hover { color: var(--indigo); }
.ap-kicker { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--indigo); }
.ap-title { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--navy); }
.ap-sub { max-width: 62ch; margin: 8px 0 0; font-size: 15.5px; color: var(--muted); }
.ap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ap-tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; padding: 4px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; scrollbar-width: none; }
.ap-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; background: none; border: 0; border-radius: 999px; cursor: pointer; }
.ap-tab:hover { color: var(--indigo); }
.ap-tab[aria-selected="true"] { color: #fff; background: var(--navy); }
.ap-count { padding: 0 7px; font-size: 12px; font-weight: 800; color: var(--navy); background: var(--mist); border-radius: 999px; }
.ap-tab[aria-selected="true"] .ap-count { background: var(--yellow); }
.ap-card { position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 1px 2px rgba(25, 29, 59, .05), 0 2px 8px rgba(25, 29, 59, .04); }
.ap-card--accent { overflow: hidden; }
.ap-card--accent::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--accent, var(--yellow)); }
.ap-card--navy { color: #c9cdea; background: radial-gradient(360px 220px at 100% 0%, rgba(58, 250, 244, .14), transparent 60%), linear-gradient(150deg, var(--indigo), var(--navy)); border: 0; }
.ap-card--navy h2, .ap-card--navy h3 { color: #fff; }
.ap-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.ap-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ap-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.ap-stat { position: relative; display: grid; gap: 6px; padding: 22px 20px 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.ap-stat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--accent); }
.ap-stat--yellow { --accent: var(--yellow); }
.ap-stat--cyan { --accent: var(--cyan); }
.ap-stat--channel { --accent: var(--channel); }
.ap-stat--indigo { --accent: var(--indigo); }
.ap-stat-n { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--navy); }
.ap-stat-l { font-size: 13px; font-weight: 700; color: var(--muted); }
.ap-stat-note { font-size: 12.5px; color: var(--muted); }
.ap-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 24px; text-align: center; background: #fff; border: 2px dashed var(--line); border-radius: 22px; }
.ap-empty-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; color: var(--navy); background: var(--yellow); border-radius: 20px; transform: rotate(-6deg); }
.ap-empty h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.ap-empty p { max-width: 46ch; margin: 0; color: var(--muted); }
.ap-empty .ap-actions { justify-content: center; margin-top: 8px; }
.ap-av { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; font-size: 14px; font-weight: 800; color: #fff; object-fit: cover; background: var(--indigo); border-radius: 50%; }
.ap-av--cyan { color: var(--navy); background: var(--cyan); }
.ap-av--yellow { color: var(--navy); background: var(--yellow); }
.ap-av--channel { color: var(--navy); background: var(--channel); }
.ap-icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; color: var(--muted); background: none; border: 0; border-radius: 10px; cursor: pointer; }
.ap-icon-btn:hover { color: var(--navy); background: var(--mist); }
.ap-menu-wrap { position: relative; }
.ap-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; display: grid; min-width: 230px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px rgba(25, 29, 59, .14); }
.ap-menu[hidden] { display: none; }
.ap-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; font: inherit; font-size: 14px; text-align: left; color: var(--navy); background: none; border: 0; border-radius: 10px; cursor: pointer; }
.ap-menu button:hover { background: var(--mist); }
.ap-menu button svg { color: var(--indigo); }
.ap-menu button.is-danger, .ap-menu button.is-danger svg { color: #b42318; }
.ap-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.ap-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; }
.ap-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ap-switch-track { position: relative; flex: none; width: 42px; height: 24px; background: #cfd2e6; border-radius: 999px; transition: background-color .15s ease; }
.ap-switch-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s ease; }
.ap-switch input:checked + .ap-switch-track { background: var(--ok); }
.ap-switch input:checked + .ap-switch-track::after { transform: translateX(18px); }
.ap-switch input:focus-visible + .ap-switch-track { outline: 3px solid var(--indigo); outline-offset: 2px; }
.ap-row { display: flex; align-items: center; gap: 14px; padding: 12px; color: var(--text); text-decoration: none; border-radius: 14px; cursor: pointer; }
.ap-row:hover { text-decoration: none; background: var(--mist); }
.ap-row-main { flex: 1; min-width: 0; }
.ap-row-main b { display: block; overflow: hidden; font-size: 15px; color: var(--navy); white-space: nowrap; text-overflow: ellipsis; }
.ap-row-main span { display: block; overflow: hidden; font-size: 13px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--navy); white-space: nowrap; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.ap-chip:hover { color: var(--indigo); border-color: var(--indigo); }
.ap-chip[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.ap-section-title { margin: 0 0 14px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
.ap-muted { color: var(--muted); }
.ap-in { animation: db-in .45s ease both; }
@media (prefers-reduced-motion: reduce) { .ap-in { animation: none; } }
@media (max-width: 1180px) { .ap-split { grid-template-columns: minmax(0, 1fr); } .ap-aside { position: static; } }
@media (max-width: 760px) { .ap-card { padding: 20px; } .ap-head .ap-actions { width: 100%; } }

/* ════════════════════════════════════════════════════════════════════════
   Forms and AI tool pages (cover letter, interview prep, ATS checker).
   ════════════════════════════════════════════════════════════════════════ */
.ap-field { display: grid; gap: 8px; }
.ap-field + .ap-field { margin-top: 16px; }
.ap-field > label, .ap-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.ap-field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ap-hint { font-size: 13px; color: var(--muted); }
.ap-input, .ap-textarea, .ap-select { width: 100%; min-height: 46px; padding: 11px 14px; font: inherit; font-size: 15px; color: var(--navy); background: #fff; border: 1.5px solid #cfd2e6; border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.ap-textarea { min-height: 150px; line-height: 1.55; resize: vertical; }
.ap-input:focus, .ap-textarea:focus, .ap-select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(39, 52, 159, .14); }
.ap-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--mist); border-radius: 999px; }
.ap-seg button { padding: 7px 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--navy); background: none; border: 0; border-radius: 999px; cursor: pointer; }
.ap-seg button[aria-pressed="true"] { color: #fff; background: var(--navy); }
.ap-error { margin: 12px 0 0; padding: 10px 14px; font-size: 14px; font-weight: 600; color: #b42318; background: #fdecea; border-radius: 12px; }
.ap-error[hidden] { display: none; }
.ap-btn-block { width: 100%; min-height: 50px; margin-top: 18px; font-size: 15.5px; }

.tool-ic { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 14px; color: var(--navy); background: var(--accent-soft, var(--yellow-soft)); border-radius: 18px; transform: rotate(-4deg); box-shadow: 0 8px 18px rgba(25, 29, 59, .08); }
.tool-ic--yellow { --accent-soft: var(--yellow); }
.tool-ic--cyan { --accent-soft: var(--cyan); }
.tool-ic--channel { --accent-soft: var(--channel); }
.tool { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-input { position: sticky; top: calc(var(--header-h) + 24px); }
.tool-cv { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 12px 14px; background: var(--channel-soft); border-radius: 16px; }
.tool-cv .cvm-sheet { width: 44px; padding: 6px 5px; gap: 3px; transform: rotate(-4deg); box-shadow: 0 4px 10px rgba(25, 29, 59, .12); }
.tool-cv .cvm-sheet b, .tool-cv .cvm-sheet span { display: none; }
.tool-cv .cvm-sheet i { height: 2.5px; }
.tool-cv-text { flex: 1; min-width: 0; }
.tool-cv-text b { display: block; overflow: hidden; font-size: 15px; color: var(--navy); white-space: nowrap; text-overflow: ellipsis; }
.tool-cv-text span { font-size: 13px; color: var(--muted); }
.tool-cv a, .tool-cv button.ap-linkish { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.ap-linkish { padding: 0; font: inherit; color: var(--indigo); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tool-cost { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--yellow-soft); border-radius: 999px; }
.tool-cost svg { color: var(--indigo); }
.tool-cost--pro { background: var(--yellow); }
/* What a tool costs, next to its button (app.js UI.useCost / UI.useLine; repainted when the count changes). */
.use-line { margin: 10px 0 0; text-align: center; }
.use-line--left { text-align: left; }
.tool-cost--out { align-items: flex-start; max-width: 100%; padding: 7px 12px; line-height: 1.45; text-align: left; white-space: normal; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 14px; }
.tool-cost--out svg { flex: none; margin-top: 2px; }
.tool-cost--out a { font-weight: 800; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* "Applied? Add it to your Job tracker" (app.js UI.offerTrack): a small prompt, not a dialog. */
.cvm-track { position: fixed; right: 24px; bottom: 24px; z-index: 150; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; width: min(540px, calc(100vw - 48px)); padding: 14px 16px; color: var(--navy); background: #fff; border-radius: 16px; box-shadow: 0 20px 44px rgba(25, 29, 59, .22), 0 0 0 1px var(--line); animation: cvm-track-in .25s ease; }
@keyframes cvm-track-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cvm-track-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; color: var(--navy); background: var(--yellow-soft); border-radius: 12px; }
.cvm-track-text { flex: 1 1 200px; min-width: 0; }
.cvm-track-q { margin: 0; font-size: 15px; line-height: 1.4; color: var(--navy); }
.cvm-track-job { margin: 2px 0 0; overflow: hidden; font-size: 13px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.cvm-track-btns { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.cvm-track-btns .btn { min-height: 40px; padding: 8px 18px; }
.cvm-track-later { min-height: 40px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--navy); background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.cvm-track-later:hover { background: var(--mist); }
.cvm-track button:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.cvm-track-toast a { font-weight: 800; white-space: nowrap; }
@media (max-width: 600px) {
  .cvm-track { right: 16px; bottom: 16px; left: 16px; width: auto; }
  .cvm-track-btns { width: 100%; }
  .cvm-track-btns .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cvm-track { animation: none; } }
.tool-out { min-height: 420px; }
.tool-idle { display: grid; place-items: center; align-content: center; gap: 12px; min-height: 420px; padding: 40px 24px; text-align: center; background: #fff; border: 2px dashed var(--line); border-radius: 22px; }
.tool-idle .ap-empty-ic { width: 72px; height: 72px; }
.tool-idle h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.tool-idle p { max-width: 44ch; margin: 0; color: var(--muted); }
.tool-working { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 420px; padding: 40px 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.tool-working .cvm-sheet { width: 96px; transform: rotate(-4deg); }
.tool-working .cvm-sheet i { position: relative; overflow: hidden; }
.tool-working .cvm-sheet i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--yellow), transparent); transform: translateX(-100%); animation: tool-scan 1.4s ease-in-out infinite; }
.tool-working .cvm-sheet i:nth-child(odd)::after { animation-delay: .3s; }
@keyframes tool-scan { to { transform: translateX(100%); } }
.tool-working p { margin: 0; font-size: 15px; font-weight: 700; color: var(--indigo); }
.tool-working small { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .tool-working .cvm-sheet i::after { animation: none; } }
.tool-result { display: grid; gap: 20px; }
.ap-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ap-toolbar .ap-actions .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.ap-doc { padding: 36px 40px; font-size: 15.5px; line-height: 1.75; color: var(--text); background: #fff; border-radius: 10px; box-shadow: 0 30px 60px rgba(25, 29, 59, .1), 0 2px 6px rgba(25, 29, 59, .05); }
.ap-doc p { margin: 0 0 1em; }
.ap-doc[contenteditable="true"]:focus { outline: 3px solid rgba(39, 52, 159, .2); }
.ap-history { display: grid; gap: 2px; }
@media (max-width: 1180px) { .tool { grid-template-columns: minmax(0, 1fr); } .tool-input { position: static; } }
@media (max-width: 640px) { .ap-doc { padding: 24px 20px; } }

/* ════════════════════════════════════════════════════════════════════════
   The CV as a document (UI.cvDoc), used by review and CV pages.
   ════════════════════════════════════════════════════════════════════════ */
.cvx { overflow: hidden; font-size: 14.5px; line-height: 1.6; color: var(--text); background: #fff; border-radius: 10px; box-shadow: 0 30px 60px rgba(25, 29, 59, .1), 0 2px 6px rgba(25, 29, 59, .05); }
.cvx-head { padding: 34px 40px 26px; color: #fff; background: linear-gradient(150deg, var(--indigo), var(--navy)); }
.cvx-name { margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.cvx-role { margin: 4px 0 0; font-size: 1.05rem; font-weight: 600; color: var(--yellow); }
.cvx-sub { margin: 6px 0 0; font-size: 13.5px; color: #c9cdea; }
.cvx-body { padding: 8px 40px 40px; }
.cvx-sec { margin-top: 22px; }
.cvx-sec > h3 { margin: 0 0 10px; padding-bottom: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); border-bottom: 2px solid var(--line); }
.cvx-item + .cvx-item { margin-top: 16px; }
.cvx-item-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.cvx-item-head b { font-size: 15.5px; color: var(--navy); }
.cvx-item-head span { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cvx-org { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cvx p { margin: 0 0 8px; }
.cvx ul { margin: 0 0 8px; padding-left: 18px; }
.cvx li { margin: 3px 0; }
.cvx .cvx-skills { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.cvx .cvx-skills li { margin: 0; padding: 4px 10px; font-size: 13px; font-weight: 600; color: var(--navy); background: var(--mist); border-radius: 999px; }
.cvx-none { color: var(--muted); }
/* Annotatable sections (review mode). */
.cvx .is-annotatable { position: relative; margin: 0 -12px; padding: 8px 12px; border: 2px solid transparent; border-radius: 12px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.cvx .is-annotatable:hover, .cvx .is-annotatable:focus-visible { background: var(--yellow-soft); border-color: #e3ea7a; outline: none; }
.cvx .is-annotatable::after { content: '+ Note'; position: absolute; top: 6px; right: 8px; padding: 2px 9px; font-size: 11.5px; font-weight: 800; color: var(--navy); background: var(--yellow); border-radius: 999px; opacity: 0; transition: opacity .15s ease; }
.cvx .is-annotatable:hover::after, .cvx .is-annotatable:focus-visible::after { opacity: 1; }
.cvx .is-annotatable.has-note { background: var(--yellow-soft); border-color: var(--yellow); }
.cvx .is-annotatable.has-note::after { content: 'Note added'; opacity: 1; }
@media (max-width: 640px) { .cvx-head { padding: 24px 22px 18px; } .cvx-body { padding: 4px 22px 26px; } .cvx-name { font-size: 1.5rem; } }

/* ════════════════════════════════════════════════════════════════════════
   Legacy recolour: pages not rebuilt yet still carry the old blue and cream
   in inline styles. Swap those for the new palette, but never inside a CV
   design (templates, previews, thumbnails) where colour is the user's choice.
   ════════════════════════════════════════════════════════════════════════ */
:where([style*="color:#0B66C3" i], [style*="color: #0B66C3" i]):not(.cv-template *, .tpl-thumb *, #exCvContainer *, #cvVerPreview *, #cvPreviewArea *, #wizPreview *, .cvx *) { color: var(--indigo) !important; }
:where([style*="background:#0B66C3" i], [style*="background: #0B66C3" i], [style*="background-color:#0B66C3" i]):not(.cv-template *, .tpl-thumb *, #exCvContainer *, #cvVerPreview *, #cvPreviewArea *, #wizPreview *) { background-color: var(--indigo) !important; }
:where([style*="border-color:#0B66C3" i], [style*="border:1px solid #0B66C3" i], [style*="border:2px solid #0B66C3" i]):not(.cv-template *, .tpl-thumb *) { border-color: var(--indigo) !important; }
:where([style*="background:#084E96" i]):not(.cv-template *, .tpl-thumb *) { background-color: #1f2a85 !important; }
:where([style*="background:rgba(11,102,195" i], [style*="background: rgba(11,102,195" i]):not(.cv-template *, .tpl-thumb *, #cvPreviewArea *) { background-color: rgba(39, 52, 159, .08) !important; }
:where([style*="background:#E8F1FB" i], [style*="background: #E8F1FB" i]):not(.cv-template *, .tpl-thumb *) { background-color: #e4e7fb !important; }
:where([style*="background:#FDF0E3" i], [style*="background: #FDF0E3" i]) { background-color: var(--paper) !important; }
:where([style*="background:#F5F7FA" i], [style*="background: #F5F7FA" i]) { background-color: var(--mist) !important; }
:where([style*="color:#101828" i]) { color: var(--navy) !important; }

/* Accessibility helpers for the app (site.css isn't loaded here). */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn:focus-visible, .ap-chip:focus-visible, .ap-tab:focus-visible, .ap-icon-btn:focus-visible, .side-link:focus-visible, .db-tool:focus-visible, .db-row:focus-visible, .ap-row:focus-visible, .rv-vote:focus-visible, .cvp-tool:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; box-shadow: none; }
.side-link:focus-visible { outline-color: var(--yellow); }

/* Phone: single-column dashboard grids must not grow past the screen (cards were cut off at 390px). */
.db-col, .db-list, .db-steps, .db-feed { grid-template-columns: minmax(0, 1fr); }
.db-continue-info { min-width: 0; }
/* Grids with no template columns grew to their widest content (CV page right column ran off screen at 1440; six pages overflowed on phones). */
.ap, .ap-aside, .cvp-main, .cvp-aside, .cvp-scores, .cvp-share, #anBody { grid-template-columns: minmax(0, 1fr); }

/* Privacy: details hidden from everyone but the CV's owner show as a redaction box. */
.cvx-redact { display: inline-block; padding: .05em .55em; font-family: 'Inter', system-ui, sans-serif; font-size: .78em; font-weight: 800; letter-spacing: .14em; line-height: 1.5; color: #fff; text-transform: uppercase; vertical-align: .08em; background: #191d3b; border-radius: 4px; white-space: nowrap; }
.cvx-redact--name { padding: .12em .6em; font-size: .62em; letter-spacing: .2em; color: #191d3b; background: #fff; border-radius: 6px; vertical-align: .18em; }

/* Dashboard: "Get seen by employers" portfolio card (2026-10-24; app.js pfCard). Portfolios are paid. */
.db-pf { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 240px); gap: 22px; align-items: center; background: var(--cyan-soft); border: 0; }
.db-pf[hidden] { display: none; }
.db-pf h2 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.db-pf-text { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; }
.db-pf-ticks { display: grid; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--navy); }
.db-pf-ticks li { display: flex; align-items: flex-start; gap: 9px; }
.db-pf-ticks svg { flex: none; margin-top: 2px; color: var(--ok); }
.db-pf-note { margin: 0 0 14px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.db-pf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.db-pf-later { padding: 6px 4px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.db-pf-later:hover { color: var(--navy); }
.db-pf-art { display: grid; gap: 10px; min-width: 0; transform: rotate(-2deg); }
.db-pf-search { display: flex; align-items: center; gap: 8px; padding: 9px 14px; overflow: hidden; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; background: #fff; border-radius: 999px; box-shadow: 0 6px 16px rgba(25, 29, 59, .1); }
.db-pf-search span { overflow: hidden; text-overflow: ellipsis; }
.db-pf-result { display: grid; gap: 6px; padding: 14px; background: #fff; border-radius: 16px; box-shadow: 0 10px 24px rgba(25, 29, 59, .12); }
.db-pf-url { overflow: hidden; font-size: 11.5px; color: var(--ok); white-space: nowrap; text-overflow: ellipsis; }
.db-pf-result b { font-size: 14px; line-height: 1.3; color: var(--indigo); }
.db-pf-result i { display: block; height: 7px; background: #eceef6; border-radius: 4px; }
.db-pf-result i + i { width: 70%; }
.db-pf-chip { justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 4px 10px; font-size: 11.5px; font-weight: 800; color: var(--navy); background: var(--yellow); border-radius: 999px; }
.db-pf .cvm-sticker { top: -12px; right: 20px; }
@media (max-width: 640px) { .db-pf { grid-template-columns: minmax(0, 1fr); } .db-pf-art { display: none; } }
/* Portfolio editor: publishing is paid. */
.pf-paid-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 4px; padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--navy); background: var(--yellow-soft); border-radius: 14px; }
.pf-paid-note > span { flex: 1; min-width: 220px; }
.pf-paid-note > svg { flex: none; }

/* Letter avatars: 12 colours picked from the person's name (UI.avatarTone), the same everywhere. */
:is(.ap-av, .db-av, .side-av).av-t0 { color: #fff; background: #27349f; }
:is(.ap-av, .db-av, .side-av).av-t1 { color: #191d3b; background: #b8f3f1; }
:is(.ap-av, .db-av, .side-av).av-t2 { color: #191d3b; background: #ffe14d; }
:is(.ap-av, .db-av, .side-av).av-t3 { color: #191d3b; background: #cfe8f6; }
:is(.ap-av, .db-av, .side-av).av-t4 { color: #191d3b; background: #ffd3ba; }
:is(.ap-av, .db-av, .side-av).av-t5 { color: #191d3b; background: #ff9f5a; }
:is(.ap-av, .db-av, .side-av).av-t6 { color: #fff; background: #13705f; }
:is(.ap-av, .db-av, .side-av).av-t7 { color: #191d3b; background: #dcd6f7; }
:is(.ap-av, .db-av, .side-av).av-t8 { color: #191d3b; background: #dcefb8; }
:is(.ap-av, .db-av, .side-av).av-t9 { color: #fff; background: #2f6fb5; }
:is(.ap-av, .db-av, .side-av).av-t10 { color: #191d3b; background: #f2ddb3; }
:is(.ap-av, .db-av, .side-av).av-t11 { color: #fff; background: #b34a00; }
.db-pf-g { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.db-pf-g svg { display: block; }

/* Modal <dialog>s: the SPA's inline "* { margin: 0 }" removed the browser's centring, so they opened top-left. */
dialog:modal { margin: auto; }
/* Long page titles: smaller, two lines at most (v2). */
.ap-title.ap-title--long { font-size: clamp(1.4rem, 2.4vw, 1.9rem); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-crumbs li:last-child { max-width: min(46ch, 100%); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jb-reed { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--muted); vertical-align: middle; }
.jb-reed img { display: block; width: 80px; height: auto; }

/* ── Your chosen design and "Your job-ready pack" (2026-10-26; UI.pack / UI.designPick in app.js) ── */
.jrp-slot:empty, .dpk-slot:empty { display: none; }
.jrp { margin: 0 0 22px; padding: 22px 24px; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 1px 2px rgba(25, 29, 59, .05), 0 2px 8px rgba(25, 29, 59, .04); }
#mcBody > .jrp-slot .jrp, .fr .jrp { margin-bottom: 26px; }
.db > .jrp-slot > * { margin-bottom: 0; } /* the dashboard's grid gap spaces it */
.jrp-head { display: flex; align-items: flex-start; gap: 18px; }
.jrp-intro { flex: 1; min-width: 0; }
.jrp-thumb, .dpk-thumb { flex: none; display: block; width: 72px; overflow: hidden; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 6px 14px rgba(25, 29, 59, .12); transform: rotate(-2deg); }
.jrp-thumb img, .dpk-thumb img { display: block; width: 100%; height: auto; }
.jrp-kicker, .dpk-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
#app .jrp-title, #app .dpk-title { margin: 0; font-size: 1.3rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--navy); }
.jrp-title:focus, .dpk-title:focus { outline: none; }
.jrp-lead, .dpk-lead { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.jrp-off { margin-left: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.jrp-prog { flex: none; width: 170px; padding-top: 2px; }
.jrp-prog b { display: block; margin-bottom: 7px; font-size: 13.5px; text-align: right; color: var(--navy); }
.jrp-steps { display: grid; grid-template-columns: minmax(0, 1fr); margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.jrp-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.jrp-check { display: grid; place-items: center; width: 28px; height: 28px; font-size: 13px; font-weight: 800; color: var(--navy); border: 2px solid #cfd2e6; border-radius: 50%; }
.jrp-step.is-now .jrp-check { background: var(--yellow); border-color: var(--yellow); }
.jrp-step.is-done .jrp-check { color: #fff; background: var(--ok); border-color: var(--ok); }
.jrp-step-main { min-width: 0; }
.jrp-step-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 15px; line-height: 1.35; }
.jrp-step-t b { color: var(--navy); }
.jrp-step-d { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.jrp-step-act { justify-self: end; }
.jrp-btn { white-space: nowrap; }
.jrp-again { font-size: 14px; font-weight: 700; white-space: nowrap; }
.jrp-ways { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.jrp-way { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 9px 12px; font: inherit; text-align: left; color: var(--navy); background: var(--mist); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, transform .15s; }
.jrp-way:hover { border-color: var(--navy); transform: translateY(-1px); }
.jrp-way:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 4px rgba(25, 29, 59, .16)); }
.jrp-way--main { background: var(--yellow-soft); }
.jrp-way > svg { flex: none; }
.jrp-way b { display: block; font-size: 14px; line-height: 1.25; }
.jrp-way small { display: block; margin-top: 1px; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.jrp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.jrp-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }
.jrp-extra a { font-weight: 700; }
.jrp-hide { font-size: 14px; font-weight: 700; color: var(--muted); }
.jrp-mini { margin: 0 0 18px; }
.jrp-show { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; font: inherit; font-size: 14px; font-weight: 800; color: var(--navy); background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.jrp-show span { font-weight: 600; color: var(--muted); }
.jrp-show:hover { border-color: var(--navy); }
/* The CV page's banner */
.dpk { display: flex; align-items: center; gap: 20px; margin: 0 0 18px; padding: 20px 24px; background: var(--cyan-soft, #e3f6f3); border-radius: 22px; }
.dpk-body { flex: 1; min-width: 0; }
.dpk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.dpk-off { font-size: 14px; font-weight: 700; }
@media (max-width: 760px) {
  .jrp { padding: 18px 16px; }
  .jrp-head { flex-wrap: wrap; gap: 14px; }
  .jrp-thumb { width: 58px; }
  .jrp-intro { flex-basis: calc(100% - 72px); }
  .jrp-prog { width: 100%; padding-top: 0; }
  .jrp-prog b { text-align: left; }
  .jrp-step { gap: 2px 10px; }
  .jrp-step:not(.is-now) .jrp-step-d { display: none; } /* phones: only the next step's line */
  .jrp-step .btn { padding-left: 14px; padding-right: 14px; }
  .jrp-ways { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jrp-head:not(:has(.jrp-thumb)) .jrp-intro { flex-basis: 100%; }
  .dpk { align-items: flex-start; gap: 14px; padding: 18px 16px; }
  .dpk-thumb { width: 60px; }
}
