/* Resume builder v2 */
.rb-app{margin:12px 0 24px}
.rb-steps{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.rb-steps button{flex:1 1 120px;min-height:44px;border:1px solid var(--line,#dbe1ea);background:#fff;border-radius:10px;font:600 .95rem inherit;cursor:pointer;color:#334155}.rb-steps button.on{background:#1d4ed8;color:#fff;border-color:#1d4ed8}
.rb-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.rb-ed{background:#fff;border:1px solid var(--line,#dbe1ea);border-radius:14px;padding:16px;min-width:0}
.rb-ed h3{margin:0 0 10px;font-size:1.1rem}
.rb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.rb-ed label{display:flex;flex-direction:column;gap:4px;font-size:.88rem;font-weight:600;color:#334155;margin:6px 0}
.rb-ed input[type=text],.rb-ed input[type=email],.rb-ed input[type=tel],.rb-ed textarea,.rb-ed select{font:inherit;font-weight:400;font-size:1rem;padding:9px 10px;border:1px solid #cbd5e1;border-radius:8px;width:100%;box-sizing:border-box;min-height:42px;background:#fff}
.rb-ed textarea{resize:vertical;min-height:70px}
.rb-ed input[type=color]{width:64px;height:40px;border:1px solid #cbd5e1;border-radius:8px;padding:2px}
.rb-chk{flex-direction:row!important;align-items:center;gap:8px}.rb-chk input{width:22px;height:22px}
.rb-photo{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0;font-size:.88rem;font-weight:600}
.rb-sec{border:1px solid #e2e8f0;border-radius:12px;padding:10px;margin:10px 0;background:#fbfcfe}.rb-sec.off{opacity:.75}
.rb-sech{display:flex;align-items:center;gap:6px}.rb-sect{flex:1;font-weight:700!important}
.rb-ic{min-width:40px;min-height:40px;border:1px solid #cbd5e1;background:#fff;border-radius:8px;cursor:pointer;font:600 .9rem inherit}.rb-ic:disabled{opacity:.35;cursor:default}.rb-del{color:#b91c1c;padding:0 10px}
.rb-item{border-top:1px dashed #cbd5e1;margin-top:10px;padding-top:6px}.rb-itbar{display:flex;gap:6px;justify-content:flex-end}
.rb-tpls{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin-bottom:12px}
.rb-tpl{border:2px solid #e2e8f0;background:#fff;border-radius:10px;padding:8px;cursor:pointer;font:600 .8rem inherit;display:flex;flex-direction:column;gap:6px;align-items:stretch;text-align:center;min-height:44px}.rb-tpl.on{border-color:#1d4ed8;box-shadow:0 0 0 3px #bfdbfe}
.rb-thumb{display:block;height:54px;border-radius:6px;background:#f8fafc;position:relative;overflow:hidden}.rb-thumb i{display:block;height:6px;margin:6px 8px 0;background:#cbd5e1;border-radius:3px}.rb-thumb i:first-child{height:10px;width:55%}
.t-classic i:first-child{margin:8px auto 0;background:#1e3a8a}.t-modern i:first-child{width:40%;background:#0f172a}.t-ats i{background:#64748b}.t-fresher{background:#eff6ff}.t-fresher i:first-child{background:#2563eb}.t-experienced i:first-child{background:#334155;width:70%}.t-teacher{background:#fefce8}.t-teacher i:first-child{background:#a16207}.t-tech i{background:#0e7490}.t-creative{background:linear-gradient(90deg,#7c3aed 0 28%,#faf5ff 28%)}.t-creative i{margin-left:40%}
.rb-nav{display:flex;justify-content:space-between;gap:8px;margin-top:14px}.rb-nav .btn{min-height:44px;min-width:110px}
.rb-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:14px;padding-top:10px;border-top:1px solid #e2e8f0}.rb-tools .btn,.rb-tools select{min-height:40px;font-size:.85rem;padding:6px 10px}.rb-tools #rb-save{flex-basis:100%}
.rb-assist h3{font-size:1rem;margin:12px 0 6px}.rb-assist ul{margin:0 0 8px 18px;padding:0}.rb-chips{display:flex;flex-wrap:wrap;gap:6px}.rb-chips button{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:6px 12px;min-height:36px;cursor:pointer;font:inherit;font-size:.85rem}
.rb-dl{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 4px}.rb-dl .btn{min-height:48px}
.rb-pvw{position:sticky;top:76px;min-width:0}.rb-pvh{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.rb-pages section{padding:0}.rb-pages{display:flex;flex-direction:column;gap:14px;align-items:center;max-height:calc(100vh - 120px);overflow:auto;padding:4px;background:#e5e7eb;border-radius:12px}
.rb-pw{position:relative;overflow:hidden;box-shadow:0 2px 10px rgba(15,23,42,.18);background:#fff;flex:none}.rb-pw>.r-page{transform-origin:0 0;position:absolute;left:0;top:0}
.rb-off{position:absolute;left:-10000px;top:0;visibility:hidden;pointer-events:none}#rb-render{visibility:visible}
.rb-pvbtn{display:none}
@media(max-width:900px){.rb-cols{grid-template-columns:1fr}.rb-pvw{position:static;display:none}body.rb-showpv .rb-pvw{display:block}body.rb-showpv .rb-ed{display:none}.rb-pages{max-height:none}
 .rb-pvbtn{display:block;position:sticky;bottom:10px;margin:10px auto 0;z-index:5;min-height:48px;box-shadow:0 4px 14px rgba(0,0,0,.2)}}
/* ---- the resume sheet ---- */
.r-page{box-sizing:border-box;background:#fff;color:#1f2937;padding:52px 56px;font-size:var(--fs);line-height:calc(1.42*var(--sp));font-family:Inter,"Noto Sans","Noto Sans Devanagari","Mangal","Nirmala UI",Arial,sans-serif;overflow:hidden;text-align:left}
.r-page.f-serif{font-family:Georgia,"Noto Serif","Noto Serif Devanagari","Mangal",serif}.r-page.f-mono .r-h,.r-page.f-mono .r-name{font-family:ui-monospace,Consolas,"Noto Sans Mono",monospace}
.r-page h1,.r-page h2,.r-page p,.r-page ul{margin:0}.r-page ul{padding-left:0;list-style:none}.r-page li{margin:calc(.15em*var(--sp)) 0;position:relative;padding-left:1.1em}.r-page li::before{content:"";position:absolute;left:.25em;top:.62em;width:.32em;height:.32em;border-radius:50%;background:var(--acc)}.tpl-ats li::before{background:#000}
.r-head{display:flex;gap:18px;align-items:center;margin-bottom:calc(14px*var(--sp))}.r-photo{width:92px;height:110px;object-fit:cover;border-radius:6px;flex:none}
.r-name{font-size:2.25em;line-height:1.15;color:#0f172a;font-weight:800}.r-title{font-size:1.15em;color:var(--acc);font-weight:600;margin-top:2px}.r-contact{color:#475569;margin-top:4px;font-size:.95em}
.r-page section,.r-page header{padding:0;margin:0}.r-page .r-sec{margin-top:calc(12px*var(--sp))}.r-page .r-sec.cont{margin-top:calc(8px*var(--sp))}.r-sec.cont{margin-top:calc(6px*var(--sp))}
.r-h{font-size:1.05em;text-transform:uppercase;letter-spacing:.08em;color:var(--acc);font-weight:800;border-bottom:1.5px solid var(--acc);padding-bottom:2px;margin-bottom:calc(6px*var(--sp))}
.r-row{display:flex;justify-content:space-between;gap:12px}.r-a{font-weight:700;color:#0f172a}.r-c{color:#475569;white-space:nowrap;font-size:.95em}.r-b{color:#334155;font-style:italic}
.r-chips{display:flex;flex-wrap:wrap;gap:4px 14px}.r-chips li{margin:0}
/* templates */
.tpl-classic .r-head{justify-content:center;text-align:center;flex-direction:column;border-bottom:3px double var(--acc);padding-bottom:10px}.tpl-classic .r-name{font-family:Georgia,"Noto Serif Devanagari",serif}.tpl-classic .r-h{text-align:center;border-bottom:0;background:linear-gradient(#94a3b8,#94a3b8) bottom/100% 1px no-repeat;padding-bottom:3px}
.tpl-modern{padding:58px 64px}.tpl-modern .r-name{font-weight:300;letter-spacing:-.01em;font-size:2.5em}.tpl-modern .r-h{border:0;text-transform:none;letter-spacing:0;font-size:1.15em;color:#0f172a;font-weight:600}.tpl-modern .r-h::before{content:"";display:inline-block;width:18px;height:3px;background:var(--acc);vertical-align:middle;margin-right:8px}
.tpl-ats{color:#000}.tpl-ats .r-photo{display:none}.tpl-ats .r-name{font-size:1.8em;font-weight:700;color:#000}.tpl-ats .r-title,.tpl-ats .r-h{color:#000}.tpl-ats .r-h{border-bottom:1px solid #000;letter-spacing:.02em}.tpl-ats .r-b{font-style:normal}.tpl-ats .r-chips{display:block}
.tpl-fresher .r-head{background:color-mix(in srgb,var(--acc) 10%,#fff);margin:-52px -56px 14px;padding:36px 56px 20px}.tpl-fresher .r-h{border:0;background:color-mix(in srgb,var(--acc) 12%,#fff);padding:3px 8px;border-radius:4px}
.tpl-experienced .r-head{border-left:6px solid var(--acc);padding-left:14px}.tpl-experienced .r-name{font-size:2.1em}.tpl-experienced .r-h{border-bottom:2px solid #0f172a;color:#0f172a}.tpl-experienced .r-a{font-size:1.05em}
.tpl-teacher{font-family:Georgia,"Noto Serif Devanagari","Mangal",serif}.tpl-teacher .r-head{border-bottom:2px solid var(--acc);padding-bottom:10px}.tpl-teacher .r-h{border:0;text-transform:none;letter-spacing:0;font-size:1.2em;font-style:italic}.tpl-teacher .r-h::after{content:"";display:block;width:40px;border-bottom:2px solid var(--acc);margin-top:2px}
.tpl-tech .r-name,.tpl-tech .r-h{font-family:ui-monospace,Consolas,"Noto Sans Mono",monospace}.tpl-tech .r-h{border:0;text-transform:none;letter-spacing:0}.tpl-tech .r-h::before{content:"## ";color:#94a3b8}.tpl-tech .r-skills .r-chips li::before{display:none}.tpl-tech .r-skills .r-chips li{background:color-mix(in srgb,var(--acc) 12%,#fff);border:1px solid color-mix(in srgb,var(--acc) 35%,#fff);border-radius:4px;padding:0 6px;font-family:ui-monospace,Consolas,monospace;font-size:.9em}.tpl-tech .r-chips{padding-left:0!important;gap:5px}
.tpl-creative{border-left:150px solid var(--acc);padding-left:40px}.tpl-creative .r-photo{border-radius:50%;width:96px;height:96px;border:3px solid var(--acc)}.tpl-creative .r-name{color:var(--acc)}.tpl-creative .r-h{border:0;font-size:1.1em}.tpl-creative .r-h::after{content:"";display:block;height:3px;width:100%;background:linear-gradient(90deg,var(--acc),transparent);margin-top:2px}
/* print: only the pages */
@media print{@page{margin:0}body *{visibility:hidden!important}#rb-pages,#rb-pages *{visibility:visible!important}#rb-pages{position:absolute;left:0;top:0;display:block;background:none;max-height:none;overflow:visible;padding:0;gap:0}.rb-pw{width:auto!important;height:auto!important;box-shadow:none;overflow:visible;break-after:page;page-break-after:always}.rb-pw>.r-page{position:static;transform:none!important}.rb-pvw{display:block!important;position:static}}
#rb-s1:empty{min-height:600px}@media (max-width:700px){#rb-s1:empty{min-height:919px}}@media (min-width:701px) and (max-width:1000px){#rb-s1:empty{min-height:453px}}


/* ===== Phase 2 resume mobile steps ===== */
.rb-steps{
  position:sticky;top:56px;z-index:6;
  background:rgba(247,249,252,.96);backdrop-filter:blur(8px);
  padding:8px 0;margin:0 0 12px;border-bottom:1px solid var(--cd-border,#dce4ed)
}
.rb-steps button.on{
  background:var(--cd-primary,#0c6b62)!important;
  border-color:var(--cd-primary,#0c6b62)!important
}
.rb-mobile-hint{display:none}
.rb-nav{
  position:sticky;bottom:0;z-index:5;
  background:rgba(255,255,255,.96);padding:10px 0;margin-top:16px;
  border-top:1px solid var(--cd-border,#dce4ed);
  box-shadow:0 -4px 16px rgba(15,23,42,.06)
}
#rb-save{font-weight:600}
@media (max-width:900px){
  .rb-mobile-hint{display:block}
  .rb-steps{top:52px;gap:4px}
  .rb-steps button{flex:1 1 calc(50% - 4px);font-size:.88rem;min-height:46px}
  .rb-nav .btn{flex:1;min-height:48px}
}
@media (prefers-reduced-motion:reduce){.rb-steps{backdrop-filter:none}}
