/* DesignMyCV design system */
:root {
  /* DesignMyCV: deep indigo ink, white, and one accent (violet). Yellow is used only for matched keywords. */
  --paper: #FAFAFD;
  --surface: #FFFFFF;
  --ink: #26243B;
  --ink-2: #5B5A72;
  --ink-3: #8E8DA5;
  --line: #ECEBF3;
  --line-2: #D5D3E3;
  --brand: #5B3DF5;
  --brand-2: #4A2EDB;
  --brand-tint: #F1EFFF;
  --mint: #34D399;
  --mark: #FFE27A;
  --mark-soft: #FFF6CF;
  --good: #12875A;
  --mid: #B7741A;
  --bad: #D63A3A;
  --good-bg: #E3F6EC;
  --mid-bg: #FFF3E0;
  --bad-bg: #FDEBEB;
  --track: #ECEBF4;
  --display: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  --r-lg: 18px; --r-md: 12px; --r-sm: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; margin: 0; line-height: 1.12; }
a { color: var(--brand-2); }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--mark); color: var(--ink); }

input, textarea, select {
  font: inherit; color: inherit; width: 100%; padding: 11px 13px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #ACA4C6; }
input:hover, textarea:hover, select:hover { border-color: var(--line-2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-tint); }
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }

/* highlighter mark: the signature device */
.hl-mark { background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%); padding: 0 .15em; border-radius: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  padding: 10px 18px; border-radius: var(--r-sm); border: 1.5px solid var(--brand); font-weight: 600;
  background: var(--brand); color: #fff; transition: background .15s, border-color .15s, transform .06s;
}
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--brand-2); color: var(--brand); }
.btn.small { min-height: 36px; padding: 7px 13px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; color: var(--ink-2); border-color: transparent; min-height: 30px; padding: 4px 9px; }
.btn.danger:hover { color: var(--bad); background: var(--bad-bg); }
.btn svg { width: 17px; height: 17px; flex: none; }
.link-btn { background: none; border: 0; color: var(--brand-2); padding: 0; font-weight: 600; }
.link-btn:disabled { color: var(--ink-3); cursor: default; font-weight: 500; }

.msg { font-size: 13.5px; padding: 10px 13px; border-radius: var(--r-sm); margin-top: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: var(--bad-bg); color: var(--bad); }
.msg.ok { background: var(--good-bg); color: var(--good); }
.msg.dev { background: var(--mark-soft); color: #6B5400; }
.msg.dev b { font-family: var(--display); font-size: 17px; letter-spacing: .12em; color: var(--ink); }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-mark .pg { fill: var(--brand); }
.logo-mark .ln { fill: #fff; opacity: .75; }
.auth-hero .logo-mark .pg { fill: #fff; }
.auth-hero .logo-mark .ln { fill: var(--brand); opacity: .5; }

/* ---------- login ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); }
.auth-hero { position: relative; overflow: hidden; padding: 40px clamp(28px, 5vw, 72px); display: flex; flex-direction: column; gap: 36px; background: var(--brand); color: #E2DAFF; }
.auth-hero .logo { color: #fff; }
.auth-hero h1 { font-size: clamp(36px, 4.4vw, 60px); color: #fff; max-width: 13ch; }
.auth-hero .lead { font-size: 17.5px; line-height: 1.6; color: #CFC6EC; max-width: 46ch; margin: 18px 0 0; }
.hero-copy { margin-top: auto; }
.hero-stage { flex: 1; display: flex; align-items: flex-end; min-height: 300px; }

/* the scanned CV */
.sheet { width: min(100%, 480px); background: #fff; color: var(--ink); border-radius: 10px 10px 0 0; padding: 30px 32px 0; margin-bottom: -40px; box-shadow: 0 30px 60px rgba(16, 10, 44, .45); font-size: 12.5px; line-height: 1.5; position: relative; }
.sheet .s-name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.sheet .s-role { color: var(--ink-2); margin-bottom: 14px; }
.sheet .s-h { font-weight: 700; font-size: 11px; letter-spacing: .06em; border-bottom: 1px solid var(--ink); padding-bottom: 2px; margin: 14px 0 6px; }
.sheet p { margin: 0 0 4px; }
.sheet .k { position: relative; white-space: nowrap; }
.sheet .k::before { content: ''; position: absolute; inset: 10% -1px 6%; background: var(--mark); border-radius: 3px; z-index: 0; transform-origin: left center; transform: scaleX(0); animation: swipe .45s cubic-bezier(.6, 0, .2, 1) forwards; animation-delay: calc(.6s + var(--i) * .32s); }
.sheet .k span { position: relative; z-index: 1; }
.scan-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #4F6BFF, transparent); opacity: 0; animation: scan 2.6s ease-in-out .4s 1 forwards; }
.score-chip { position: absolute; right: -18px; top: 26px; background: #fff; border-radius: var(--r-md); padding: 10px 14px; box-shadow: 0 14px 30px rgba(16, 10, 44, .25); display: flex; align-items: center; gap: 10px; }
.score-chip .num { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--good); line-height: 1; font-variant-numeric: tabular-nums; }
.score-chip .lbl { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
@keyframes swipe { to { transform: scaleX(1); } }
@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.auth-panel { display: grid; place-items: center; padding: 48px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 390px; }
.auth-card h2 { font-size: 32px; }
.auth-card .sub { color: var(--ink-2); margin: 8px 0 28px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 4px; margin-bottom: 22px; }
.seg button { border: 0; background: transparent; padding: 9px; border-radius: var(--r-sm); font-weight: 600; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 8px; }
.seg button svg { width: 17px; height: 17px; }
.seg button.active { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(26, 18, 64, .12); }
.phone-row { display: flex; gap: 8px; }
.phone-row .cc { width: 72px; flex: none; text-align: center; background: var(--paper); font-weight: 600; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 4px 0 6px; }
.otp-boxes input { text-align: center; font-family: var(--display); font-size: 24px; font-weight: 700; padding: 12px 0; }
.otp-boxes input:not(:placeholder-shown), .otp-boxes input:valid:not([value=""]) { border-color: var(--line-2); }
.otp-meta { display: flex; justify-content: space-between; font-size: 13.5px; margin: 12px 0 20px; }
.sent-to { font-size: 14.5px; color: var(--ink-2); margin: 0 0 16px; }
.sent-to b { color: var(--ink); }
.field { margin-bottom: 16px; }
.terms { font-size: 12.5px; color: var(--ink-3); margin-top: 22px; text-align: center; }
.trust { display: flex; gap: 18px; justify-content: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--good); }

@media (max-width: 920px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 24px 22px 30px; gap: 22px; }
  .hero-stage { display: none; }
  .hero-copy { margin-top: 0; }
  .auth-hero h1 { font-size: 32px; max-width: none; }
  .auth-hero .lead { font-size: 15.5px; margin-top: 10px; }
  .auth-panel { padding: 30px 20px 40px; place-items: start center; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet .k::before { animation: none; transform: scaleX(1); }
  .scan-line { display: none; }
  * { transition: none !important; }
}

/* ---------- app shell ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 28px; padding: 0 24px; height: 64px; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; height: 100%; scrollbar-width: none; }
.nav button { position: relative; border: 0; background: transparent; padding: 0 14px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.nav button svg { width: 18px; height: 18px; }
.nav button:hover { color: var(--ink); }
.nav button.active { color: var(--brand); }
.nav button.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.user-chip { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.view { display: none; }
.view.active { display: block; }
.page-head { max-width: 1440px; margin: 0 auto; padding: 28px 28px 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- builder ---------- */
.builder { display: grid; grid-template-columns: minmax(360px, 500px) minmax(0, 1fr); gap: 28px; padding: 20px 28px 48px; max-width: 1440px; margin: 0 auto; }
.form-col { display: grid; gap: 12px; align-content: start; }
.toolbar { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; }
.toolbar input { flex: 1; min-width: 120px; font-weight: 600; border-color: transparent; background: transparent; }
.toolbar input:hover { border-color: var(--line); }
.progress { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); padding: 2px 4px; }
.progress .bar { flex: 1; }
.progress b { color: var(--ink); font-weight: 600; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
details.panel > summary { list-style: none; cursor: pointer; padding: 15px 18px; font-family: var(--display); font-weight: 600; font-size: 16.5px; display: flex; align-items: center; gap: 12px; border-radius: var(--r-md); }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: ''; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
details.panel[open] > summary::after { transform: rotate(-135deg) translate(-2px, -1px); }
details.panel > summary:hover { background: #FBFAFF; }
.sec-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.done .sec-dot { background: var(--good); border-color: var(--good); }
.done .sec-dot::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.sec-opt { font-family: var(--body); font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.panel .body { padding: 2px 18px 18px; display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 5px; line-height: 1.45; }
.entry { border: 1px solid var(--line); border-left: 3px solid var(--brand-tint); border-radius: var(--r-sm); padding: 14px; display: grid; gap: 12px; background: #FCFBFF; }
.entry-head { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

.preview-col { position: sticky; top: 84px; align-self: start; display: grid; gap: 14px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.preview-head .muted { font-size: 13.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.preview-head .muted::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.paper-wrap { background: #E9E4F7; border-radius: var(--r-lg); padding: 28px; max-height: calc(100vh - 250px); overflow: auto; background-image: radial-gradient(#D9D2EE 1px, transparent 1px); background-size: 16px 16px; }
.paper { background: #fff; width: 100%; max-width: 794px; min-height: 1060px; margin: 0 auto; padding: 56px 62px; box-shadow: 0 1px 2px rgba(26, 18, 64, .06), 0 12px 32px rgba(26, 18, 64, .12); color: #000; font-size: 13.5px; line-height: 1.32; }
.paper h1 { font-family: inherit; font-size: 26px; text-align: center; margin: 0 0 3px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.paper .hl { text-align: center; font-size: 14.5px; margin: 0 0 3px; }
.paper .ct { text-align: center; font-size: 12.5px; margin: 0 0 8px; }
.paper h2 { font-family: inherit; font-size: 14.5px; text-transform: uppercase; border-bottom: 1px solid #000; margin: 13px 0 5px; padding-bottom: 1px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.paper p { margin: 0 0 4px; }
.paper .it { margin: 7px 0 0; }
.paper .dt { font-style: italic; margin-bottom: 2px; }
.paper ul { margin: 0 0 4px; padding-left: 20px; }
.paper li { margin: 0 0 1px; }

/* live ATS check in builder */
.ats { padding: 20px; }
.ats h3 { font-size: 18px; }
.ats .sub { font-size: 13.5px; color: var(--ink-2); margin: 4px 0 12px; }
.score-row { display: flex; align-items: center; gap: 16px; margin: 16px 0 8px; }
.score-ring { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; flex: none; }
.score-row b { font-family: var(--display); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; font-size: 13.5px; }
.checks li { display: flex; gap: 8px; align-items: baseline; }
.checks .y { color: var(--good); font-weight: 700; } .checks .n { color: var(--ink-3); }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kw span { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--surface); color: var(--ink-2); border: 1px dashed var(--line-2); }
.kw span.hit { background: var(--mark); color: var(--ink); border: 1px solid transparent; font-weight: 600; }

@media (max-width: 1100px) {
  .builder { grid-template-columns: 1fr; }
  .preview-col { position: static; }
  .paper-wrap { max-height: none; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 14px; gap: 10px; height: auto; flex-wrap: wrap; padding-top: 10px; }
  .topbar .logo { flex: 1; }
  .nav { order: 3; flex-basis: 100%; height: 46px; margin: 0 -14px; padding: 0 6px; }
  .nav button { padding: 0 10px; font-size: 13.5px; }
  .user-chip span { display: none; }
  .page-head { padding: 20px 16px 0; }
  .page-head h1 { font-size: 23px; }
  .builder { padding: 14px 14px 40px; gap: 18px; }
  .grid2, .checks { grid-template-columns: 1fr; }
  .paper-wrap { padding: 12px; }
  .paper { padding: 26px 20px; min-height: 0; font-size: 12px; }
}

/* ---------- converters ---------- */
.tool { max-width: 680px; margin: 0 auto; padding: 44px 20px 60px; }
.tool-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.tool-flow { display: flex; align-items: center; gap: 6px; flex: none; }
.ftype { width: 46px; height: 56px; border-radius: 6px 14px 6px 6px; display: grid; place-items: end center; padding-bottom: 8px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 12px; }
.ftype.pdf { background: #C0392B; } .ftype.doc { background: #2B579A; }
.tool-flow svg { width: 20px; height: 20px; color: var(--ink-3); }
.tool h2 { font-size: 30px; }
.tool .sub { color: var(--ink-2); margin: 4px 0 0; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 46px 24px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--brand-2); background: var(--brand-tint); }
.drop .icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.drop .icon svg { width: 24px; height: 24px; }
.drop .big { font-weight: 600; font-size: 16.5px; }
.drop .big u { color: var(--brand-2); text-underline-offset: 3px; }
.drop .small { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.file-picked { display: none; margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; align-items: center; gap: 12px; }
.file-picked.show { display: flex; }
.file-picked::before { content: ''; width: 34px; height: 40px; flex: none; border-radius: 4px 10px 4px 4px; background: var(--brand-tint); }
.file-picked .name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-picked .size { font-size: 13px; color: var(--ink-3); }
.tool-note { font-size: 13px; color: var(--ink-3); margin-top: 16px; display: flex; gap: 8px; align-items: flex-start; }
.tool-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

#view-pdf2word.active { display: grid; grid-template-columns: 1fr 1fr; max-width: 1440px; margin: 0 auto; gap: 0 12px; }
@media (max-width: 900px) { #view-pdf2word.active { grid-template-columns: 1fr; } #view-pdf2word .tool + .tool { padding-top: 0; } }

/* ---------- my resumes ---------- */
.list-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 60px; }
.list-head { display: flex; justify-content: space-between; align-items: center; margin: 36px 0 18px; gap: 12px; }
.list-head h2 { font-size: 30px; }
.resume-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px; transition: border-color .15s; }
.resume-row:hover { border-color: var(--line-2); }
.resume-row::before { content: ''; width: 38px; height: 48px; flex: none; border-radius: 3px; background: #fff; border: 1px solid var(--line-2); background-image: linear-gradient(var(--line-2) 2px, transparent 2px); background-size: 100% 7px; background-position: 0 8px; background-clip: content-box; padding: 6px; }
.resume-row .t { flex: 1; font-weight: 600; min-width: 0; }
.resume-row .d { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.empty { text-align: center; color: var(--ink-2); padding: 56px 20px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.empty b { display: block; font-family: var(--display); font-size: 19px; color: var(--ink); margin-bottom: 4px; }

/* ---------- ATS score checker ---------- */
.checker { max-width: 860px; margin: 0 auto; padding: 0 20px 64px; display: grid; gap: 14px; }
.checker-intro { padding: 36px 0 10px; }
.checker-intro h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 20ch; }
.checker-intro .sub { color: var(--ink-2); margin: 10px 0 0; max-width: 60ch; font-size: 16px; }
.checker-form { padding: 20px; }
#cvResult:not([hidden]) { display: grid; gap: 14px; }
.checker-form label { margin-top: 18px; }
.result-head { padding: 26px; display: flex; gap: 28px; align-items: center; }
.big-ring { width: 136px; height: 136px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center; }
.big-ring span { font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.big-ring small { color: var(--ink-3); font-size: 12.5px; }
.result-sum { flex: 1; min-width: 0; }
.grade { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.cats { display: grid; gap: 8px; margin-top: 14px; }
.cat { display: grid; grid-template-columns: 136px 1fr 46px; gap: 12px; align-items: center; font-size: 13.5px; }
.cat b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; transition: width .6s cubic-bezier(.3, .7, .2, 1); }
.match-box { text-align: center; padding-left: 26px; border-left: 1px solid var(--line); }
.match-num { font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.result-block { padding: 22px; }
.result-block h3 { font-size: 20px; margin-bottom: 14px; }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.issues li { display: flex; gap: 12px; padding: 13px 14px; border-radius: var(--r-sm); border-left: 4px solid transparent; }
.issues .ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.issues .critical { background: var(--bad-bg); border-left-color: var(--bad); } .issues .critical .ic { background: var(--bad); }
.issues .warn { background: var(--mid-bg); border-left-color: var(--mid); } .issues .warn .ic { background: var(--mid); }
.issues .good { background: var(--good-bg); border-left-color: var(--good); padding: 10px 14px; } .issues .good .ic { background: var(--good); }
.it-title { font-weight: 600; }
.it-title em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .7); }
.it-fix { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.seen > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 17px; font-weight: 600; }
.seen > summary::-webkit-details-marker { display: none; }
.seen > summary::after { content: 'Show'; margin-left: auto; font-family: var(--body); font-size: 13.5px; color: var(--brand-2); font-weight: 600; }
.seen[open] > summary::after { content: 'Hide'; }
.seen pre { white-space: pre-wrap; font-family: Consolas, 'Courier New', monospace; font-size: 12.5px; line-height: 1.55; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; max-height: 380px; overflow: auto; margin: 14px 0 0; }
.cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; background: var(--brand); border-color: var(--brand); color: #fff; padding: 22px 24px; }
.cta b { font-family: var(--display); font-size: 19px; }
.cta .hint { color: #CFC6EC; }
.cta .btn { background: var(--mark); color: var(--ink); border-color: var(--mark); flex: none; }
.cta .btn:hover { background: #FFE966; }
@media (max-width: 640px) {
  .checker-intro { padding-top: 24px; }
  .result-head { flex-direction: column; text-align: center; padding: 22px 18px; }
  .cat { grid-template-columns: 108px 1fr 40px; text-align: left; }
  .match-box { border-left: 0; padding: 14px 0 0; border-top: 1px solid var(--line); width: 100%; }
  .cta { flex-direction: column; align-items: stretch; text-align: center; }
  .tool-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- admin ---------- */
.admin-tag { font-family: var(--body); font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-tint); padding: 3px 9px; border-radius: 99px; letter-spacing: 0; }
.denied { max-width: 520px; margin: 80px auto; padding: 0 20px; text-align: center; }
.denied h1 { font-size: 30px; margin-bottom: 10px; }
.denied p { color: var(--ink-2); margin: 0 0 22px; }
.denied code { background: var(--brand-tint); padding: 1px 6px; border-radius: 4px; font-size: 13.5px; }
.dash { max-width: 1440px; margin: 0 auto; padding: 26px 28px 60px; display: grid; gap: 16px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { font-size: 30px; }
.dash-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 13.5px; }
.dash-actions { display: flex; gap: 8px; }
a.btn { text-decoration: none; }
.kpis { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; min-width: 0; }
.kpi-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.kpi-num { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-foot { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.hero-kpi { grid-row: span 2; background: var(--brand); border-color: var(--brand); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; }
.hero-kpi .kpi-label { color: #CFC6EC; font-size: 15px; }
.hero-kpi .kpi-foot { color: #B9A8F0; font-size: 13.5px; }
.hero-num { font-family: var(--display); font-size: 76px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #2FBF71; box-shadow: 0 0 0 0 rgba(47, 191, 113, .6); animation: pulse 2s infinite; flex: none; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-grid.three { grid-template-columns: 1fr 1fr 1.2fr; }
.chart-card { padding: 18px 20px; min-width: 0; }
.chart-card h3 { font-size: 17px; }
.chart-card > .hint { margin: 2px 0 12px; }
.chart { position: relative; }
.chart .ax { font-size: 11px; fill: var(--ink-3); font-family: var(--body); }
.chart .hit { cursor: default; }
.chart .hit:hover { fill: rgba(74, 99, 208, .07); }
.chart-note { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.hbars { display: grid; gap: 12px; }
.hbar-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; }
.hbar-top b { font-variant-numeric: tabular-nums; }
.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; max-height: 330px; overflow: auto; }
.feed li { display: flex; gap: 10px; align-items: flex-start; }
.feed li[data-user] { cursor: pointer; }
.feed li[data-user]:hover b { color: var(--brand-2); text-decoration: underline; }
.feed .hint { margin: 1px 0 0; font-size: 12.5px; }
.f-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); margin-top: 7px; flex: none; }
.users-card { padding: 0; overflow: hidden; }
.users-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 18px 20px 0; flex-wrap: wrap; }
.users-head h3 { font-size: 19px; }
.users-head .hint { margin: 2px 0 0; }
.users-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.users-tools input { width: 300px; max-width: 100%; }
.users-tools select { width: auto; }
.filters { display: flex; gap: 6px; padding: 14px 20px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.filters button { border: 1.5px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.filters button:hover { border-color: var(--line-2); color: var(--ink); }
.filters button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.table-wrap { overflow-x: auto; }
.utable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 880px; }
.utable th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 10px 14px; background: #FBFAFF; border-bottom: 1px solid var(--line); white-space: nowrap; }
.utable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.utable tbody tr { cursor: pointer; }
.utable tbody tr:hover, .utable tbody tr:focus-visible { background: #F8F6FF; outline: none; }
.utable .num { text-align: right; font-variant-numeric: tabular-nums; }
.utable th:first-child, .utable td:first-child { padding-left: 20px; }
.u-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.u-av, .d-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.u-txt { display: grid; min-width: 0; }
.u-txt b { font-weight: 600; white-space: nowrap; }
.u-txt span { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.muted-cell { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.pill { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--brand-tint); color: var(--brand); margin-left: 4px; }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.online { display: inline-flex; align-items: center; gap: 7px; color: var(--good); font-weight: 600; }
.empty-row { text-align: center; color: var(--ink-3); padding: 40px 14px !important; }
.drawer-back { position: fixed; inset: 0; background: rgba(26, 18, 64, .35); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--surface); z-index: 31; box-shadow: -20px 0 50px rgba(26, 18, 64, .18); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s ease; }
.drawer.open { transform: none; }
.drawer-head { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.d-avatar { width: 46px; height: 46px; font-size: 16px; }
.drawer-head h2 { font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-head .hint { margin: 2px 0 0; }
.drawer-body { padding: 18px 20px 24px; overflow-y: auto; flex: 1; }
.drawer-body h4 { font-family: var(--display); font-size: 16px; margin: 22px 0 10px; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; word-break: break-word; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.mini-stats div { background: var(--paper); border-radius: var(--r-sm); padding: 10px 12px; }
.mini-stats b { display: block; font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.mini-stats span { font-size: 12.5px; color: var(--ink-2); }
.d-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.d-list li { display: flex; justify-content: space-between; gap: 10px; }
.d-list .hint { margin: 0; white-space: nowrap; }
.drawer .feed { max-height: none; }
.drawer-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn.danger-outline { color: var(--bad); border-color: #EBC3BE; }
.btn.danger-outline:hover { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.tooltip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; padding: 7px 10px; border-radius: var(--r-sm); line-height: 1.4; opacity: 0; transition: opacity .1s; }
.tooltip.show { opacity: 1; }
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .hero-kpi { grid-row: auto; grid-column: span 2; }
  .dash-grid, .dash-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dash { padding: 18px 14px 50px; }
  .hero-num { font-size: 60px; }
  .kpi-num { font-size: 25px; }
  .users-tools input { width: 100%; }
  .admin .user-chip span, .admin .user-chip a { display: none; }
}

/* ---------- builder: design panel ---------- */
.import-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.design-dot { border-color: var(--brand); background: var(--brand-tint); }
.tpl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tpl { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 8px 6px 10px; display: grid; gap: 3px; justify-items: center; text-align: center; transition: border-color .15s; }
.tpl:hover { border-color: var(--line-2); }
.tpl.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.tpl b { font-size: 13px; font-weight: 600; }
.tpl > span:last-child { font-size: 11px; color: var(--ink-3); line-height: 1.3; }
.thumb { width: 100%; max-width: 64px; aspect-ratio: 210 / 297; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 6px 6px; display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; }
.thumb i { display: block; height: 2px; border-radius: 1px; background: #CBC3E5; }
.thumb i.n { height: 4px; width: 60%; background: #3A3160; } .thumb i.n.a { background: var(--acc); } .thumb i.n.sm { height: 3px; width: 50%; }
.thumb i.s { width: 45%; height: 2px; } .thumb i.c { align-self: center; } .thumb i.caps { width: 70%; }
.thumb i.h { height: 3px; width: 40%; background: #3A3160; margin-top: 3px; } .thumb i.h.a { background: var(--acc); }
.thumb i.u { box-shadow: 0 2px 0 -1px var(--acc); width: 100%; } .thumb i.u2 { box-shadow: 0 3px 0 -1px var(--acc); width: 100%; height: 2px; }
.thumb i.t { height: 2px; margin-top: 2px; } .thumb i.gap { margin-top: 6px; } .thumb i.dbl { height: 3px; border-top: 1px solid var(--acc); border-bottom: 1px solid var(--acc); background: none; }
.thumb i.w { width: 85%; } .thumb i.s2 { width: 60%; }
.design-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line-2); }
.sw.on { box-shadow: 0 0 0 2.5px var(--ink); }
.seg-sm { display: inline-flex; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg-sm button { border: 0; background: transparent; padding: 6px 11px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.seg-sm button.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(26, 18, 64, .12); }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: ord; }
.order-list li { display: flex; align-items: center; gap: 4px; background: var(--paper); border-radius: 6px; padding: 4px 6px 4px 10px; font-size: 14px; counter-increment: ord; }
.order-list li span { flex: 1; }
.order-list li span::before { content: counter(ord) '. '; color: var(--ink-3); }
.order-list .btn:disabled { opacity: .25; }
.order-tools { display: flex; gap: 18px; margin-top: 8px; font-size: 13.5px; flex-wrap: wrap; }

/* assist buttons */
.assist-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.assist { background: var(--mark-soft); color: var(--ink); border-color: #F1D86A; }
.btn.assist:hover { background: var(--mark); border-color: #E8C93A; }
.btn.assist svg { color: #8A6A00; }
.kw .kw-add { font: inherit; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--surface); color: var(--ink-2); border: 1px dashed var(--line-2); cursor: pointer; }
.kw .kw-add:hover { border-color: var(--brand-2); color: var(--brand); border-style: solid; }

/* preview frame */
.paper-wrap { position: relative; }
.frame-box { position: relative; width: 100%; max-width: 794px; margin: 0 auto; overflow: hidden; }
.frame-box iframe { position: absolute; top: 0; left: 0; border: 0; background: #fff; transform-origin: 0 0; box-shadow: 0 1px 2px rgba(26, 18, 64, .06), 0 12px 32px rgba(26, 18, 64, .12); pointer-events: none; }
.page-badge { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 12px; margin: -14px auto 12px; width: max-content; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; font-size: 13px; font-weight: 600; color: var(--good); }
.page-badge.over { color: var(--mid); }

/* suggestions */
.modal.wide { max-width: 640px; }
.modal #sgBody { display: grid; gap: 8px; max-height: 56vh; overflow-y: auto; }
.sg-opt, .sg-check { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; margin: 0; font-weight: 400; font-size: 14.5px; line-height: 1.5; cursor: pointer; color: var(--ink); }
.sg-opt:has(input:checked), .sg-check:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.sg-opt input, .sg-check input { width: auto; margin-top: 4px; flex: none; accent-color: var(--brand); }
.sg-loading { display: flex; gap: 10px; align-items: center; padding: 30px 0; color: var(--ink-2); justify-content: center; }
.spinner.dark { border-color: rgba(26, 18, 64, .15); border-top-color: var(--brand); }
.sg-diff { display: grid; gap: 8px; }
.sg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; }
.sg-row .was { color: var(--ink-3); background: var(--paper); border-radius: 6px; padding: 8px 10px; }
.sg-row .now { background: var(--good-bg); border-radius: 6px; padding: 8px 10px; }
.sg-tip { display: block; font-size: 12.5px; color: var(--mid); margin-top: 3px; }

/* share */
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-size: 14px; background: var(--paper); }
.share-to { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.shared-tag { color: var(--good); font-weight: 600; }
.resume-row .btn { flex: none; }

/* job tracker */
.job-stats { max-width: 1440px; margin: 16px auto 0; padding: 0 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.js-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 16px; min-width: 130px; }
.js-item b { display: block; font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }
.js-item span { font-size: 13px; color: var(--ink-2); }
.js-item.due { border-color: var(--mid); background: var(--mid-bg); }
.board { max-width: 1440px; margin: 16px auto 0; padding: 0 28px 48px; display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; }
.col { background: #EEEAF9; border-radius: var(--r-md); padding: 10px; min-height: 320px; display: flex; flex-direction: column; gap: 8px; transition: background .15s, box-shadow .15s; }
.col.drop { background: var(--brand-tint); box-shadow: inset 0 0 0 2px var(--brand-2); }
.col header { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 15px; padding: 2px 4px 4px; }
.col-n { margin-left: auto; font-family: var(--body); font-size: 12.5px; color: var(--ink-2); background: var(--surface); border-radius: 99px; padding: 1px 8px; }
.col-dot { width: 9px; height: 9px; border-radius: 50%; }
.st-saved { background: #8C85A8; } .st-applied { background: #2F7DD1; } .st-interview { background: var(--mid); } .st-offer { background: var(--good); } .st-rejected { background: #CCC4E6; }
.col-body { display: grid; gap: 8px; align-content: start; flex: 1; }
.col-empty { font-size: 13px; color: var(--ink-3); text-align: center; padding: 20px 8px; border: 1.5px dashed #D6CFEC; border-radius: var(--r-sm); margin: 0; }
.jcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; cursor: grab; display: grid; gap: 3px; font-size: 13.5px; }
.jcard:hover { border-color: var(--line-2); }
.jcard.dragging { opacity: .45; }
.jc-top { display: flex; align-items: center; gap: 6px; }
.jc-top b { font-weight: 700; font-size: 14.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jc-link { color: var(--ink-3); display: grid; } .jc-link:hover { color: var(--brand-2); } .jc-link svg { width: 16px; height: 16px; }
.jc-role { color: var(--ink); }
.jc-meta { color: var(--ink-3); font-size: 12.5px; }
.jc-foot { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--ink-2); margin-top: 4px; flex-wrap: wrap; }
.fu { color: var(--ink-2); } .fu.over { color: var(--bad); font-weight: 600; }
.jc-move { margin-top: 6px; padding: 5px 8px; font-size: 12.5px; border-width: 1px; }
@media (max-width: 1100px) { .tpl-grid { grid-template-columns: repeat(5, minmax(76px, 1fr)); overflow-x: auto; } }
@media (max-width: 600px) {
  .tpl-grid { grid-template-columns: repeat(3, 1fr); }
  .design-row, .sg-row { grid-template-columns: 1fr; }
  .board, .job-stats { padding-left: 14px; padding-right: 14px; }
  .board { grid-template-columns: repeat(5, 82vw); scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .resume-row { flex-wrap: wrap; }
  .resume-row .t { flex-basis: calc(100% - 52px); }
}

/* ---------- profile dialog ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(26, 18, 64, .55); backdrop-filter: blur(3px); z-index: 40; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal-back[hidden] { display: none; }
.modal { width: 100%; max-width: 480px; background: var(--surface); border-radius: var(--r-lg); padding: 28px; box-shadow: 0 30px 70px rgba(16, 10, 44, .35); }
.modal h2 { font-size: 25px; }
.modal .sub { color: var(--ink-2); margin: 6px 0 22px; }
.modal form { display: grid; gap: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.req { color: var(--bad); }
.opt { color: var(--ink-3); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; cursor: pointer; position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .15s; }
.chips span:hover { border-color: var(--line-2); }
.chips input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.avatar { cursor: pointer; border: 0; }
.nav .admin-link { color: var(--brand); }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; transition: all .2s; z-index: 50; box-shadow: 0 10px 30px rgba(26, 18, 64, .25); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--bad); }
.preview-head .muted[data-state="unsaved"]::before { background: var(--mid); }

/* ---------- languages ---------- */
html.i18n-pending body { visibility: hidden; }
body, input, textarea, select, button { font-family: var(--body), 'Noto Sans Devanagari', 'Noto Sans Arabic', sans-serif; }
h1, h2, h3, .grade, .kpi-num, .hero-num { font-family: var(--display), 'Noto Sans Devanagari', 'Noto Sans Arabic', sans-serif; }
.lang-pick { position: relative; display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--ink-2); }
.lang-pick svg { width: 17px; height: 17px; flex: none; pointer-events: none; }
.lang-pick select { width: auto; border: 1.5px solid transparent; background: transparent; padding: 6px 4px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.lang-pick select:hover { border-color: var(--line); }
.auth-lang { display: flex; justify-content: flex-end; margin: -20px 0 18px; }
@media (max-width: 920px) { .auth-lang { margin-top: 0; } }

/* right-to-left (Arabic) */
[dir="rtl"] .nav button.active::after { left: 10px; right: 10px; }
[dir="rtl"] .phone-row { flex-direction: row-reverse; }
[dir="rtl"] .phone-row .cc, [dir="rtl"] #phone, [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"], [dir="rtl"] #shUrl { direction: ltr; text-align: left; }
[dir="rtl"] .otp-boxes { direction: ltr; }
[dir="rtl"] details.panel > summary::after { margin-left: 0; margin-right: auto; }
[dir="rtl"] .issues li { border-left: 0; border-right: 4px solid transparent; }
[dir="rtl"] .issues .critical { border-right-color: var(--bad); } [dir="rtl"] .issues .warn { border-right-color: var(--mid); } [dir="rtl"] .issues .good { border-right-color: var(--good); }
[dir="rtl"] .it-title em { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .entry { border-left: 1px solid var(--line); border-right: 3px solid var(--brand-tint); }
[dir="rtl"] .match-box { border-left: 0; border-right: 1px solid var(--line); padding-left: 0; padding-right: 26px; }
[dir="rtl"] .cat b { text-align: left; }
[dir="rtl"] .tool-flow svg, [dir="rtl"] .btn svg[data-flip] { transform: scaleX(-1); }
[dir="rtl"] .score-chip { right: auto; left: -18px; }
[dir="rtl"] .toast { direction: rtl; }
[dir="rtl"] .order-list li { padding: 4px 10px 4px 6px; }
[dir="rtl"] .copy-row input { direction: ltr; }
@media (max-width: 640px) { [dir="rtl"] .match-box { border-right: 0; padding-right: 0; } }

/* ---- features switched off in the admin panel (classes come from /config.js) ---- */
.off-checker [data-view="checker"], .off-letter [data-view="letter"], .off-jobs [data-view="jobs"], .off-convert [data-view="pdf2word"],
.off-letter .letters-head, .off-letter #letterList, .off-import #importBtn, .off-word_download #dlDocx, .off-share #shareBtn, .off-share [data-share],
.off-suggestions .assist-row, .off-suggestions [data-assist], .off-login_phone .seg [data-ch="phone"], .off-login_email .seg [data-ch="email"],
.off-login_phone .seg, .off-login_email .seg { display: none !important; }

.feat-card { margin-bottom: 22px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 28px; margin-top: 14px; }
.feat-group h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #667); }
.feat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line, #E7E2F6); cursor: pointer; }
.feat span { display: flex; flex-direction: column; }
.feat b { font-weight: 500; font-size: 14px; }
.feat small { color: var(--muted, #667); font-size: 12px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 22px; border-radius: 22px; background: #CCC4E6; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch:checked { background: var(--good); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid #2F7DD1; outline-offset: 2px; }

/* ---- ratings (app dialog + admin) ---- */
.off-reviews .rate-btn { display: none !important; }
.rate-btn svg { width: 15px; height: 15px; }
.rate-modal { text-align: left; }
.star-pick { display: flex; gap: 6px; margin: 18px 0 4px; }
.star-pick button { font-size: 38px; line-height: 1; background: none; border: 0; padding: 0 2px; color: #DAD4EE; cursor: pointer; transition: transform .1s, color .1s; }
.star-pick button.on { color: #F5B301; }
.star-pick button:hover { transform: scale(1.12); }
.star-word { font-weight: 600; color: var(--ink-2); min-height: 22px; margin-bottom: 14px; }
.rev-card { margin-bottom: 22px; }
.rev-summary { margin: 12px 0; font-size: 15px; }
.rev-summary b { font-family: var(--display); font-size: 26px; }
.pill.warn { background: var(--mid-bg); color: var(--mid); padding: 2px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; }
.rev-list { display: grid; gap: 0; max-height: 420px; overflow-y: auto; }
.rev-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.rev-row.ok { background: linear-gradient(90deg, var(--good-bg), transparent 60%); }
.rev-stars { color: #F5B301; letter-spacing: 1px; }
.rev-stars span { color: #DAD4EE; }
.rev-body small { color: var(--ink-3); display: block; margin-top: 3px; }
.rev-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .rev-row { grid-template-columns: 1fr; } .rev-acts { justify-content: flex-start; } }
.rate-btn { padding-inline: 10px; }
@media (max-width: 1600px) { .rate-btn .rate-txt { display: none; } #who { display: none; } }
@media (max-width: 1520px) { .nav button { padding: 0 10px; font-size: 14px; } .nav button svg { display: none; } }

.danger-zone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.danger-link { color: var(--bad); }
.danger-zone .hint { font-size: 12.5px; color: var(--ink-3); }

/* email field feedback */
.email-hint { font-size: 13px; margin-top: 6px; line-height: 1.4; }
.email-hint.err { color: var(--bad); }
.email-hint.warn .link-btn { color: var(--mid); text-decoration: underline; }
input[aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 3px var(--bad-bg) !important; }
.msg.warn { background: var(--mid-bg); color: #6B4510; }
.msg.warn .link-btn { color: #6B4510; text-decoration: underline; font-weight: 700; }
.msg .small-note { font-size: 13px; margin-top: 4px; opacity: .85; }
.engine-alert { background: var(--bad-bg); color: var(--bad); border: 1px solid #EBC3BE; border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; line-height: 1.5; }

/* admin panel inside the app */
.view-admin { padding: 0 !important; max-width: none !important; }
.view-admin iframe { display: block; width: 100%; height: calc(100vh - 64px); border: 0; background: var(--paper); }
.embedded .topbar { display: none !important; }

/* styled confirm dialog (ask.js) */
.ask-back { z-index: 60; }
.ask-modal { max-width: 420px; padding: 24px; animation: askIn .16s ease-out; }
.ask-msg { margin: 0 0 18px; font-size: 1rem; line-height: 1.55; color: var(--ink); white-space: pre-line; }
.btn.ask-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ask-danger:hover { filter: brightness(.94); }
@keyframes askIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ask-modal { animation: none; } }

/* ---------- DesignMyCV wordmark (hand-drawn lettering, no font needed) ---------- */
.logo-word { height: 32px; width: auto; flex: none; display: block; overflow: visible; }
.logo-word .w-i { stroke: var(--ink); } .logo-word .w-m { stroke: var(--brand); }
.logo-word .w-g { stroke: #1FB573; } .logo-word .w-fg { fill: #1FB573; }
.logo-word .w-fi { fill: var(--ink); } .logo-word .w-fm { fill: var(--brand); }
.auth-hero .logo-word .w-i { stroke: #fff; } .auth-hero .logo-word .w-m { stroke: #C9BBFF; }
.auth-hero .logo-word .w-g { stroke: #6EE7B7; } .auth-hero .logo-word .w-fg { fill: #6EE7B7; }
.auth-hero .logo-word .w-fi { fill: #fff; } .auth-hero .logo-word .w-fm { fill: #C9BBFF; }
.lp-nav .logo-word { height: 32px; } .lp-foot .logo-word { height: 32px; }
.logo { gap: 8px; }
@media (max-width: 440px) { .lp-nav .logo-word { height: 26px; } .topbar .logo-word { height: 26px; } }

/* admin: home page box (social links + live counter) */
.soc-grid { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 18px; margin: 14px 0; }
.soc-item { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
.soc-item input, .soc-row input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.soc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.soc-row small { display: block; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.soc-item textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; resize: vertical; }
#maintBox.maint-on { border-color: #F2B8B5; background: #FFF8F7; }
#maintBox.maint-on #maintState { color: #B42318; font-weight: 700; }
