/* GetHired CV Prompt Builder: Gaia Symbiosis styling, layered over the app's own CSS */

:root {
  --orange: #ea580c; --orange-light: #fb923c; --orange-pale: #fff7ed;
  --navy: #2563eb; --navy-light: #1d4ed8; --navy-pale: #e8f0fe;
  --ink: #0b1020; --slate: #5b6475; --muted: #94a3b8;
  --border: #e5e9f0; --surface: #f6f8fc; --white: #ffffff;
  --green: #16a34a; --green-pale: #ecfdf3;
  --amber: #0b1020; --amber-pale: #eef1f6;
  --red: #dc2626; --red-pale: #fef2f2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 16, 32, .04), 0 8px 24px rgba(11, 16, 32, .05);
  --shadow-lg: 0 20px 50px rgba(11, 16, 32, .12);
  --gaia-black: #05070d;
}
body, .btn, .main-nav-tab, .output-tab { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body { background: var(--surface); -webkit-font-smoothing: antialiased; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Header */
header { background: var(--gaia-black); height: auto; min-height: 64px; padding: 10px 28px; gap: 16px; flex-wrap: wrap; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
header::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 120px at 85% 0%, rgba(37, 99, 235, .35), transparent 70%); }
header > * { position: relative; }
.header-logo { background: #fff; border-radius: 50%; width: 36px; height: 36px; padding: 2px; overflow: hidden; }
.header-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.header-title { font-size: 15px; letter-spacing: -.01em; }
.header-sub a { color: inherit; text-decoration: none; }
.header-sub a:hover { color: #fff; }
.header-actions { flex-wrap: wrap; justify-content: flex-end; }
.header-actions .btn { border-radius: 999px; padding: 7px 14px; }
.gh-sync { font-size: 12px; color: rgba(255, 255, 255, .6); display: inline-flex; align-items: center; gap: 7px; margin-right: 4px; }
.gh-sync:empty { display: none; }
.gh-sync::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.gh-sync[data-state="saving"]::before, .gh-sync[data-state="loading"]::before { background: var(--orange-light); animation: ghBlink 1s infinite; }
.gh-sync[data-state="error"]::before, .gh-sync[data-state="offline"]::before { background: #f87171; }
.gh-sync[data-state="local"]::before { background: rgba(255, 255, 255, .45); }
@keyframes ghBlink { 50% { opacity: .3; } }
.gh-google { background: #fff !important; color: var(--ink) !important; border-color: #fff !important; font-weight: 600; gap: 8px; }
.gh-google svg { width: 16px; height: 16px; }
.gh-google:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.gh-user { display: inline-flex; align-items: center; gap: 8px; padding: 3px 3px 3px 3px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.gh-user[hidden], .gh-google[hidden] { display: none !important; }
#gh-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; font-size: 12px; font-weight: 700; overflow: hidden; flex-shrink: 0; }
#gh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gh-user-name { font-size: 12px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-user .btn { padding: 5px 11px !important; }

/* Layout: steps on the left, the active view on the right */
body { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-content: start; }
body > header, body > .gh-footer { grid-column: 1 / -1; }
body > .view { grid-column: 2; min-width: 0; }
body > .gh-footer { grid-column: 2; }

/* Step arrows (vertical chevrons) */
.main-nav {
  grid-column: 1; grid-row: 2 / span 20; align-self: start; position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 0; padding: 26px 0 26px 22px;
  background: transparent; border: 0;
}
.main-nav-tab {
  --c1: #e8f0fe; --c2: #dbe7fd; --tx: #1d4ed8; --sub: #5b7bc4;
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 92px; text-align: left;
  padding: 16px 18px 30px; margin-top: -14px; border: 0; border-radius: 0; cursor: pointer;
  background: linear-gradient(160deg, var(--c1), var(--c2)); color: var(--tx); font-size: 13.5px; font-weight: 700;
  clip-path: polygon(0 0, 50% 16px, 100% 0, 100% calc(100% - 16px), 50% 100%, 0 calc(100% - 16px));
  transition: filter .2s, transform .25s cubic-bezier(.16, 1, .3, 1);
}
.main-nav-tab:first-child { margin-top: 0; padding-top: 14px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 50% 100%, 0 calc(100% - 16px)); border-radius: 14px 14px 0 0; }
.main-nav-tab:nth-child(2) { --c1: #3b82f6; --c2: #2563eb; --tx: #fff; --sub: rgba(255, 255, 255, .75); }
.main-nav-tab:nth-child(3) { --c1: #1e40af; --c2: #172f7a; --tx: #fff; --sub: rgba(255, 255, 255, .7); }
.main-nav-tab:nth-child(4) { --c1: #172f7a; --c2: #0f1f52; --tx: #fff; --sub: rgba(255, 255, 255, .68); }
.main-nav-tab:nth-child(5) { --c1: #0f1f52; --c2: #0a1538; --tx: #fff; --sub: rgba(255, 255, 255, .66); }
a.main-nav-tab, a.main-nav-tab:hover { text-decoration: none; }
.main-nav-tab:hover { filter: brightness(1.05) saturate(1.05); background: linear-gradient(160deg, var(--c1), var(--c2)); color: var(--tx); }
.main-nav-tab.active {
  --c1: #fb923c; --c2: #ea580c; --tx: #fff; --sub: rgba(255, 255, 255, .85);
  color: var(--tx); z-index: 2; filter: drop-shadow(0 8px 14px rgba(234, 88, 12, .28));
}
.main-nav-tab:not(.nav-help) + .main-nav-tab:not(.nav-help) { padding-top: 28px; }
.step-n {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, .22); color: inherit; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
}
.main-nav-tab:first-child:not(.active) .step-n { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, .25); }
.step-t { display: flex; flex-direction: column; line-height: 1.25; letter-spacing: -.01em; }
.step-t small { font-size: 11.5px; font-weight: 500; color: var(--sub); margin-top: 2px; }
.main-nav-tab.nav-help {
  margin-top: 22px; min-height: 0; padding: 11px 14px; clip-path: none; border-radius: 999px;
  background: #fff; color: var(--slate); box-shadow: inset 0 0 0 1px var(--border); font-weight: 600; filter: none;
}
.main-nav-tab.nav-help .step-n { width: 24px; height: 24px; font-size: 12px; background: #fff7ed; color: #ea580c; box-shadow: inset 0 0 0 1.5px #fdba74; }
.main-nav-tab.nav-help:hover { color: var(--ink); box-shadow: inset 0 0 0 1px #fdba74; }
.main-nav-tab.nav-help.active { background: #fff7ed; color: #c2410c; box-shadow: inset 0 0 0 1.5px #fb923c; filter: none; }
.main-nav-tab.nav-help.active .step-n { background: #ea580c; color: #fff; box-shadow: none; }

/* Panels, badges, buttons */
.panel, .builder-section, .output-panel, .status-row { border-radius: var(--radius); }
.panel-header { padding: 14px 18px; }
.panel-number { width: 26px; height: 26px; font-size: 11.5px; background: linear-gradient(160deg, #3b82f6, #1d4ed8); }
.panel-title { font-size: 14px; letter-spacing: -.01em; }
.badge { border-radius: 999px; padding: 3px 9px; }
.badge-saved { background: var(--navy-pale); color: var(--navy); border-color: rgba(37, 99, 235, .18); }
.badge-count { background: var(--surface); color: var(--slate); border-color: var(--border); }
.btn { border-radius: 999px; padding: 7px 14px; font-size: 12.5px; transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s; }
.btn-lg { border-radius: 999px; padding: 11px 22px; font-size: 13.5px; }
.btn-primary { box-shadow: 0 4px 14px rgba(37, 99, 235, .3); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(37, 99, 235, .35); }
.btn-green { background: var(--navy); border-color: var(--navy); box-shadow: 0 4px 14px rgba(37, 99, 235, .3); }
.btn-green:hover { background: var(--navy-light); }
.btn-amber { background: var(--ink); border-color: var(--ink); }
.btn-amber:hover { background: #000; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.toolbar { background: #fff; padding: 10px 14px; }
input.field-input, textarea.field-input, select.field-input { border-radius: 10px; padding: 9px 12px; }
textarea { font-size: 12.5px; }
.builder-section-hdr:hover { background: var(--surface); }
.sample-col { border-color: #c7d0dd; background: #fafbfd; border-radius: 12px; }
.entry-card { border-radius: 12px; }
.section-tip, .col-banner { border-radius: 10px; }
.status-row { border-radius: 999px; }
.status-dot.warn { background: var(--orange); box-shadow: 0 0 0 4px rgba(234, 88, 12, .14); }
.status-dot.ready { box-shadow: 0 0 0 4px rgba(22, 163, 74, .14); }
.output-tabs { border-radius: 999px; padding: 4px; }
.output-tab { border-radius: 999px; padding: 7px 16px; }
.output-tab.active { background: var(--ink); box-shadow: none; }
.output-panel-header { background: var(--navy-pale); }
.highlight-jd { background: rgba(37, 99, 235, .14); color: var(--navy-light); }
.highlight-cv { background: rgba(11, 16, 32, .07); color: var(--ink); }
/* A rounded box, not a pill: long messages wrap on phones and a pill's round ends would turn
   them into a circle. Nearly full width on small screens so they wrap less. */
#toast { border-radius: 16px; padding: 11px 18px; left: 50%; right: auto; transform: translate(-50%, 12px); box-shadow: var(--shadow-lg);
  width: max-content; max-width: min(460px, calc(100vw - 32px)); line-height: 1.45; text-align: center; box-sizing: border-box; }
#toast.show { transform: translate(-50%, 0); }
#toast.success { background: #15803d; }
#toast.info { background: var(--ink); }

/* Profile Builder footer actions */
.profile-next { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; }
.profile-next { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.profile-next > .btn { width: 100%; margin: 0; justify-content: center; text-align: center; box-sizing: border-box; }
.profile-next > .import-btn { order: 4; }
.profile-next > .btn:nth-child(3) { order: 2; }
.profile-next > .btn:nth-child(4) { order: 3; }
.profile-next > .clear-all-btn { order: 1; margin: 0; }
.profile-next > .continue-btn { order: 5; grid-column: 1 / -1; }
@media (max-width: 640px) { .profile-next { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.polish-body { padding: 16px 18px; }

/* Import from CV */
.import-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 16px 14px 20px; border-radius: var(--radius); background: linear-gradient(135deg, #eef4ff, #fff7ed); border: 1px solid #dbe5f7; }
.import-bar-text { min-width: 0; flex: 1 1 320px; line-height: 1.45; }
.import-bar-text strong { display: block; font-size: 14px; color: var(--ink); }
.import-bar-text span { font-size: 12.5px; color: var(--slate); }
.import-btn { cursor: pointer; gap: 7px; }
.import-btn .cp-icon { font-weight: 700; }
.import-btn.is-working { opacity: .8; cursor: progress; pointer-events: none; }
.import-btn.is-working .cp-icon { animation: polishSpin 1s linear infinite; display: inline-block; }

/* Personal details: hints, other links, language cards */
.field-hint { font-size: 12px; color: var(--slate); line-height: 1.45; margin: 2px 0 8px; }
.field-input + .field-hint { margin: 6px 0 0; }
.btn.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.field-item > .btn-sm { align-self: flex-start; }
select.field-input { width: 100%; border: 1px solid var(--border); font-family: 'DM Mono', monospace; font-size: 12px; color: var(--ink); line-height: 1.6; outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none; padding-right: 34px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6475' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center; }
select.field-input:focus { border-color: var(--navy); background-color: var(--white); }
.link-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2.4fr) 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.chip-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--slate); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.chip-x:hover, .chip-x:focus-visible { background: var(--red-pale); color: var(--red); }
.lang-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lang-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 3px 3px 12px; border-radius: 999px; background: var(--navy-pale); border: 1px solid #cfdcf6; font-size: 13px; color: var(--ink); }
.lang-name { font-weight: 600; }
.lang-chip-ro { padding-right: 3px; }
.lang-chip-ro:not(:has(.chip-x)) { padding-right: 12px; }
.lang-chip select { border: 0; background: transparent; font: inherit; font-size: 12px; color: var(--navy-light); cursor: pointer; padding: 2px 0; text-transform: capitalize; max-width: 130px; }
.lang-chip .chip-x { width: 24px; height: 24px; font-size: 16px; }
.lang-search { position: relative; }
.lang-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 260px; overflow-y: auto; }
.lang-list li { padding: 8px 12px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.lang-list li[aria-selected="true"], .lang-list li:hover { background: var(--navy-pale); color: var(--navy-light); }
@media (max-width: 640px) { .link-row { grid-template-columns: minmax(0, 1fr) 34px; } .link-row input[type=url] { grid-column: 1; } .link-row .chip-x { grid-row: 1 / span 2; grid-column: 2; } }

/* Bullet list editor (bullets are on screen only) */
.bl-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.bl-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) 30px; align-items: start; gap: 6px; }
.bl-dot { width: 7px; height: 7px; margin: 15px 0 0 6px; border-radius: 50%; background: var(--navy); }
textarea.field-input.bl-input { min-height: 0; resize: none; overflow: hidden; line-height: 1.6; field-sizing: content; }
.bl-item .chip-x { margin-top: 4px; opacity: .55; }
.bl-item:hover .chip-x, .bl-item:focus-within .chip-x { opacity: 1; }
.bl-sample { margin: 0; padding-left: 20px; font-size: 12px; color: var(--slate); line-height: 1.6; }
.bl-sample li { margin-bottom: 4px; }
.bl-body { min-width: 0; }
.bl-links:empty { display: none; }
.bl-links { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 0 14px; padding-left: 10px; border-left: 2px solid var(--navy-pale); }
.bl-link { display: grid; grid-template-columns: 18px minmax(110px, 1fr) minmax(0, 1.6fr) 30px; gap: 6px; align-items: center; }
.bl-link input.field-input { padding: 6px 10px; font-size: 11.5px; }
.bl-link-icon { font-size: 12px; opacity: .7; }
.bl-link-warn { grid-column: 2 / -1; font-size: 11.5px; color: var(--orange); }
.bl-tools { display: flex; gap: 6px; margin-top: 3px; }
.bl-tool { border: 0; background: transparent; padding: 2px 6px; border-radius: 6px; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--navy-light); cursor: pointer; opacity: 0; transition: opacity .15s; }
.bl-item:hover .bl-tool, .bl-item:focus-within .bl-tool, .bl-tool.bl-move { opacity: 1; }
.bl-tool:hover, .bl-tool:focus-visible { background: var(--navy-pale); opacity: 1; }
.bl-tool.bl-move { color: var(--orange); }
.bl-sample-link { display: block; font-size: 11px; color: var(--navy-light); }
.bl-link-url { grid-template-columns: 18px minmax(0, 1fr) 30px; }
.bl-link-url input[type=hidden] { display: none; }
.bl-sample li, .bl-sample-link { overflow-wrap: anywhere; }
.story-links { display: flex; flex-direction: column; gap: 6px; }
.story-links:empty { display: none; }
.story-link-add { opacity: 1; align-self: flex-start; }
/* Example column: long text and links wrap inside the box instead of spilling out */
.sample-col, .sample-col .field-item, .sample-col .entry-card { min-width: 0; }
.sample-col .field-input { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
@media (hover: none) { .bl-tool { opacity: 1; } }
@media (max-width: 640px) { .bl-link-url .chip-x { grid-row: auto !important; } .bl-link { grid-template-columns: 18px minmax(0, 1fr) 30px; } .bl-link input[type=url] { grid-column: 2; } .bl-link .chip-x { grid-row: 1 / span 2; grid-column: 3; } }

/* Work history: promotion tick and sort bar */
.promo-check { display: flex; align-items: center; gap: 10px; margin: -2px 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--orange-pale); border: 1px solid #fed7aa; font-size: 13px; color: var(--ink); cursor: pointer; }
.promo-check input { width: 17px; height: 17px; accent-color: var(--orange); flex: none; }
.wh-toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
.wh-toolbar span { margin-right: auto; font-size: 12px; color: var(--slate); }

/* Check spelling & continue */
.continue-btn .cp-arrow { font-size: 16px; margin-left: 2px; transition: transform .25s; }
.continue-btn.is-ready:hover .cp-arrow { transform: translateX(3px); }
.continue-btn.is-working { opacity: .85; cursor: progress; }
.continue-btn.is-working .cp-icon { animation: polishSpin 1s linear infinite; display: inline-block; }
.polish-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border-radius: 16px; background: linear-gradient(135deg, #fff7ed, #eef4ff); border: 1px solid #fed7aa; font-size: 13.5px; color: var(--ink); font-family: 'Inter', system-ui, sans-serif; }
.polish-banner[hidden] { display: none; }
.polish-banner-icon { font-size: 16px; }
.polish-banner #polish-banner-text { flex: 1; min-width: 200px; font-weight: 500; }
.polish-changes { flex-basis: 100%; }
.polish-changes ul { list-style: none; margin: 4px 0 2px; padding: 0; max-height: 260px; overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.polish-changes li { padding: 8px 12px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.polish-changes li:first-child { border-top: 0; }
.polish-changes del { background: #fee2e2; color: #b91c1c; text-decoration: line-through; border-radius: 3px; padding: 0 1px; }
.polish-changes ins { background: #dcfce7; color: #166534; text-decoration: none; border-radius: 3px; padding: 0 1px; }
.style-note { font-size: 12.5px; color: var(--slate); margin-top: 10px; }
.style-note a { color: var(--navy); font-weight: 600; text-decoration: none; }
.style-note a:hover { color: var(--orange); }
.help-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(160deg, var(--orange-light), var(--orange)); color: #fff; font-size: 12.5px; font-weight: 800; margin-right: 6px; vertical-align: 1px; }
.help-lead { color: var(--slate); font-size: 13.5px; margin-bottom: 12px; }
.help-sig { border-top: 1px solid var(--border); padding-top: 16px; }
.help-sig .sig-box { max-width: 460px; margin-top: 8px; }

/* Polish with AI */
.polish-btn { margin-bottom: 4px; }
.polish-btn.is-working { opacity: .8; cursor: progress; }
.polish-wait { display: flex; align-items: center; gap: 10px; color: var(--slate); font-family: 'Inter', system-ui, sans-serif; font-size: 13px; padding: 10px 0; }
.polish-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--navy-pale); border-top-color: var(--orange); animation: polishSpin .8s linear infinite; }
@keyframes polishSpin { to { transform: rotate(360deg); } }
.polish-msg { font-family: 'Inter', system-ui, sans-serif; font-size: 13px; padding: 10px 14px; border-radius: 12px; margin: 8px 0; }
.polish-msg.ok { background: var(--green-pale); color: #166534; }
.polish-msg.bad { background: var(--orange-pale); color: #9a3412; }
.polish-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; color: var(--ink); margin: 6px 0 8px; }
.polish-head span { font-size: 12.5px; color: var(--muted); }
.polish-note { font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; color: var(--slate); margin-bottom: 8px; }
.polish-report ul.polish-list { list-style: none; margin: 0 0 12px; padding: 0; max-height: 380px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.polish-list li { border-top: 1px solid var(--border); }
.polish-list li:first-child { border-top: 0; }
.polish-list label { display: grid; grid-template-columns: 18px 64px 1fr; gap: 10px; align-items: start; padding: 10px 12px; cursor: pointer; }
.polish-list label:hover { background: var(--surface); }
.polish-list input { margin-top: 3px; accent-color: var(--navy); }
.polish-line { font-size: 11px; color: var(--muted); padding-top: 2px; }
.polish-diff { font-family: 'Inter', system-ui, sans-serif; font-size: 13px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.polish-diff del { background: #fee2e2; color: #b91c1c; text-decoration: line-through; border-radius: 3px; padding: 0 1px; }
.polish-diff ins { background: #dcfce7; color: #166534; text-decoration: none; border-radius: 3px; padding: 0 1px; }
.polish-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.help-fine { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* Prompt Builder: one big job description box */
.jd-stage { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.jd-topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.jd-label::after { content: ''; display: block; width: 46px; height: 4px; border-radius: 4px; margin: 10px auto 0; background: linear-gradient(90deg, var(--orange-light), var(--orange)); }
.jd-label { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); text-align: center; }
.jd-titlebar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: -4px; }
textarea.jd-big {
  flex: none; width: 100%; min-height: 160px; height: clamp(200px, 40vh, 440px); resize: vertical; border: 1.5px solid var(--border); border-radius: 22px;
  padding: 22px 24px; font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.7; background: #fff;
  box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s;
}
textarea.jd-big:focus { outline: none; border-color: var(--orange-light); box-shadow: 0 0 0 5px rgba(251, 146, 60, .16), var(--shadow); }
textarea.jd-big::placeholder { font-style: normal; color: var(--muted); font-size: 16px; }
.jd-actions { justify-self: end; display: flex; gap: 8px; }
.copy-btn.is-copied { background: var(--green); border-color: var(--green); color: #fff; }

.jd-go { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.jd-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: #c2410c; background: var(--orange-pale); border: 1px solid #fed7aa; padding: 9px 14px; border-radius: 999px; font-family: 'Inter', system-ui, sans-serif; }
.jd-hint:has(.status-dot.ready) { display: none; }
.jd-hint .status-sep, .jd-hint #status-detail { display: none; }
.jd-copy { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.copy-prompt { gap: 8px; background: #eef1f6; color: #8a94a6; border: 1px solid transparent; box-shadow: none; }
.copy-prompt .cp-icon { font-size: 15px; line-height: 1; }
.copy-prompt[aria-disabled="true"]:hover { background: #e7ebf2; }
.copy-prompt.is-ready { background: linear-gradient(160deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .3); }
#copy-cv-btn.is-ready { background: linear-gradient(160deg, #1e40af, #172f7a); box-shadow: 0 6px 18px rgba(30, 64, 175, .3); }
.copy-prompt.is-ready:hover { filter: brightness(1.07); transform: translateY(-1px); }
.copy-prompt.is-copied { background: linear-gradient(160deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 6px 18px rgba(22, 163, 74, .28); }
.copy-prompt.is-copied:hover { filter: brightness(1.05); }
.prompt-templates { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.prompt-templates .panel { margin-bottom: 0; }
.prompt-templates-title { font-size: 13px; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: .1em; }
.panel-toggle { font-size: 12px; color: var(--navy); margin-left: 4px; font-weight: 600; }

/* Export to Word */
.export-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 20px; align-items: start; }
.export-side { position: sticky; top: 84px; display: flex; flex-direction: column; }
.style-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.style-label { font-size: 11.5px; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.style-label em { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); cursor: pointer; position: relative; transition: transform .15s, box-shadow .15s; padding: 0; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.swatch-custom { background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #3b82f6, #a855f7, #ef4444); overflow: hidden; }
.swatch-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.sig-box { display: flex; flex-direction: column; gap: 10px; }
.sig-preview { height: 92px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; padding: 8px; background: repeating-conic-gradient(#eef1f6 0% 25%, #fff 0% 50%) 0 0 / 16px 16px; }
.sig-preview img { max-height: 100%; max-width: 100%; object-fit: contain; }
.sig-preview span { font-size: 12px; color: var(--muted); }
.sig-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.doc-stage { background: #e9edf4; padding: 28px; min-height: 60vh; }
.doc-page {
  --doc-accent: #156082; --doc-accent-2: #215E99;
  background: #fff; max-width: 794px; margin: 0 auto; padding: 56px 64px 64px; box-shadow: 0 10px 40px rgba(11, 16, 32, .14);
  border-radius: 4px; color: #111; font-size: 14px; line-height: 1.55; font-family: 'Times New Roman', Times, serif;
}
.doc-letterhead { text-align: center; padding-bottom: 10px; border-bottom: 2px solid var(--doc-accent); margin-bottom: 18px; cursor: help; }
.doc-name { font-size: 26px; font-weight: 700; letter-spacing: .04em; color: var(--doc-accent); }
.doc-contact { font-size: 12px; color: #444; margin-top: 2px; }
.doc-h { font-weight: 700; text-transform: uppercase; color: var(--doc-accent); border-bottom: 1px solid var(--doc-accent); padding-bottom: 2px; margin: 18px 0 8px; font-size: 14.5px; letter-spacing: .02em; }
.doc-p { margin: 0 0 10px; text-align: justify; }
.ed { border-radius: 4px; outline: none; transition: background .15s, box-shadow .15s; min-height: 1.4em; cursor: text; }
.ed:hover { background: rgba(37, 99, 235, .06); }
.ed:focus { background: rgba(37, 99, 235, .08); box-shadow: 0 0 0 2px rgba(37, 99, 235, .35); }
.ed:empty::before { content: attr(data-ph); color: #9aa3b2; font-style: italic; }
.doc-table { border: 1px solid #b7c2d0; margin: 14px 0; font-size: 13px; }
.doc-tr { display: grid; grid-template-columns: 1fr 2fr 22px; border-top: 1px solid #b7c2d0; align-items: stretch; }
.doc-tr:first-child { border-top: 0; }
.doc-td { padding: 6px 8px; border-left: 1px solid #b7c2d0; }
.doc-td:first-child { border-left: 0; }
.doc-th { grid-template-columns: 1fr 2fr 22px; }
.doc-th .doc-td { font-weight: 700; text-align: center; color: var(--doc-accent-2); }
.doc-signoff { margin-top: 16px; margin-bottom: 4px; }
.doc-sig { display: block; height: 52px; width: auto; max-width: 240px; object-fit: contain; margin: 2px 0 2px; }
.doc-signname { font-weight: 700; }
.doc-para-row { position: relative; }
.doc-list { margin: 0 0 8px; }
.doc-list.doc-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.doc-list.doc-cols .doc-add { grid-column: 1 / -1; }
.doc-li { display: grid; grid-template-columns: 14px 1fr 22px; align-items: start; }
.doc-dot { line-height: 1.55; }
.doc-role { margin: 0 0 12px; position: relative; }
.doc-role-top { display: grid; grid-template-columns: 1fr auto 22px; gap: 10px; align-items: baseline; }
.doc-role-title { font-weight: 700; }
.doc-role-dates { font-weight: 700; text-align: right; white-space: nowrap; min-width: 4em; }
.doc-role-org, .doc-role-prev { font-style: italic; }
.doc-rm { width: 20px; height: 20px; border-radius: 50%; border: 0; background: transparent; color: #b0b8c6; font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; align-self: center; font-family: system-ui, sans-serif; }
.doc-li:hover .doc-rm, .doc-tr:hover .doc-rm, .doc-role-top:hover .doc-rm, .doc-para-row:hover .doc-rm, .doc-rm:focus { opacity: 1; }
.doc-rm:hover { background: #fee2e2; color: #dc2626; }
.doc-para-row { display: grid; grid-template-columns: 1fr 22px; }
.doc-add { border: 1px dashed #c3ccd9; background: transparent; color: #6b7686; font: 500 11.5px 'Inter', system-ui, sans-serif; padding: 3px 10px; border-radius: 999px; cursor: pointer; margin: 2px 0 6px 14px; opacity: .65; transition: opacity .15s, color .15s, border-color .15s; }
.doc-add:hover { opacity: 1; color: var(--orange); border-color: var(--orange-light); }
.doc-table .doc-add { margin: 6px 8px; }

/* How it works */
.help { max-width: 860px; display: flex; flex-direction: column; gap: 14px; }
.help-card { padding: 22px 26px; margin: 0; }
.help-card { border-left: 4px solid var(--orange-light); }
.help-card h2 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 10px; color: var(--ink); }
.help-card h3 { font-size: 14px; margin: 16px 0 8px; color: var(--ink); }
.help-card ol, .help-card ul { margin: 0 0 0 20px; color: var(--slate); font-size: 13.5px; line-height: 1.75; }
.help-card li + li { margin-top: 4px; }
.help-card a { color: var(--navy); }
.help-card code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; font-size: 12px; }

.gh-privacy { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .7); text-decoration: none; padding: 6px 10px; border-radius: 999px; transition: color .2s, background .2s; }
.gh-privacy svg { width: 13px; height: 13px; color: #4ade80; }
.gh-privacy:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.danger-zone { margin-top: 16px; padding: 14px 16px; border: 1px solid #fecaca; background: #fef2f2; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.danger-zone[hidden] { display: none; }
.danger-zone strong { display: block; font-size: 13.5px; color: #991b1b; }
.danger-zone span { font-size: 12.5px; color: #7f1d1d; }

/* Footer */
.gh-footer { text-align: center; padding: 26px 16px 34px; font-size: 12px; color: var(--muted); }
.gh-footer a { color: var(--slate); text-decoration: none; }
.gh-footer a:hover { color: var(--navy); }

@media (max-width: 1080px) {
  .export-grid { grid-template-columns: 1fr; }
  .export-side { position: static; }
}
@media (max-width: 900px) {
  header { padding: 10px 16px; }
  body { grid-template-columns: minmax(0, 1fr); }
  body > .view, body > .gh-footer { grid-column: 1; }
  .main-nav { grid-row: auto; position: sticky; top: 0; z-index: 90; flex-direction: row; align-items: center; padding: 10px 12px; background: var(--surface); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav-tab, .main-nav-tab:first-child, .main-nav-tab:not(.nav-help) + .main-nav-tab:not(.nav-help) {
    width: auto; min-height: 50px; flex: 0 0 auto; margin: 0 0 0 -12px; padding: 8px 24px 8px 26px; white-space: nowrap; font-size: 12.5px; border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
  }
  .main-nav-tab:first-child { margin-left: 0; padding-left: 14px; border-radius: 12px 0 0 12px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
  .main-nav-tab .step-t small { display: none; }
  .main-nav-tab .step-n { width: 24px; height: 24px; font-size: 11.5px; }
  .main-nav-tab.nav-help { margin: 0 0 0 10px; padding: 8px 12px; min-height: 0; clip-path: none; border-radius: 999px; }
  .export-side { position: static; }
  .doc-stage { padding: 12px; }
  .doc-page { padding: 28px 20px 36px; font-size: 13px; }
  .doc-list.doc-cols { grid-template-columns: 1fr; }
  textarea.jd-big { height: 36vh; padding: 16px; font-size: 14px; }
  .jd-titlebar { grid-template-columns: 1fr; justify-items: center; }
  .jd-titlebar > span:first-child { display: none; }
  .jd-actions { justify-self: center; }
  .header-sub { display: none; }
}
/* Phones and tablets: the step bar sits just under the header. It slides fully
   behind the header while moving down the page and comes back when moving up. */
@media (max-width: 900px) {
  .main-nav { top: var(--hdr-h, 0px); transition: transform .38s cubic-bezier(.22, .61, .36, 1), box-shadow .2s; will-change: transform; }
  .main-nav.nav-away { transform: translateY(calc(-100% - 2px)); pointer-events: none; }
}
/* Header labels and icons: icons show only on phones */
.hd-icon { display: none; width: 17px; height: 17px; }
.header-actions > .btn .hd-icon { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.gh-ctx { display: none; }
@media (max-width: 640px) {
  header { flex-wrap: nowrap; gap: 8px; padding: 8px 10px 8px 12px; min-height: 56px; }
  .header-brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .header-brand > div { flex: 1 1 auto; min-width: 0; }
  .header-logo { width: 34px; height: 34px; flex: none; }
  .header-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gh-ctx { display: block; position: relative; height: 24px; overflow: hidden; }
  .gh-ctx-t { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; font-weight: 700; line-height: 24px; letter-spacing: -.015em; color: #fff;
    transition: opacity .5s cubic-bezier(.22, .61, .36, 1), transform .5s cubic-bezier(.22, .61, .36, 1), filter .5s cubic-bezier(.22, .61, .36, 1); }
  .gh-ctx-t.in { opacity: 0; transform: translateY(9px); filter: blur(5px); }
  .gh-ctx-t.out { opacity: 0; transform: translateY(-9px); filter: blur(5px); }
  .header-actions { flex: none; flex-wrap: nowrap; gap: 4px; }
  .hd-label { display: none; }
  .hd-icon, .header-actions > .btn .hd-icon { display: block; width: 17px; height: 17px; margin: 0; }
  .header-actions .btn { width: 36px; height: 36px; padding: 0 !important; display: inline-grid; place-items: center; }
  .gh-google svg { width: 18px; height: 18px; }
  .gh-sync { font-size: 0; gap: 0; margin: 0; padding: 0 7px; height: 36px; }
  .gh-sync::before { width: 9px; height: 9px; }
  .gh-privacy { padding: 0; width: 36px; height: 36px; justify-content: center; }
  .gh-privacy svg { width: 17px; height: 17px; }
  .gh-user { gap: 4px; padding: 2px; }
  .gh-user-name { display: none; }
  #gh-avatar { width: 30px; height: 30px; }
  .gh-user .btn { width: 30px !important; height: 30px !important; border: 0 !important; background: transparent !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Touch screens: iPhone and iPad zoom into any text box smaller than 16px.
   16px text in form fields stops that, and pinch-zoom still works. */
@media (hover: none) and (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select { font-size: 16px !important; }
}

/* Headshot slot (Personal Information) */
.headshot { display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.headshot-pic { flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; border: 2px solid #dbe5f7; font-size: 34px; color: var(--muted); }
.headshot-pic img { width: 100%; height: 100%; object-fit: cover; }
.headshot-body { min-width: 0; flex: 1; }
.headshot-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.headshot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.headshot-actions label { cursor: pointer; }
.headshot-remove { color: var(--red) !important; }
@media (max-width: 520px) { .headshot { flex-direction: column; align-items: center; text-align: center; } .headshot-actions { justify-content: center; } }
.sig-slot .sig-preview { flex: none; width: 150px; height: 84px; }
@media (max-width: 520px) { .sig-slot .sig-preview { width: 100%; max-width: 260px; } }
/* Export: "Include my headshot" option and the photo in the CV preview */
.style-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 13px; }
.style-check[hidden] { display: none; }
.style-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.style-check small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.style-check input:disabled + span { opacity: .65; }
.doc-letterhead.has-photo { position: relative; text-align: left; padding-right: 108px; min-height: 86px; }
.doc-photo { position: absolute; right: 0; top: -6px; width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }

/* Profile Builder tools: expand/collapse all, voice guide, clear all, banner */
.import-bar[hidden] { display: none; }
.profile-tools { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.voice-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 8px; vertical-align: middle; border-radius: 50%; border: 1px solid #dbe5f7; background: #fff; color: var(--navy); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.voice-btn svg { width: 15px; height: 15px; }
.voice-btn:hover, .voice-btn:focus-visible { background: var(--navy-pale); }
.voice-btn.is-speaking { background: var(--navy); color: #fff; box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); animation: voicePulse 1.4s ease-out infinite; }
@keyframes voicePulse { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); } 80%, 100% { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0); } }
.clear-all-btn { color: var(--red) !important; margin-right: auto; }
.clear-all-btn:hover { border-color: var(--red) !important; }

/* Paste buttons under the copy buttons */
.jd-copy:has(.paste-reply) { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: center; }
.jd-copy:has(.paste-reply) .copy-prompt { justify-content: center; width: 100%; }
.copy-prompt.paste-reply { background: #fff; color: var(--navy); border: 1.5px solid #bfd3fb; box-shadow: 0 2px 8px rgba(37, 99, 235, .08); }
.copy-prompt.paste-reply:hover { border-color: var(--navy); transform: translateY(-1px); }
.copy-prompt.paste-reply.is-done { background: linear-gradient(160deg, #22c55e, #16a34a); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(22, 163, 74, .28); }
@media (max-width: 560px) {
  .jd-copy:has(.paste-reply) { grid-template-columns: minmax(0, 1fr); width: 100%; }
  #copy-cl-btn { order: 1; } #paste-cl-btn { order: 2; } #copy-cv-btn { order: 3; } #paste-cv-btn { order: 4; }
}
.reply-foot { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 12px auto 0; max-width: 760px; text-align: center; }
.reply-foot:not(:has(.reply-msg:not(:empty))):not(:has(#reply-go:not([hidden]))) { display: none; }
.reply-msg { font-size: 13px; color: var(--slate); line-height: 1.45; }
.reply-msg[data-kind="ok"] { color: #047857; font-weight: 600; }
.reply-msg[data-kind="error"] { color: #b91c1c; }
.reply-manual { max-width: 760px; margin: 12px auto 0; }
.reply-manual-label { display: block; font-size: 13px; color: var(--slate); margin-bottom: 6px; }
.reply-input { width: 100%; min-height: 96px; resize: vertical; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; font-size: 14px; background: #fff; }
.reply-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }

/* Export: Cover Letter / CV switch and Save to a folder */
.doc-switch-row { padding: 10px 18px 0; }
.doc-switch { display: inline-flex; padding: 4px; gap: 4px; background: #f1f5f9; border-radius: 999px; }
.doc-switch button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: var(--slate); cursor: pointer; }
.doc-switch button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.doc-switch button.has::after { content: ' ✓'; color: #059669; }
.save-body .field-input { width: 100%; margin-bottom: 10px; }
.save-where { font-size: 12.5px; color: var(--slate); line-height: 1.45; margin: 2px 0 10px; word-break: break-word; }
.save-where strong { color: var(--ink); }
.save-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.save-dlg { border: 0; border-radius: 18px; padding: 26px 26px 20px; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.save-dlg::backdrop { background: rgba(5, 7, 13, .45); }
.save-dlg h3 { font-size: 18px; margin: 0 0 10px; }
.save-dlg p { font-size: 14px; color: var(--slate); line-height: 1.55; margin: 0 0 10px; }
.save-dlg .save-dlg-note { font-size: 12.5px; color: #64748b; }
.save-dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.export-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .export-main .panel-header { flex-wrap: wrap; gap: 10px; }
  .export-main .panel-badges { width: 100%; }
  .export-main .panel-badges .btn { flex: 1 1 0; justify-content: center; }
}
.save-help p { margin: 0 0 8px; }
.save-help ol { margin: 0 0 8px; padding-left: 20px; font-size: 13px; line-height: 1.6; color: var(--slate); }
.save-help code { font-size: 12px; background: #f1f5f9; padding: 2px 6px; border-radius: 6px; word-break: break-all; color: var(--ink); }
.save-help .save-help-copy { padding: 2px 10px; font-size: 12px; min-height: 0; }
.save-help .save-help-note { font-size: 12.5px; color: #64748b; }

/* Export to Word: one style bar, a file save path bar, then the page */
.exp-wrap { max-width: 1100px; }
.exp-bar { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(15, 23, 42, .04); }
.exp-toolbar { position: sticky; top: calc(var(--hdr-h, 64px) + 8px); z-index: 20; }
.exp-toolbar .doc-switch { flex: none; }
.exp-style { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.exp-style .swatches { gap: 6px; flex-wrap: nowrap; }
.exp-style .swatch { width: 24px; height: 24px; }
.exp-style .exp-font { width: auto; max-width: 250px; padding-top: 8px; padding-bottom: 8px; }
.exp-style .exp-headshot { margin: 0; padding: 6px 10px; align-items: center; }
.exp-style .exp-headshot small { display: none; }
.exp-sig { font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.exp-sig:hover { text-decoration: underline; }
.exp-sig[hidden] { display: none; }
.exp-dl { display: flex; gap: 8px; margin-left: auto; }
.exp-pathbar { padding: 8px 14px; }
.exp-path-label { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.exp-path-fields { display: flex; align-items: center; gap: 6px; flex: 1 1 380px; min-width: 0; }
.exp-path-fields[hidden] { display: none; }
.exp-path-fields .field-input { flex: 1 1 0; min-width: 0; padding-top: 7px; padding-bottom: 7px; margin: 0; }
.exp-path-root { font-size: 13px; font-weight: 600; color: var(--slate); background: #f1f5f9; border-radius: 999px; padding: 5px 11px; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.exp-path-sep { color: #94a3b8; font-weight: 700; }
.exp-pathbar .save-where { margin: 0; flex: 1 1 100%; }
.exp-pathbar .save-where:empty { display: none; }
.exp-pathbar .save-actions { flex: none; }
.exp-wrap .doc-stage { border-radius: var(--radius); }
.doc-link { color: var(--doc-accent); text-decoration: underline; text-underline-offset: 2px; cursor: text; }
.save-dlg { margin: auto; position: fixed; inset: 0; height: fit-content; }
@media (max-width: 900px) {
  .exp-toolbar { position: static; }
  .exp-dl { margin-left: 0; width: 100%; }
  .exp-dl .btn { flex: 1 1 0; justify-content: center; }
  .exp-style .swatches { flex-wrap: wrap; }
  .exp-path-fields { flex-wrap: wrap; flex-basis: 100%; }
  .exp-path-fields .field-input { flex-basis: 140px; }
}
.exp-style .exp-headshot input:disabled + span small { display: inline; margin-left: 6px; }
.exp-wrap .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.exp-dl .btn[hidden] { display: none; }
.exp-style .exp-font { max-width: 300px; }
@media (min-width: 1100px) {
  .exp-toolbar { flex-wrap: nowrap; }
  .exp-style { flex: 0 1 auto; flex-wrap: nowrap; }
  .exp-style .exp-font { flex: 0 1 290px; min-width: 130px; text-overflow: ellipsis; }
  .exp-dl { flex: none; }
}

/* Style bar: colour dot and file save path open on click */
.exp-sticky { position: sticky; top: calc(var(--hdr-h, 64px) + 8px); z-index: 20; margin-bottom: 12px; }
.exp-sticky .exp-toolbar { position: static; margin-bottom: 0; }
.exp-sticky .exp-pathbar { margin: 6px 0 0; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); }
.exp-sticky .exp-pathbar[hidden] { display: none; }
.exp-pop { position: relative; }
.exp-pop-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.exp-pop-btn:hover, .exp-pop-btn.on { border-color: var(--navy); }
.exp-caret { font-size: 10px; color: #94a3b8; }
.exp-dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 0 0 1px var(--border); }
.exp-pop-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px; box-shadow: 0 16px 40px rgba(15, 23, 42, .16); }
.exp-pop-panel[hidden] { display: none; }
.exp-pop-panel .swatches { flex-wrap: nowrap; }
.exp-path-btn { max-width: 230px; }
#exp-path-label { overflow: hidden; text-overflow: ellipsis; }
.exp-headshot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.exp-headshot[hidden] { display: none; }
.exp-headshot input { width: 16px; height: 16px; accent-color: var(--navy); }
.exp-headshot input:disabled + span { opacity: .55; }
@media (max-width: 900px) { .exp-sticky { position: static; } .exp-pop-panel .swatches { flex-wrap: wrap; width: 230px; } }

/* Applications tracker */
.trk-wrap { max-width: 1280px; }
.trk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.trk-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.trk-sub { font-size: 13.5px; color: var(--slate); margin: 4px 0 0; }
.trk-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.trk-actions .field-input { width: 200px; padding-top: 8px; padding-bottom: 8px; }
.trk-wrap .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.trk-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.trk-chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--slate); cursor: pointer; }
.trk-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.trk-table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.trk-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1180px; }
.trk-table[hidden] { display: none; }
.trk-table th { position: sticky; top: 0; background: linear-gradient(160deg, #3b82f6, #2563eb); color: #fff; text-align: left; font-weight: 700; padding: 9px 8px; white-space: nowrap; font-size: 12.5px; }
.trk-table td { border-top: 1px solid #eef1f6; padding: 4px 6px; vertical-align: top; }
.trk-table tr:hover td { background: #fafcff; }
.trk-in { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 6px 7px; font: inherit; font-size: 13px; color: var(--ink); }
.trk-in:hover { border-color: #e2e8f0; }
.trk-in:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.trk-note-in { resize: vertical; min-height: 32px; line-height: 1.4; }
.trk-c-n { width: 34px; color: #94a3b8; font-weight: 600; padding-top: 11px !important; text-align: center; }
td.trk-c-status { min-width: 136px; }
.trk-pill { width: 100%; border: 0; border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; background: #e8f0fe; color: #1d4ed8; }
.trk-pill[data-status="To apply"] { background: #f1f5f9; color: #475569; }
.trk-pill[data-status="Interview"] { background: #fff7ed; color: #c2410c; }
.trk-pill[data-status="Offer"], .trk-pill[data-status="Accepted"] { background: #ecfdf5; color: #047857; }
.trk-pill[data-status="Unsuccessful"] { background: #fef2f2; color: #b91c1c; }
.trk-pill[data-status="Withdrawn"] { background: #f5f3ff; color: #6d28d9; }
td.trk-c-title { min-width: 190px; } td.trk-c-company { min-width: 170px; } td.trk-c-location { min-width: 130px; }
td.trk-c-applied, td.trk-c-followUp { width: 140px; } td.trk-c-salary { min-width: 120px; } td.trk-c-interviewer { min-width: 130px; }
td.trk-c-notes { min-width: 220px; } td.trk-c-link { min-width: 150px; position: relative; } td.trk-c-link .trk-in { padding-right: 24px; }
.trk-open { position: absolute; right: 10px; top: 9px; text-decoration: none; font-weight: 700; color: var(--navy); }
.trk-open[hidden] { display: none; }
td.trk-c-docs { min-width: 120px; padding-top: 10px !important; font-size: 12.5px; color: var(--ink); }
td.trk-c-docs small { display: block; color: #94a3b8; font-size: 11px; margin-top: 2px; word-break: break-word; }
.trk-docs { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.trk-doc-open { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1.5px solid #c7d2fe; border-radius: 999px; background: #fff; color: #1d4ed8; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .15s; }
.trk-doc-open:hover { background: #eef2ff; }
.trk-doc-plain { font-size: 12px; color: #64748b; }
/* The document you applied with, shown inside the page */
dialog.doc-view { position: fixed; inset: 0; margin: auto; width: min(900px, 96vw); height: min(92vh, 1100px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog.doc-view[open] { display: flex; flex-direction: column; }
dialog.doc-view::backdrop { background: rgba(5, 7, 13, .55); }
.doc-view-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid #e2e8f0; background: #fff; }
.doc-view-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-view-title strong { font-size: 16px; color: #0b1020; }
.doc-view-title small { font-size: 12.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-view-x { flex: none; width: 36px; height: 36px; border: 1px solid #e2e8f0; border-radius: 50%; background: #fff; color: #64748b; font-size: 15px; cursor: pointer; }
.doc-view-body { flex: 1; overflow: auto; background: #e9edf3; color: #5b6475; font-size: 14px; }
.doc-view-body > .docx-wrapper { background: #e9edf3; padding: 20px 0; }
.doc-view-body > .docx-wrapper > section.docx { box-shadow: 0 4px 18px rgba(15, 23, 42, .12); margin-bottom: 20px; }
@media (max-width: 700px) { .doc-view-head .btn { padding: 8px 12px; font-size: 13px; } .doc-view-body > .docx-wrapper { padding: 10px 0; } }
.trk-sponsor { display: inline-block; margin: 0 0 4px 7px; font-size: 10.5px; font-weight: 700; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 1px 7px; border-radius: 999px; }
td.trk-c-x { width: 30px; text-align: center; }
.trk-del { border: 0; background: none; color: #94a3b8; font-size: 18px; cursor: pointer; padding: 4px 6px; border-radius: 6px; margin-top: 3px; }
.trk-del:hover { color: #b91c1c; background: #fef2f2; }
.trk-empty { background: #fff; border: 1.5px dashed #c7d6f5; border-radius: var(--radius); padding: 34px 20px; text-align: center; color: var(--slate); font-size: 14px; }
.trk-empty[hidden] { display: none; }
@media (max-width: 760px) {
  .trk-actions { width: 100%; } .trk-actions .field-input { flex: 1 1 100%; width: auto; }
  .trk-table-wrap { background: none; border: 0; overflow: visible; }
  .trk-table, .trk-table tbody, .trk-table tr, .trk-table td { display: block; min-width: 0; width: auto; }
  .trk-table thead { display: none; }
  .trk-table tr { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
  .trk-table td { border: 0; padding: 2px 0 !important; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 8px; }
  .trk-table td::before { content: attr(data-label); font-size: 11.5px; font-weight: 600; color: #94a3b8; }
  .trk-table td.trk-c-n { display: none; }
  .trk-table td.trk-c-x { position: absolute; top: 6px; right: 6px; display: block; }
  .trk-table td.trk-c-x::before { content: none; }
  td.trk-c-status { width: auto; padding-right: 34px !important; }
}

/* Desktop: the step menu shows only its numbers and slides open over the page on hover or keyboard focus */
@media (min-width: 901px) {
  body { grid-template-columns: 92px minmax(0, 1fr); }
  .main-nav { width: 92px; z-index: 95; transition: width .38s cubic-bezier(.16, 1, .3, 1); }
  .main-nav:hover, .main-nav:focus-within { width: 262px; filter: drop-shadow(0 18px 30px rgba(11, 16, 32, .18)); }
  .main-nav-tab { overflow: hidden; }
  .main-nav-tab .step-t { white-space: nowrap; opacity: 0; transform: translateX(-8px); transition: opacity .18s, transform .3s cubic-bezier(.16, 1, .3, 1); }
  .main-nav:hover .step-t, .main-nav:focus-within .step-t { opacity: 1; transform: none; transition-delay: .1s; }
  .main-nav-tab.nav-help { padding-left: 21px; padding-right: 21px; }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) { .main-nav, .main-nav-tab .step-t { transition: none; } }

/* Headshot and signature side by side; explanations behind "?" */
.media-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.media-row .headshot { margin-bottom: 0; align-items: center; }
.hint-btn { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; vertical-align: 1px; border-radius: 50%; border: 1px solid #dbe5f7; background: #fff; color: var(--navy); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; padding: 0; }
.hint-btn:hover, .hint-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.hint-pop { margin: 4px 0 2px; }
.hint-pop[hidden] { display: none; }
.sig-preview { overflow: hidden; }
.sig-slot .sig-preview img { max-height: 68px; }
@media (max-width: 900px) { .media-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .media-row .headshot { flex-direction: row; text-align: left; align-items: center; } .media-row .headshot-actions { justify-content: flex-start; } .media-row .headshot-pic { width: 64px; height: 64px; } .sig-slot .sig-preview { width: 110px; height: 64px; } .sig-slot .sig-preview img { max-height: 52px; } }

/* Colour dot: the colour comes from --dot, so it is never blank */
.exp-dot { background: var(--dot, #156082) !important; }

/* Phones: compact Export toolbar, prompt template headers, section headers */
@media (max-width: 900px) {
  .exp-toolbar { gap: 10px; }
  .exp-toolbar .doc-switch { display: flex; width: 100%; }
  .exp-toolbar .doc-switch button { flex: 1 1 0; }
  .exp-style { width: 100%; gap: 8px; }
  .exp-style .exp-font { flex: 1 1 150px; max-width: none; min-width: 0; }
  .exp-path-btn { flex: 1 1 auto; max-width: none; justify-content: center; }
}
@media (max-width: 640px) {
  .prompt-templates .panel-header { flex-wrap: wrap; gap: 8px; }
  .prompt-templates .panel-desc { display: none; }
  .prompt-templates .panel-badges { width: 100%; padding-left: 40px; flex-wrap: wrap; }
  .sample-btn .sb-t { display: none; }
  .sample-btn { padding-left: 11px; padding-right: 11px; }
}
.media-row .headshot-actions .btn { white-space: normal; text-align: left; max-width: 100%; }

/* "Saved" notice with Copy path */
.save-notice { position: fixed; left: 50%; bottom: 22px; z-index: 400; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 12px; width: min(620px, calc(100% - 24px)); padding: 12px 12px 12px 18px; border-radius: 16px; background: #166534; color: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); font-family: 'Inter', system-ui, sans-serif; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.save-notice.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.save-notice-msg { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.4; min-width: 0; }
.save-notice-msg strong { font-weight: 700; word-break: break-word; }
.save-notice-msg span { color: rgba(255, 255, 255, .85); word-break: break-word; }
.save-notice-btn { border: 0; border-radius: 999px; padding: 9px 14px; background: #fff; color: #166534; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.save-notice-btn:hover { background: #ecfdf5; }
.save-notice-x { border: 0; background: none; color: rgba(255, 255, 255, .8); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.save-notice-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.save-notice-tip { grid-column: 1 / -1; color: rgba(255, 255, 255, .85); font-size: 12px; }
.save-notice-tip[hidden] { display: none; }
.exp-loc { flex: 1 1 100%; display: grid; gap: 4px; }
.exp-loc[hidden] { display: none; }
.exp-loc label { font-size: 12px; font-weight: 600; color: var(--slate); }
.exp-loc label span { color: #94a3b8; font-weight: 500; }
.exp-loc .field-input { width: 100%; padding-top: 7px; padding-bottom: 7px; margin: 0; }
@media (max-width: 520px) { .save-notice { grid-template-columns: minmax(0, 1fr) auto; } .save-notice-btn { grid-column: 1; grid-row: 2; justify-self: start; } .save-notice-x { grid-column: 2; grid-row: 1; } }
.trk-import { max-width: 640px; }
.trk-import .reply-input { margin: 4px 0 10px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.trk-import-file { font-size: 13px; }
.trk-import-info { margin-top: 10px !important; font-weight: 600; color: var(--ink) !important; }

/* Tracker: column filters and sorting */
.trk-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.trk-filter-row .trk-filters { margin-bottom: 0; }
#trk-clear-filters[hidden] { display: none; }
.trk-table th { padding: 0; }
.trk-th-btn { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; border: 0; background: none; color: #fff; font: inherit; font-weight: 700; font-size: 12.5px; padding: 9px 8px; cursor: pointer; text-align: left; white-space: nowrap; }
.trk-th-btn:hover { background: rgba(255, 255, 255, .12); }
.trk-th-btn.on { background: rgba(255, 255, 255, .2); box-shadow: inset 0 -3px 0 #fbbf24; }
.trk-th-caret { font-size: 11px; opacity: .85; margin-left: auto; padding-left: 4px; }
.trk-pop { position: absolute; z-index: 350; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: 0 18px 50px rgba(11, 16, 32, .22); font-size: 13px; }
.trk-pop-sort { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.trk-pop-sort:hover { background: #f1f5fb; }
.trk-pop-sort.on { color: var(--navy); background: #e8f0fe; }
.trk-pop-search { width: 100%; margin: 6px 0; padding-top: 7px; padding-bottom: 7px; }
.trk-pop-list { max-height: 240px; overflow-y: auto; border: 1px solid #eef1f6; border-radius: 10px; padding: 4px; }
.trk-pop-item { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.trk-pop-item:hover { background: #f8fafc; }
.trk-pop-item[hidden] { display: none; }
.trk-pop-item input { accent-color: var(--navy); width: 15px; height: 15px; flex: none; }
.trk-pop-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk-pop-item small { color: #94a3b8; font-size: 11.5px; }
.trk-pop-all { font-weight: 600; border-bottom: 1px solid #eef1f6; border-radius: 6px 6px 0 0; margin-bottom: 2px; }
.trk-pop-acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
@media (max-width: 760px) {
  .trk-table thead { display: block; margin-bottom: 10px; }
  .trk-table thead tr { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; background: none; border: 0; margin: 0; scrollbar-width: none; }
  .trk-table thead tr::-webkit-scrollbar { display: none; }
  .trk-table thead th { flex: none; border-radius: 999px; overflow: hidden; }
  .trk-table thead th.trk-c-x { display: none; }
  .trk-th-btn { padding: 7px 12px; }
}
/* Job country, at the left of the Job Description title */
.jd-country { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.jd-country label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.jd-country select { width: 150px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #e2e8f0; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: #0b1020; outline: none; }
.jd-country select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.jd-country small { flex-basis: 100%; font-size: 11.5px; color: #64748b; }
.jd-country small:empty { display: none; }
@media (max-width: 900px) { .jd-titlebar > .jd-country:first-child { display: flex; justify-content: center; text-align: center; } }
/* GetHired Pro (phase 4): the Prompt step in classic, free and Pro mode */
.gen-btn, .prompt-locked, .gen-upgrade { display: none !important; }
/* Free: Copy prompt + Paste reply as always (the prompt is built on the server, templates hidden).
   Pro: the AI writes the documents, so Write replaces Copy and Paste; the templates stay editable. */
body[data-gh-mode="pro"] .gen-btn { display: inline-flex !important; }
body[data-gh-mode="pro"] #copy-cl-btn, body[data-gh-mode="pro"] #copy-cv-btn, body[data-gh-mode="pro"] .paste-reply, body[data-gh-mode="pro"] #reply-manual { display: none !important; }
body[data-gh-mode="free"] .prompt-templates { display: none !important; }
body[data-gh-mode="free"] .prompt-locked { display: flex !important; }
body[data-gh-mode="free"].gen-out .gen-upgrade { display: inline-flex !important; }
.gen-btn { background: linear-gradient(160deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: 0 6px 18px rgba(109, 40, 217, .28); }
.gen-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.gen-btn.is-working { opacity: .85; cursor: progress; }
.gen-btn.is-working .cp-icon { animation: polishSpin 1s linear infinite; display: inline-block; }
/* Usage page (menu → Usage): the plan, CV + Jobs' monthly AI allowance, today's limits */
.usage-page { max-width: 640px; margin: 0 auto; padding: 28px 16px 48px; }
.usage-title { margin: 0 0 14px; font-size: 26px; letter-spacing: -.02em; color: #0b1020; }
.usage-plan { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; color: #5b6475; }
.usage-plan b { font-size: 16px; color: #0b1020; }
.usage-plan small { font-size: 13px; color: #64748b; }
.usage-card { margin-bottom: 16px; padding: 20px; border-radius: 18px; background: #fff; border: 1.5px solid #e2e8f0; box-shadow: 0 6px 20px rgba(15, 23, 42, .05); }
.usage-ai { border-color: #ddd6fe; background: #fcfbff; }
.usage-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6d28d9; margin-bottom: 6px; }
.usage-card:not(.usage-ai) .usage-kicker { color: #2563eb; }
.usage-big { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: #0b1020; margin-bottom: 10px; }
.usage-big span { font-size: 14px; font-weight: 600; color: #64748b; }
.usage-facts { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: #334155; }
.usage-rows { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.usage-row-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 14px; color: #334155; }
.usage-row-top b { color: #0b1020; white-space: nowrap; }
.usage-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #64748b; }
.usage-topup { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 14px; border-radius: 14px; background: #f5f3ff; border: 1.5px solid #ddd6fe; }
.usage-topup > div { flex: 1 1 240px; font-size: 14px; color: #0b1020; }
.usage-topup p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #5b6475; }
.usage-topup button { flex: 0 0 auto; padding: 12px 20px; border: 0; border-radius: 999px; background: linear-gradient(160deg, #8b5cf6, #6d28d9); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
@media (max-width: 520px) { .usage-topup button { flex-basis: 100%; } }
.usage-up { text-align: center; font-size: 14px; }
.usage-up a { color: #6d28d9; font-weight: 700; }
/* CV + Jobs: this month's AI allowance, under the Write buttons (click for Usage) */
.ai-usage { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 12px auto 0; padding: 4px 8px; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: #5b6475; cursor: pointer; text-align: center; }
.ai-usage[hidden], body:not([data-gh-mode="pro"]) .ai-usage { display: none !important; }
.ai-usage:hover #ai-usage-text { color: #6d28d9; text-decoration: underline; }
.ai-usage-bar { flex: none; width: 90px; height: 6px; border-radius: 999px; background: #ede9fe; overflow: hidden; }
.ai-usage-bar > span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #6d28d9); transition: width .4s; }
.ai-usage.is-low .ai-usage-bar > span { background: #f59e0b; }
.ai-usage.is-out .ai-usage-bar > span { background: #dc2626; }
.ai-usage.is-out #ai-usage-text { color: #b91c1c; }
.prompt-locked { flex-direction: column; align-items: center; gap: 8px; margin: 22px 0 8px; padding: 22px; text-align: center; border-radius: 18px; background: #fff; border: 1.5px dashed #c7d2fe; }
.prompt-locked strong { font-size: 16px; color: #0b1020; }
.prompt-locked span { max-width: 560px; font-size: 14px; line-height: 1.55; color: #5b6475; }
.prompt-locked .btn { margin-top: 6px; }
.ref-link { font-size: 13px; font-weight: 600; color: #64748b; text-decoration: none; }
.ref-link:hover { color: var(--navy, #2563eb); text-decoration: underline; }
/* Phones: buttons in the headshot and signature cards can wrap to two lines; a pill's round
   ends would squeeze the second line, so they get softer corners there */
@media (max-width: 640px) { .media-row .btn { border-radius: 16px; line-height: 1.3; text-align: left; } }
/* Free accounts: 10-second sponsored message while a prompt is copied (addon.js _openSpotModal) */
html.gsm-open { overflow: hidden; }
#gh-spot-modal { position: fixed; inset: 0; z-index: 2147482200; display: grid; place-items: center; padding: 16px; background: rgba(5, 7, 13, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; animation: gsmIn .25s ease both; }
#gh-spot-modal .gsm-box { width: min(520px, 100%); max-height: calc(100dvh - 24px); overflow: auto; background: #fff; border-radius: 22px; padding: 14px 16px 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 10px; }
#gh-spot-modal .gsm-top { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
#gh-spot-modal .gsm-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #64748b; background: #f1f5fb; padding: 4px 10px; border-radius: 999px; }
#gh-spot-modal .gsm-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; color: #fff; text-decoration: none; background: radial-gradient(420px 140px at 90% 0%, rgba(37, 99, 235, .55), transparent 70%), linear-gradient(135deg, #0b1020, #13204a); }
#gh-spot-modal .gsm-art { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #93c5fd; }
#gh-spot-modal .gsm-art svg { width: 34px; height: 34px; }
#gh-spot-modal .gsm-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#gh-spot-modal .gsm-copy strong { font-size: 18px; line-height: 1.25; }
#gh-spot-modal .gsm-copy span { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
#gh-spot-modal .gsm-copy em { font-style: normal; font-weight: 700; color: #93c5fd; }
#gh-spot-modal .gsm-bar { height: 4px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
#gh-spot-modal .gsm-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #6d28d9); transform-origin: left; animation: gsmBar 10s linear both; }
#gh-spot-modal .gsm-status { margin: 0; text-align: center; font-size: 14.5px; font-weight: 600; color: #475569; }
#gh-spot-modal .gsm-status.is-ok { color: #15803d; }
#gh-spot-modal .gsm-status.is-bad { color: #b91c1c; }
#gh-spot-modal .gsm-status.is-handoff { font-weight: 500; }
#gh-spot-modal .ai-handoff-head { margin-bottom: 8px; font-size: 14.5px; }
#gh-spot-modal .ai-go { padding: 8px 16px; font-size: 14px; }
#gh-spot-modal .ai-handoff-steps { margin-top: 8px; font-size: 13px; line-height: 1.45; }
/* After copying a prompt: open Claude or ChatGPT, then paste the reply back here */
.ai-handoff { max-width: 620px; margin: 14px auto 0; }
.ai-handoff[hidden] { display: none; }
.ai-handoff .ai-handoff-box { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1.5px solid #e2e8f0; box-shadow: 0 6px 18px rgba(15, 23, 42, .06); }
.ai-handoff-head { margin: 0 0 10px; text-align: center; font-size: 15px; font-weight: 700; color: #15803d; }
.ai-handoff-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ai-go { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .15s, filter .15s; }
.ai-go:hover { transform: translateY(-1px); filter: brightness(1.06); }
.ai-go-claude { background: #d97757; color: #fff; box-shadow: 0 6px 16px rgba(217, 119, 87, .3); }
.ai-go-chatgpt { background: #0d0d0d; color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.ai-handoff-steps { margin: 12px auto 0; padding-left: 22px; max-width: 460px; text-align: left; font-size: 13.5px; line-height: 1.5; color: #475569; }
.ai-handoff-steps li + li { margin-top: 2px; }
@media (max-width: 520px) { .ai-go { flex: 1 1 100%; justify-content: center; } }
/* Prompt ready, but the browser wanted a fresh click to copy it */
.copy-now { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0; }
.ai-handoff .copy-now { padding: 16px; border-radius: 16px; background: #fff; border: 1.5px solid #e2e8f0; }
.copy-now p { margin: 0; font-size: 15px; font-weight: 600; color: #0b1020; }
.copy-now-btn { padding: 12px 26px; border: 0; border-radius: 999px; background: linear-gradient(160deg, #3b82f6, #2563eb); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(37, 99, 235, .3); animation: pasteTipPulse2 1.6s ease-in-out infinite; }
@keyframes pasteTipPulse2 { 50% { box-shadow: 0 8px 26px rgba(37, 99, 235, .55); } }
@media (prefers-reduced-motion: reduce) { .copy-now-btn { animation: none; } }
/* First copy: the page dims and the Paste reply button is lit up with a short note */
#paste-tip { position: fixed; inset: 0; z-index: 2147482400; cursor: pointer; }
.paste-tip-hole { position: fixed; border-radius: 999px; box-shadow: 0 0 0 9999px rgba(5, 7, 13, .62), 0 0 0 3px #fbbf24, 0 0 26px 6px rgba(251, 191, 36, .55); pointer-events: none; transition: all .2s; animation: pasteTipPulse 1.6s ease-in-out infinite; }
@keyframes pasteTipPulse { 50% { box-shadow: 0 0 0 9999px rgba(5, 7, 13, .62), 0 0 0 5px #fbbf24, 0 0 34px 10px rgba(251, 191, 36, .45); } }
.paste-tip-bubble { position: fixed; padding: 14px 16px; border-radius: 16px; background: #fff; color: #0b1020; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); text-align: center; }
.paste-tip-bubble::before { content: ''; position: absolute; left: var(--arrow, 50%); top: -8px; width: 16px; height: 16px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.paste-tip-bubble.is-above::before { top: auto; bottom: -8px; }
.paste-tip-bubble p { position: relative; margin: 0 0 10px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.paste-tip-bubble .btn { position: relative; padding: 8px 22px; }
@media (prefers-reduced-motion: reduce) { .paste-tip-hole { animation: none; } }
#gh-spot-modal .gsm-pro { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#gh-spot-modal .gsm-upgrade { padding: 6px 14px; border: 0; border-radius: 999px; background: linear-gradient(160deg, #8b5cf6, #6d28d9); color: #fff; font-family: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; }
#gh-spot-modal .gsm-ref { font-size: 12.5px; font-weight: 600; color: #64748b; }
#gh-spot-modal .gsm-end { display: flex; flex-direction: column; gap: 10px; }
#gh-spot-modal .gsm-done { align-self: flex-end; min-width: 150px; padding: 11px 20px; border: 0; border-radius: 999px; background: linear-gradient(160deg, #3b82f6, #2563eb); color: #fff; font-family: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; }
/* With the steps: Continue sits bottom-right, beside them, instead of on a row of its own */
@media (min-width: 560px) {
  #gh-spot-modal .gsm-end.has-steps { display: grid; }
  #gh-spot-modal .gsm-end.has-steps > * { grid-area: 1 / 1; }
  #gh-spot-modal .gsm-end.has-steps .gsm-done { align-self: end; justify-self: end; width: 188px; min-width: 0; }
  /* the Claude / ChatGPT buttons fill the right-hand column above Continue, beside the steps */
  #gh-spot-modal .gsm-end.has-steps .ai-handoff-box { display: grid; grid-template-columns: minmax(0, 1fr) 188px; column-gap: 14px; align-items: start; }
  #gh-spot-modal .gsm-end.has-steps .ai-handoff-head { grid-column: 1 / -1; }
  #gh-spot-modal .gsm-end.has-steps .ai-handoff-steps { grid-column: 1; grid-row: 2; margin: 0; max-width: none; }
  #gh-spot-modal .gsm-end.has-steps .ai-handoff-btns { grid-column: 2; grid-row: 2; flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 56px; }
  #gh-spot-modal .gsm-end.has-steps .ai-go { justify-content: center; padding: 9px 10px; font-size: 13.5px; white-space: nowrap; }
}
#gh-spot-modal .gsm-done:disabled { background: #e2e8f0; color: #64748b; cursor: not-allowed; }
@media (max-width: 559px) { #gh-spot-modal .gsm-done { align-self: stretch; } #gh-spot-modal .gsm-pro { gap: 8px; } }
@keyframes gsmBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gsmIn { from { opacity: 0; } }
@media (max-width: 640px) { #gh-spot-modal .gsm-card { grid-template-columns: 1fr; gap: 10px; padding: 16px; } #gh-spot-modal .gsm-art { width: 48px; height: 48px; } #gh-spot-modal .gsm-copy strong { font-size: 17px; } }
/* Free daily limit reached: Copy buttons grey with a countdown */
.copy-prompt.is-locked, .copy-prompt.is-locked:hover { background: #e2e8f0 !important; color: #64748b !important; box-shadow: none !important; cursor: not-allowed; transform: none !important; filter: none !important; }
/* Pro: the round arrow under the Write buttons shows Copy prompt + Paste reply as a backup */
.pro-more { display: none !important; }
body[data-gh-mode="pro"] .pro-more { display: inline-grid !important; place-items: center; grid-column: 1 / -1; justify-self: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1.5px solid #c4b5fd; background: #fff; color: #6d28d9; cursor: pointer; box-shadow: 0 2px 8px rgba(109, 40, 217, .12); transition: background .2s, transform .2s; }
body[data-gh-mode="pro"] .pro-more:hover { background: #f5f3ff; }
body[data-gh-mode="pro"] .pro-more svg { transition: transform .25s; }
body[data-gh-mode="pro"].pro-fallback .pro-more svg { transform: rotate(180deg); }
body[data-gh-mode="pro"].pro-fallback #copy-cl-btn, body[data-gh-mode="pro"].pro-fallback #copy-cv-btn, body[data-gh-mode="pro"].pro-fallback .paste-reply { display: inline-flex !important; }
body[data-gh-mode="pro"].pro-fallback #reply-manual:not([hidden]) { display: block !important; }
/* Pro: Write stays on top; the backup Copy and Paste rows open underneath it */
body[data-gh-mode="pro"] .jd-copy .gen-btn { order: 1; }
body[data-gh-mode="pro"] .jd-copy #pro-more { order: 2; }
body[data-gh-mode="pro"] .jd-copy #copy-cl-btn, body[data-gh-mode="pro"] .jd-copy #copy-cv-btn { order: 3; }
body[data-gh-mode="pro"] .jd-copy .paste-reply { order: 4; }
/* Job country: a box you type into (click clears it, the list narrows as you type) */
.jd-country .jc-input { width: 170px; padding: 6px 30px 6px 12px; border-radius: 999px; border: 1.5px solid #e2e8f0; font: inherit; font-size: 13px; font-weight: 600; color: #0b1020; outline: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1020' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; }
.jd-country .jc-input:focus { cursor: text; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.jd-country .jc-input::placeholder { color: #94a3b8; font-weight: 500; }
/* Pro, wider screens: the round arrow sits to the right of Write my CV; backup rows open below */
@media (min-width: 561px) {
  body[data-gh-mode="pro"] .jd-copy:has(.paste-reply) { grid-template-columns: repeat(2, minmax(0, max-content)) 40px; align-items: center; }
  body[data-gh-mode="pro"] .jd-copy #gen-cl-btn { grid-row: 1; grid-column: 1; }
  body[data-gh-mode="pro"] .jd-copy #gen-cv-btn { grid-row: 1; grid-column: 2; }
  body[data-gh-mode="pro"] .jd-copy #pro-more { grid-row: 1; grid-column: 3; }
  body[data-gh-mode="pro"] .jd-copy #copy-cl-btn { grid-row: 2; grid-column: 1; }
  body[data-gh-mode="pro"] .jd-copy #copy-cv-btn { grid-row: 2; grid-column: 2; }
  body[data-gh-mode="pro"] .jd-copy #paste-cl-btn { grid-row: 3; grid-column: 1; }
  body[data-gh-mode="pro"] .jd-copy #paste-cv-btn { grid-row: 3; grid-column: 2; }
}

/* Headshot and signature buttons: icon + label on wide screens, round icons on phones.
   The "?" explanation lists what each icon does (shown on phones only). */
.hs-btn { display: inline-flex; align-items: center; gap: 7px; }
.hs-ic { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.hs-ic svg { width: 100%; height: 100%; display: block; }
.hs-keys { display: none; }
@media (max-width: 640px) {
  .media-row .headshot { gap: 14px; padding: 14px; align-items: flex-start; }
  .media-row .headshot-actions { gap: 10px; margin-top: 10px; }
  .media-row .headshot-actions .hs-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; max-width: none; }
  .hs-btn .hs-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hs-btn .hs-ic { width: 20px; height: 20px; }
  .hs-keys { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
  .hs-key { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
  .hs-key .hs-ic { width: 26px; height: 26px; padding: 5px; box-sizing: border-box; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--navy); }
  .sig-key-rm[hidden] { display: none; }
}

/* Import bar: CV file, LinkedIn or SEEK. Compact on phones (title and three buttons). */
.import-src { display: flex; gap: 8px; flex-wrap: wrap; }
.import-src .btn { justify-content: center; }
@media (max-width: 640px) {
  .import-bar { padding: 12px; gap: 10px; }
  .import-bar-text span { display: none; }
  .import-bar-text { flex-basis: 100%; }
  .import-src { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .import-src .btn { padding: 10px 8px; font-size: 14px; min-width: 0; white-space: nowrap; }
}
.imp-src { margin: auto; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 22px; border: 0; border-radius: 20px; box-shadow: 0 24px 70px rgba(11, 16, 32, .3); font-family: 'Inter', system-ui, sans-serif; color: var(--ink); box-sizing: border-box; }
.imp-src::backdrop { background: rgba(11, 16, 32, .45); }
.imp-src h3 { margin: 0 34px 10px 0; font-size: 18px; }
.imp-src ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--slate); }
.imp-src ol a { color: var(--navy); font-weight: 600; }
.imp-src-x { position: absolute; top: 14px; right: 14px; margin: 0; }
.imp-src-x button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 14px; color: var(--slate); }
.imp-src-file { width: 100%; justify-content: center; gap: 8px; cursor: pointer; box-sizing: border-box; }
.imp-src-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font-size: 12.5px; color: var(--muted); }
.imp-src-or::before, .imp-src-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.imp-src textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; font: inherit; font-size: 14px; resize: vertical; }
.imp-src-go { width: 100%; margin-top: 10px; justify-content: center; box-sizing: border-box; }
.imp-src-err { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 13px; line-height: 1.45; }
.imp-src-err[hidden] { display: none; }
/* LinkedIn and SEEK buttons in their own colours */
.import-src-btn { display: inline-flex; align-items: center; gap: 8px; border: 0 !important; color: #fff !important; font-weight: 700; box-shadow: 0 6px 16px rgba(11, 16, 32, .14); transition: transform .15s, box-shadow .15s, filter .15s; }
.import-src-btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 22px rgba(11, 16, 32, .2); }
.import-src-btn .src-ic { width: 17px; height: 17px; flex: none; }
.src-linkedin { background: #0A66C2 !important; }
.src-seek { background: linear-gradient(135deg, #E60278, #B4005E) !important; }
.import-src .btn { font-weight: 700; }

/* Job description top bar: on phones the badges sit beside the back link as icons */
.jd-badges .bdg-n { display: none; align-items: center; gap: 5px; }
.jd-badges .bdg-n svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 640px) {
  .jd-topbar { flex-wrap: nowrap; }
  .jd-topbar > .btn { min-width: 0; padding-left: 0; }
  .jd-badges { flex: none; gap: 6px; }
  .jd-badges .bdg-txt { display: none; }
  .jd-badges .bdg-n { display: inline-flex; }
  .jd-badges .badge { min-width: 34px; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
}

/* Job description from a LinkedIn or SEEK link */
.jd-fetch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jd-fetch .btn { justify-content: center; font-weight: 700; }
.jf-lead { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--slate); }
.jf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.jf-field input, .jf-field textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; font: inherit; font-size: 14px; font-weight: 500; resize: vertical; }
.jf-more[hidden], .jf-paste[hidden] { display: none; }
.jf-note { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--slate); }
.jf-go, .jf-paste { width: 100%; justify-content: center; box-sizing: border-box; margin-top: 10px; }
.jf-field textarea { min-height: 0; height: auto; }
.imp-src { overflow-y: auto; }
/* Tracker on phones: small column bubbles (no cell padding, short height, text centred) */
@media (max-width: 760px) {
  .trk-table thead th { padding: 0 !important; height: auto; line-height: 1; min-width: 0; width: auto; }
  .trk-table thead .trk-th-btn { padding: 6px 11px; font-size: 12px; line-height: 1.2; gap: 4px; align-items: center; }
  .trk-table thead .trk-th-caret { font-size: 9px; padding-left: 2px; }
}

/* Phones: words that only repeat an icon are hidden (the button keeps its name for screen readers) */
@media (max-width: 640px) {
  .m-hide { display: none !important; }
  .exp-style { flex-wrap: nowrap; gap: 8px; width: 100%; }
  .exp-style .exp-font { flex: 1 1 auto; min-width: 0; max-width: none; }
  .exp-style .exp-path-btn { flex: none; max-width: none; padding-left: 12px; padding-right: 10px; }
  .exp-sig { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; font-size: 16px; }
  .exp-sig .ui-icon { width: 18px; height: 18px; vertical-align: 0; }
  .exp-path-btn .ui-icon { width: 18px; height: 18px; }
}
/* Custom style used up (free and referral): a small lock on the colour and font controls */
.exp-style.is-locked .exp-pop:first-child, .exp-style.is-locked .exp-font { position: relative; }
.exp-style.is-locked #exp-colour-btn::after { content: ''; position: absolute; right: -4px; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: #0b1020 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 10px no-repeat; }
#exp-colour-btn { position: relative; }
.style-gate .btn-ghost { box-shadow: none; }
/* Sponsored message shown as a link banner (Dr Ajith's book): the picture, then the button line */
/* Instagram offer: Instagram's colours, and "Follow me" in a script like its logo */
#gh-spot-modal .gsm-card.is-ig { background: linear-gradient(45deg, #feda75 0%, #fa7e1e 22%, #d62976 48%, #962fbf 74%, #4f5bd5 100%); box-shadow: 0 12px 30px rgba(214, 41, 118, .3); }
#gh-spot-modal .gsm-card.is-ig .gsm-art { background: rgba(255, 255, 255, .22); color: #fff; }
#gh-spot-modal .gsm-card.is-ig .gsm-copy strong { text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
#gh-spot-modal .gsm-card.is-ig .gsm-copy span { color: rgba(255, 255, 255, .95); }
#gh-spot-modal .gsm-card.is-ig .gsm-copy em { font-family: 'Grand Hotel', 'Brush Script MT', cursive; font-weight: 400; font-size: 27px; line-height: 1.1; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
#gh-spot-modal .gsm-card.is-banner { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; background: #fbf7ee; }
#gh-spot-modal .gsm-card.is-banner .gsm-banner { display: block; width: 100%; height: auto; }
#gh-spot-modal .gsm-card.is-banner .gsm-art, #gh-spot-modal .gsm-card.is-banner .gsm-copy strong, #gh-spot-modal .gsm-card.is-banner .gsm-copy span { display: none; }
#gh-spot-modal .gsm-card.is-banner .gsm-copy { padding: 9px 16px 10px; border-top: 3px solid #6b4a2b; }
#gh-spot-modal .gsm-card.is-banner .gsm-copy em { color: #6b4a2b; }
#gh-spot-modal .gsm-banner[hidden] { display: none; }
/* Short screens: nothing in the sponsored pop-up is squeezed (it scrolls instead), and the banner
   picture scales down so the button line under it always shows */
#gh-spot-modal .gsm-box > * { flex-shrink: 0; }
#gh-spot-modal .gsm-card.is-banner .gsm-banner { max-height: 26dvh; object-fit: contain; background: #fbf7ee; }
/* Write buttons once the document is written for this job: green, and writing again asks first */
.gen-btn.is-done { background: linear-gradient(160deg, #22c55e, #15803d); box-shadow: 0 6px 18px rgba(21, 128, 61, .25); }
