:root {
  --app-bg: #eef2f7;
  --panel: #ffffff;
  --ink: #142033;
  --muted: #718096;
  --line: #e3e8ef;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--app-bg); color: var(--ink); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { height: 76px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #0f172a; color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 4px 22px rgba(15,23,42,.18); }
.brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; font-size: 22px; background: linear-gradient(135deg, #fff, #dbeafe); color: #0f172a; }
.brand-wrap h1 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.brand-wrap p { margin: 2px 0 0; font-size: 12px; color: #aeb9cc; }
.top-actions { display: flex; gap: 9px; }
.btn { border: 0; border-radius: 11px; padding: 10px 15px; font-weight: 750; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: #0f172a; }
.btn-secondary { background: #1e293b; color: #fff; border: 1px solid #334155; }
.btn-ghost { color: #cbd5e1; background: transparent; }
.workspace { max-width: 1620px; margin: 0 auto; display: grid; grid-template-columns: minmax(430px, 600px) minmax(600px, 1fr); min-height: calc(100vh - 76px); }
.editor-panel { padding: 24px; border-right: 1px solid #dde3eb; overflow-y: auto; }
.preview-panel { padding: 24px 30px 60px; background: #dfe5ed; min-width: 0; }
.panel-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 14px rgba(15,23,42,.035); padding: 22px; margin-bottom: 16px; }
.eyebrow { display: block; font-size: 10px; font-weight: 850; letter-spacing: .16em; color: var(--accent); margin-bottom: 4px; }
.section-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-heading-row h2, .section-title h2 { font-size: 18px; margin: 0; letter-spacing: -.025em; }
.template-count { padding: 6px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }
.muted, .section-title p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.template-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 17px; }
.template-card { padding: 8px; border: 2px solid transparent; border-radius: 13px; background: #f8fafc; text-align: left; transition: .18s ease; }
.template-card:hover { background: #f1f5f9; transform: translateY(-2px); }
.template-card.active { border-color: var(--accent); background: var(--accent-soft); }
.template-thumb { height: 94px; border-radius: 7px; background: white; box-shadow: 0 2px 9px rgba(15,23,42,.08); overflow: hidden; position: relative; }
.template-card strong { display: block; font-size: 11px; margin: 8px 2px 0; }
.template-card span { display: block; font-size: 9px; color: var(--muted); margin: 2px; }
/* mini template art */
.thumb-slate::before { content:""; position:absolute; inset:0 62% 0 0; background:#172033; } .thumb-slate::after { content:""; position:absolute; left:44%; right:9%; top:13%; height:7%; background:#172033; box-shadow: 0 15px 0 #d8dee7, 0 30px 0 #e6eaf0, 0 45px 0 #e6eaf0, 0 60px 0 #e6eaf0; }
.thumb-minimal::before { content:""; position:absolute; left:10%; right:10%; top:12%; height:9%; background:#20242c; box-shadow:0 18px 0 #d2d7df,0 37px 0 #20242c,0 48px 0 #e5e7eb,0 58px 0 #e5e7eb; }
.thumb-executive::before { content:""; position:absolute; inset:0 0 auto 0; height:25%; background:#181818; } .thumb-executive::after{content:"";position:absolute;left:10%;right:10%;top:37%;height:4%;background:#c99b37;box-shadow:0 16px 0 #dedede,0 27px 0 #ececec,0 46px 0 #dedede;}
.thumb-creative::before { content:""; position:absolute; left:-10%; top:-34%; width:70%; height:80%; background:var(--accent); border-radius:50%; } .thumb-creative::after{content:"";position:absolute;left:14%;right:10%;top:40%;height:6%;background:#1f2937;box-shadow:0 15px 0 #dbe0e7,0 28px 0 #e7eaf0,0 44px 0 #dbe0e7;}
.thumb-tech::before { content:""; position:absolute; inset:0 0 67% 0; background:#0f172a; } .thumb-tech::after{content:"";position:absolute;left:9%;right:9%;top:45%;height:5%;background:#0f172a;box-shadow:0 13px 0 #e3e7ed,0 24px 0 #e3e7ed,0 38px 0 #0f172a;}
.thumb-ats::before { content:""; position:absolute; left:10%; right:10%; top:13%; height:6%; background:#111827; box-shadow:0 12px 0 #e3e7ed,0 28px 0 #111827,0 39px 0 #e3e7ed,0 50px 0 #e3e7ed,0 66px 0 #111827; }
.accent-control { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.accent-control strong { display:block; font-size: 12px; } .accent-control span { display:block; font-size:10px; color:var(--muted); margin-top:3px; }
.swatches { display:flex; gap:8px; }
.swatch { width:25px; height:25px; border-radius:50%; border:3px solid white; box-shadow:0 0 0 1px #d5dce5; }
.swatch.active { box-shadow:0 0 0 2px #172033; }
.section-title { display:flex; align-items:flex-start; gap:12px; margin-bottom:17px; }
.section-title p { margin:3px 0 0; }
.step { width:28px; height:28px; flex:0 0 28px; display:grid; place-items:center; border-radius:9px; background:var(--accent-soft); color:var(--accent); font-size:11px; font-weight:850; }
.action-title { justify-content:space-between; } .title-left { display:flex; gap:12px; }
.mini-btn { border:0; background:var(--accent-soft); color:var(--accent); padding:7px 10px; border-radius:8px; font-size:11px; font-weight:800; }
.form-grid { display:grid; gap:13px; } .two-col { grid-template-columns:1fr 1fr; }
label { color:#39475b; font-size:11px; font-weight:750; }
input, textarea { width:100%; margin-top:6px; border:1px solid #d8dee7; border-radius:10px; background:#fbfcfe; color:#152238; padding:10px 11px; outline:none; transition:.15s ease; }
input:focus, textarea:focus { border-color:var(--accent); background:#fff; box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent); }
textarea { resize:vertical; min-height:74px; line-height:1.45; }
.full-label { display:block; }
.repeat-list { display:flex; flex-direction:column; gap:12px; }
.repeat-card { border:1px solid var(--line); border-radius:13px; padding:14px; background:#fbfcfd; }
.repeat-card-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.repeat-card-head strong { font-size:12px; } .remove-btn { border:0; background:transparent; color:#9b3142; font-size:11px; font-weight:800; }
.repeat-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; } .repeat-grid .wide { grid-column:1/-1; }
.privacy-note { padding:7px 4px 24px; text-align:center; font-size:10px; color:#7b8798; }
.preview-toolbar { height:46px; max-width:900px; margin:0 auto 14px; display:flex; align-items:center; justify-content:space-between; color:#506075; }
.preview-toolbar strong { color:#263549; font-size:12px; display:block; } .preview-toolbar span { font-size:10px; }
.icon-btn { border:1px solid #c9d1dc; background:#f8fafc; color:#263549; padding:7px 10px; border-radius:9px; font-size:11px; font-weight:800; }
.paper-wrap { overflow:auto; padding:0 0 30px; }
.resume-paper { --resume-accent: var(--accent); width:794px; min-height:1123px; margin:0 auto; background:#fff; box-shadow:0 18px 50px rgba(15,23,42,.17); color:#1f2937; transform-origin:top center; }
.resume-paper * { box-sizing:border-box; }
.r-name { margin:0; font-size:34px; line-height:1; letter-spacing:-.045em; }
.r-title { margin-top:7px; font-size:13px; font-weight:750; letter-spacing:.04em; text-transform:uppercase; }
.r-contact { font-size:9px; line-height:1.65; word-break:break-word; }
.r-section-title { margin:0 0 10px; font-size:11px; line-height:1; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.r-summary, .r-body { font-size:10px; line-height:1.62; color:#4b5563; white-space:pre-line; }
.r-item { margin-bottom:17px; break-inside:avoid; }
.r-item-head { display:flex; justify-content:space-between; gap:15px; align-items:baseline; }
.r-item h3 { margin:0; font-size:11px; line-height:1.35; }
.r-item-sub { font-size:9.5px; font-weight:700; margin-top:2px; }
.r-date { font-size:8.5px; white-space:nowrap; color:#6b7280; }
.r-item p { margin:5px 0 0; font-size:9.5px; line-height:1.55; color:#5b6471; white-space:pre-line; }
.r-skill-list { display:flex; flex-wrap:wrap; gap:6px; }
.r-skill { font-size:8.5px; }
.placeholder-muted { color:#94a3b8 !important; }
/* Template 1: Slate Split */
.template-slate { display:grid; grid-template-columns:235px 1fr; font-family:Arial, Helvetica, sans-serif; }
.template-slate .r-side { background:#172033; color:#fff; padding:50px 28px; min-height:1123px; }
.template-slate .r-main { padding:52px 46px; }
.template-slate .r-name { color:#172033; }
.template-slate .r-title { color:var(--resume-accent); }
.template-slate .r-side .r-section-title { color:#fff; padding-bottom:7px; border-bottom:2px solid var(--resume-accent); }
.template-slate .r-side .r-contact, .template-slate .r-side .r-body { color:#d5dbe6; }
.template-slate .r-side-section { margin-bottom:32px; }
.template-slate .r-main .r-section-title { color:#172033; border-left:4px solid var(--resume-accent); padding-left:8px; }
.template-slate .r-main-section { margin-top:29px; }
.template-slate .r-skill { color:#fff; border:1px solid #4c596d; border-radius:99px; padding:4px 7px; }
/* Template 2: Minimal */
.template-minimal { font-family:Arial, Helvetica, sans-serif; padding:55px 60px; }
.template-minimal .minimal-header { border-bottom:1px solid #d7dce4; padding-bottom:20px; display:grid; grid-template-columns:1fr auto; gap:30px; }
.template-minimal .r-name { color:#111827; font-size:37px; }
.template-minimal .r-title { color:var(--resume-accent); }
.template-minimal .r-contact { text-align:right; color:#667085; }
.template-minimal .minimal-grid { display:grid; grid-template-columns:1.65fr .7fr; gap:42px; padding-top:30px; }
.template-minimal .r-section-title { color:#111827; border-bottom:1px solid #d7dce4; padding-bottom:8px; }
.template-minimal .r-main-section { margin-bottom:27px; }
.template-minimal .r-skill { padding:5px 7px 5px 0; color:#3f4c60; border-bottom:1px solid #e4e7ec; width:100%; }
/* Template 3 Executive */
.template-executive { font-family:Georgia, "Times New Roman", serif; }
.template-executive .exec-header { padding:50px 58px 34px; background:#171717; color:#fff; }
.template-executive .r-name { color:#fff; font-size:38px; font-weight:500; letter-spacing:-.02em; }
.template-executive .r-title { color:var(--resume-accent); font-family:Arial,sans-serif; }
.template-executive .r-contact { margin-top:16px; color:#d8d8d8; font-family:Arial,sans-serif; }
.template-executive .exec-body { padding:38px 58px 55px; }
.template-executive .r-section-title { font-family:Arial,sans-serif; color:#171717; border-bottom:2px solid var(--resume-accent); padding-bottom:7px; }
.template-executive .r-summary, .template-executive .r-item p, .template-executive .r-date { font-family:Arial,sans-serif; }
.template-executive .r-main-section { margin-bottom:28px; }
.template-executive .r-item h3 { font-size:12px; }
.template-executive .r-skill { font-family:Arial,sans-serif; border:1px solid #d1d5db; padding:5px 8px; }
/* Template 4 Creative */
.template-creative { position:relative; overflow:hidden; font-family:Arial,Helvetica,sans-serif; padding:0; }
.template-creative::before { content:""; position:absolute; width:420px; height:280px; background:var(--resume-accent); border-radius:0 0 65% 0; top:0; left:0; z-index:0; }
.template-creative .creative-header { min-height:230px; position:relative; z-index:1; color:#fff; padding:58px 55px 35px; display:grid; grid-template-columns:1.2fr .8fr; gap:50px; }
.template-creative .r-name { color:#fff; max-width:380px; }
.template-creative .r-title { color:#fff; opacity:.88; }
.template-creative .r-contact { color:#3f4c60; background:#fff; padding:16px 18px; border-radius:14px; box-shadow:0 8px 25px rgba(15,23,42,.08); align-self:start; }
.template-creative .creative-body { position:relative; z-index:1; padding:26px 55px 55px; display:grid; grid-template-columns:1.45fr .65fr; gap:40px; }
.template-creative .r-section-title { color:#182033; position:relative; padding-bottom:7px; }
.template-creative .r-section-title::after { content:""; position:absolute; left:0; bottom:0; width:32px; height:3px; border-radius:3px; background:var(--resume-accent); }
.template-creative .r-main-section { margin-bottom:28px; }
.template-creative .r-skill { padding:6px 8px; background:color-mix(in srgb, var(--resume-accent) 10%, white); color:#27364b; border-radius:7px; }
/* Template 5 Tech */
.template-tech { font-family:"Segoe UI",Arial,sans-serif; }
.template-tech .tech-header { padding:43px 50px 28px; background:#0d1726; color:#fff; border-bottom:6px solid var(--resume-accent); }
.template-tech .tech-head-grid { display:grid; grid-template-columns:1fr auto; gap:25px; align-items:end; }
.template-tech .r-name { color:#fff; font-size:35px; }
.template-tech .r-title { color:var(--resume-accent); }
.template-tech .r-contact { text-align:right; color:#bcc6d5; }
.template-tech .tech-body { padding:35px 50px 55px; display:grid; grid-template-columns:1.5fr .65fr; gap:34px; }
.template-tech .r-section-title { color:#111827; display:flex; align-items:center; gap:8px; }
.template-tech .r-section-title::before { content:""; width:7px; height:7px; background:var(--resume-accent); border-radius:2px; }
.template-tech .r-main-section { margin-bottom:26px; }
.template-tech .r-skill { background:#eef2f6; color:#2a3b52; border-radius:5px; padding:5px 7px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
/* Template 6 ATS */
.template-ats { padding:48px 58px 55px; font-family:Arial,Helvetica,sans-serif; }
.template-ats .ats-header { text-align:center; padding-bottom:17px; border-bottom:1.5px solid #111827; }
.template-ats .r-name { font-size:31px; letter-spacing:-.02em; }
.template-ats .r-title { color:#334155; }
.template-ats .r-contact { margin-top:10px; color:#525f70; }
.template-ats .r-main-section { margin-top:23px; }
.template-ats .r-section-title { border-bottom:1px solid #111827; padding-bottom:5px; color:#111827; }
.template-ats .r-skill-list { display:block; }
.template-ats .r-skill { display:inline; font-size:9.5px; }
.template-ats .r-skill:not(:last-child)::after { content:" • "; }
.template-ats .r-item { margin-bottom:14px; }
.mobile-switch { display:none; }
.toast { position:fixed; left:50%; bottom:26px; transform:translate(-50%, 20px); background:#0f172a; color:#fff; border-radius:11px; padding:10px 15px; font-size:11px; font-weight:750; box-shadow:0 10px 30px rgba(15,23,42,.2); opacity:0; pointer-events:none; transition:.22s ease; z-index:80; }
.toast.show { opacity:1; transform:translate(-50%,0); }
@media (max-width: 1180px) {
  .workspace { grid-template-columns:500px minmax(500px,1fr); }
  .preview-panel { padding-left:20px; padding-right:20px; }
  .resume-paper { transform:scale(.84); margin-bottom:-180px; }
}
@media (max-width: 900px) {
  .topbar { height:68px; padding:0 14px; }
  .brand-wrap p { display:none; }
  .top-actions .btn-ghost, .top-actions .btn-secondary { display:none; }
  .btn-primary { padding:9px 11px; font-size:11px; }
  .mobile-switch { display:grid; grid-template-columns:1fr 1fr; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:68px; z-index:35; }
  .mobile-tab { border:0; background:#fff; padding:12px; color:#7b8797; font-size:12px; font-weight:800; border-bottom:2px solid transparent; }
  .mobile-tab.active { color:var(--accent); border-color:var(--accent); }
  .workspace { display:block; min-height:0; }
  .editor-panel { border:0; padding:14px; }
  .preview-panel { display:none; padding:12px 8px 35px; min-height:calc(100vh - 112px); }
  body.show-preview .editor-panel { display:none; }
  body.show-preview .preview-panel { display:block; }
  .panel-card { border-radius:14px; padding:17px; margin-bottom:12px; }
  .template-gallery { grid-template-columns:repeat(3, minmax(110px,1fr)); overflow-x:auto; }
  .template-thumb { height:87px; }
  .two-col, .repeat-grid { grid-template-columns:1fr; }
  .repeat-grid .wide { grid-column:auto; }
  .paper-wrap { overflow:auto; padding-bottom:0; }
  .resume-paper { transform:scale(.52); margin-left:50%; translate:-50% 0; margin-bottom:-530px; }
  .preview-toolbar { width:min(100%, 414px); }
}
@media (max-width: 480px) {
  .brand-mark { width:36px; height:36px; border-radius:11px; font-size:19px; }
  .brand-wrap h1 { font-size:15px; }
  .template-gallery { grid-template-columns:repeat(6, 118px); }
  .accent-control { align-items:flex-start; flex-direction:column; }
  .resume-paper { transform:scale(.46); margin-bottom:-605px; }
}
@media print {
  @page { size:A4; margin:0; }
  body { background:#fff; }
  .topbar, .editor-panel, .preview-toolbar, .mobile-switch, .toast { display:none !important; }
  .workspace, .preview-panel, .paper-wrap { display:block !important; margin:0 !important; padding:0 !important; background:#fff !important; overflow:visible !important; }
  .resume-paper { width:210mm; min-height:297mm; margin:0 !important; transform:none !important; translate:none !important; box-shadow:none !important; }
}


/* Resume Studio v2.1 — template expansion only */
.template-filters{display:flex;gap:7px;overflow-x:auto;padding:2px 0 4px;margin-top:14px;scrollbar-width:none}
.template-filters::-webkit-scrollbar{display:none}
.template-filter{white-space:nowrap;border:1px solid var(--line);background:#fff;color:#526075;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:800}
.template-filter.active{background:var(--accent-soft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 40%,white)}
.thumb-balanced::before{content:"";position:absolute;inset:0 35% 0 0;background:#fff}.thumb-balanced::after{content:"";position:absolute;right:0;top:0;bottom:0;width:35%;background:#253047}
.thumb-bold::before{content:"";position:absolute;left:0;right:0;top:0;height:34%;background:#202733}.thumb-bold::after{content:"";position:absolute;left:12%;right:12%;top:49%;height:5%;background:#222;box-shadow:0 14px 0 #dfe4ea,0 26px 0 #e9edf1,0 42px 0 #dfe4ea}
.thumb-modernaccent::before{content:"";position:absolute;left:0;right:0;top:0;height:29%;background:var(--accent)}.thumb-modernaccent::after{content:"";position:absolute;left:10%;right:10%;top:42%;height:5%;background:#263142;box-shadow:0 14px 0 #dfe4ea,0 28px 0 #e8ecf1}
.thumb-traditional::before{content:"";position:absolute;inset:0 66% 0 0;background:#355d50}.thumb-traditional::after{content:"";position:absolute;left:41%;right:9%;top:14%;height:7%;background:#202733;box-shadow:0 17px 0 #dce2e8,0 31px 0 #e7ebef,0 47px 0 #dce2e8}
.thumb-corporate::before{content:"";position:absolute;left:8%;right:8%;top:12%;height:8%;background:#253047;box-shadow:0 17px 0 var(--accent),0 34px 0 #d9e0e7,0 48px 0 #e8ecf0}.thumb-corporate::after{content:"";position:absolute;left:8%;right:45%;bottom:11%;height:4%;background:#253047}
.thumb-elegant::before{content:"";position:absolute;left:13%;right:13%;top:16%;height:5%;background:#38322f;box-shadow:0 14px 0 #d8d3cf,0 33px 0 #38322f,0 46px 0 #ebe7e4,0 58px 0 #ebe7e4}

/* new resume layouts */
.template-balanced{display:grid;grid-template-columns:65% 35%;padding:0}
.balanced-main{padding:44px 34px}.balanced-side{background:#253047;color:#fff;padding:44px 24px}.balanced-side .r-section-title,.balanced-side .r-contact,.balanced-side .r-item-sub,.balanced-side .r-date,.balanced-side .r-item p{color:#fff}.balanced-side .r-skill{border-color:rgba(255,255,255,.35);color:#fff}
.template-bold{padding:0}.bold-header{background:#202733;color:#fff;text-align:center;padding:42px 42px 34px}.bold-header .r-title{color:var(--resume-accent)}.bold-header .r-contact{margin-top:15px;color:#dbe2ea}.bold-body{padding:34px 48px}.bold-bottom{display:grid;grid-template-columns:1fr 1fr;gap:34px}
.template-modernaccent{padding:0}.modernaccent-header{background:var(--resume-accent);color:#fff;padding:36px 42px}.modernaccent-header .r-title,.modernaccent-header .r-contact{color:#fff}.modernaccent-body{display:grid;grid-template-columns:68% 32%;gap:30px;padding:34px 42px}.modernaccent-body aside{border-left:1px solid #e1e6ec;padding-left:24px}
.template-traditional{display:grid;grid-template-columns:34% 66%;padding:0}.traditional-side{background:#355d50;color:#fff;padding:42px 24px}.traditional-side .r-title,.traditional-side .r-contact,.traditional-side .r-section-title{color:#fff}.traditional-side .r-skill{color:#fff;border-color:rgba(255,255,255,.35)}.traditional-main{padding:42px 36px}
.template-corporate{padding:38px 44px}.corporate-header{display:flex;justify-content:space-between;gap:28px;align-items:flex-end}.corporate-header .r-contact{text-align:right}.corporate-rule{height:5px;background:var(--resume-accent);margin:20px 0 28px}.corporate-bottom{display:grid;grid-template-columns:1fr 1fr;gap:34px}
.template-elegant{padding:44px 52px;font-family:Georgia,'Times New Roman',serif}.elegant-header{text-align:center;border-bottom:1px solid #cfc8c2;padding-bottom:22px;margin-bottom:26px}.elegant-header .r-contact{margin-top:13px}.elegant-body .r-section-title{letter-spacing:.08em}.elegant-bottom{display:grid;grid-template-columns:1fr 1fr;gap:36px}

@media(max-width:720px){
  .template-gallery{grid-template-columns:repeat(3,minmax(145px,1fr));overflow-x:auto;padding-bottom:8px}
}


/* v2.5 safe preview spacing — preserves working JS */
@media (max-width: 760px) {
  .preview-shell,
  .preview-area,
  .resume-preview,
  .preview-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .resume-page {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Keep template cards contained */
.template-card,
.template-thumb {
  overflow: hidden;
}


/* v2.5 thumbnail polish — CSS only */
.template-thumb {
  position: relative;
  background:
    linear-gradient(#ffffff,#ffffff) padding-box;
}
.template-thumb::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 6px;
  pointer-events: none;
}
.template-card strong,
.template-card small {
  position: relative;
  z-index: 2;
}

/* v2.6 additionals */
.photo-upload-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0}
.photo-upload-row>div{display:flex;flex-direction:column;gap:4px}
.photo-upload-row small{color:#718096}
.resume-photo,.resume-photo-fallback{width:88px;height:88px;border-radius:50%;display:block}
.resume-photo{object-fit:cover}
.resume-photo-fallback{display:grid;place-items:center;background:#e8eef7;color:#18243a;font-weight:800}
.resume-photo-pro,.resume-profile-sidebar{display:grid;grid-template-columns:32% 68%;min-height:100%}
.resume-photo-pro aside,.resume-profile-sidebar aside{padding:30px 24px;background:#356956;color:#fff}
.resume-photo-pro main,.resume-profile-sidebar main{padding:30px}
.resume-photo-pro .resume-photo,.resume-profile-sidebar .resume-photo,.resume-photo-pro .resume-photo-fallback,.resume-profile-sidebar .resume-photo-fallback{margin:0 auto 18px}
.resume-classic-photo{padding:34px}
.resume-classic-photo header{display:flex;align-items:center;gap:20px;border-bottom:2px solid #1e2a3a;padding-bottom:18px;margin-bottom:22px}
.resume-classic-photo .classic-grid{display:grid;grid-template-columns:68% 32%;gap:26px}
