/* MyDocMaker — a printer's proof room for free CVs.
   Layout: contact-sheet gallery on cool proof paper; CMYK registration details; one magenta accent. */
:root {
  --paper: #F4F5F7;
  --paper-2: #E9EBEF;
  --surface: #FFFFFF;
  --ink: #0F1115;
  --ink-2: #2A2E37;
  --muted: #5E6472;
  --line: #D9DCE2;
  --magenta: #D9006F;
  --magenta-press: #B3005C;
  --on-magenta: #FFFFFF;
  --cyan: #0098D6;
  --yellow: #F2D500;
  --ok: #157A4A;
  --warn: #B4540A;
  --table: #E2E5EA;
  --shadow: 0 1px 2px rgba(15,17,21,.06), 0 12px 32px -8px rgba(15,17,21,.18);
  --font-display: 'Bodoni Moda Display', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --font-body: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 10px;
  --gutter: clamp(16px, 4vw, 48px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E0F13; --paper-2: #15171C; --surface: #1A1C22; --ink: #EEF0F4; --ink-2: #CDD1DA; --muted: #9AA0AE;
    --line: #2C2F38; --magenta: #FF3D9A; --magenta-press: #FF66B0; --on-magenta: #1A0010; --cyan: #33B6EA; --yellow: #F5DD2E;
    --ok: #4CC98A; --warn: #F0A050; --table: #121318; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -10px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E0F13; --paper-2: #15171C; --surface: #1A1C22; --ink: #EEF0F4; --ink-2: #CDD1DA; --muted: #9AA0AE;
  --line: #2C2F38; --magenta: #FF3D9A; --magenta-press: #FF66B0; --on-magenta: #1A0010; --cyan: #33B6EA; --yellow: #F5DD2E;
  --ok: #4CC98A; --warn: #F0A050; --table: #121318; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -10px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--font-body); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--font-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }

/* ── top bar ── */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter); max-width: 1440px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 21px/1 var(--font-display); letter-spacing: -.01em; }
.logo svg { width: 22px; height: 22px; flex: none; }
.bar nav { display: flex; gap: 4px; margin-left: 12px; }
.bar nav a { text-decoration: none; font-size: 14px; color: var(--muted); padding: 6px 10px; border-radius: 6px; }
.bar nav a:hover { color: var(--ink); background: var(--paper-2); }
.spacer { flex: 1; }
.free-pill { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--font-mono); letter-spacing: .02em; padding: 8px 12px; border-radius: 99px; background: var(--ink); color: var(--paper); white-space: nowrap; }
.free-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); display: inline-block; }
.theme-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.theme-btn svg { width: 17px; height: 17px; }
/* Tablet/mobile menu replaces wrapping desktop navigation before it overflows. */
.compact-nav { position: relative; display: none; flex: none; }
.compact-nav summary { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.compact-nav summary::-webkit-details-marker { display: none; }
.compact-nav summary svg { width: 19px; height: 19px; }
.compact-nav-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 176px; display: grid; gap: 2px; padding: 7px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 10px; z-index: 100; }
.compact-nav-panel a { padding: 9px 12px; font-size: 14px; border-radius: 6px; text-decoration: none; }
.compact-nav-panel a:hover, .compact-nav-panel a:focus-visible { background: var(--paper-2); }
@media (max-width: 900px) { .bar nav { display: none; } .compact-nav { display: block; } .free-pill span.long { display: none; } }
@media (max-width: 460px) { .free-pill { display: none; } }


/* ── shared bits ── */
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow b { color: var(--magenta); font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--magenta); border-color: var(--magenta); color: var(--on-magenta); }
.btn.primary:hover { background: var(--magenta-press); border-color: var(--magenta-press); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.small { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 8px; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* registration mark + CMYK bar */
.reg { width: 26px; height: 26px; color: var(--ink); opacity: .55; }
.cmyk { display: flex; height: 14px; width: 168px; border: 1px solid var(--line); }
.cmyk i { flex: 1; }
.cmyk i:nth-child(1) { background: #00A0E3; } .cmyk i:nth-child(2) { background: #E6007E; } .cmyk i:nth-child(3) { background: #FFED00; } .cmyk i:nth-child(4) { background: #111; }
.cmyk i:nth-child(5) { background: color-mix(in srgb, #00A0E3 50%, transparent); } .cmyk i:nth-child(6) { background: color-mix(in srgb, #E6007E 50%, transparent); } .cmyk i:nth-child(7) { background: color-mix(in srgb, #FFED00 50%, transparent); } .cmyk i:nth-child(8) { background: #777; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(32px, 4.5vw, 64px) clamp(36px, 4.5vw, 68px); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(46px, 7vw, 104px); line-height: .96; letter-spacing: -.025em; margin: 22px 0 0; font-optical-sizing: auto; }
.hero h1 em { font-style: italic; font-weight: 600; letter-spacing: -.02em; }
.hero h1 em { color: var(--magenta); display: block; }
.hero .lede { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 34em; margin: 26px 0 0; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.promise { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.promise li { display: inline-flex; align-items: center; gap: 8px; }
.promise svg { width: 16px; height: 16px; color: var(--magenta); flex: none; }
.fan { position: relative; height: clamp(360px, 42vw, 600px); }
.fan a { position: absolute; left: 50%; top: 50%; width: clamp(150px, 17vw, 250px); aspect-ratio: 210 / 297; margin: 0; transform-origin: 50% 110%; box-shadow: var(--shadow); transition: transform .5s cubic-bezier(.2,.7,.2,1); border-radius: 2px; overflow: hidden; background: #fff; }
.fan a img { width: 100%; height: 100%; object-fit: cover; }
.fan a:nth-child(1) { transform: translate(-50%, -50%) translateX(-70%) rotate(-13deg); z-index: 1; }
.fan a:nth-child(2) { transform: translate(-50%, -50%) translateX(-40%) rotate(-7deg); z-index: 2; }
.fan a:nth-child(3) { transform: translate(-50%, -52%) rotate(0deg); z-index: 5; }
.fan a:nth-child(4) { transform: translate(-50%, -50%) translateX(40%) rotate(7deg); z-index: 4; }
.fan a:nth-child(5) { transform: translate(-50%, -50%) translateX(70%) rotate(13deg); z-index: 3; }
.fan:hover a:nth-child(1) { transform: translate(-50%, -50%) translateX(-92%) rotate(-16deg); }
.fan:hover a:nth-child(2) { transform: translate(-50%, -50%) translateX(-56%) rotate(-9deg); }
.fan:hover a:nth-child(4) { transform: translate(-50%, -50%) translateX(56%) rotate(9deg); }
.fan:hover a:nth-child(5) { transform: translate(-50%, -50%) translateX(92%) rotate(16deg); }
.fan a:hover { z-index: 9 !important; }
@media (prefers-reduced-motion: no-preference) {
  .fan a { animation: deal .9s cubic-bezier(.2,.7,.2,1) both; }
  .fan a:nth-child(2) { animation-delay: .06s; } .fan a:nth-child(3) { animation-delay: .12s; } .fan a:nth-child(4) { animation-delay: .18s; } .fan a:nth-child(5) { animation-delay: .24s; }
  @keyframes deal { from { translate: 0 40px; } to { translate: 0 0; } }
}
.hero .marks { position: absolute; inset: 18px; pointer-events: none; }
.hero .marks .reg { position: absolute; }
.hero .marks .reg:nth-child(1) { top: 0; left: 0; } .hero .marks .reg:nth-child(2) { top: 0; right: 0; } .hero .marks .reg:nth-child(3) { bottom: 0; left: 0; } .hero .marks .reg:nth-child(4) { bottom: 0; right: 0; }
.proofline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font: 400 11.5px/1 var(--font-mono); color: var(--muted); letter-spacing: .04em; margin-top: 26px; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .fan { height: 330px; order: -1; margin-top: 8px; }
  .fan a { width: 150px; }
}

/* ── filter bar ── */
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 61px); z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.filters-in { display: flex; align-items: center; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.chip { height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search { position: relative; margin-left: auto; flex: 0 1 280px; min-width: 180px; }
.search input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px 0 36px; font-size: 14px; }
.search svg { position: absolute; left: 11px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--muted); }
.count { font: 500 12.5px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }

/* ── gallery grid ── */
.gallery { padding-block: 28px 44px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: 32px 26px; }
.card { position: relative; text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.sheet { position: relative; aspect-ratio: 210 / 297; background: #fff; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.sheet img { width: 100%; height: 100%; object-fit: cover; }
.th { display: block; width: 100%; height: 100%; aspect-ratio: 640 / 905; background-color: #fff; background-repeat: no-repeat; background-size: 500% 200%; background-position: calc(var(--c) * 25%) calc(var(--r) * 100%); }
.sheet::before, .sheet::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--magenta); border-style: solid; opacity: 0; transition: opacity .25s, inset .25s; }
.sheet::before { top: -10px; left: -10px; border-width: 1.5px 0 0 1.5px; }
.sheet::after { bottom: -10px; right: -10px; border-width: 0 1.5px 1.5px 0; }
.card:hover .sheet, .card:focus-visible .sheet { transform: translateY(-6px); }
.card:hover .sheet::before, .card:hover .sheet::after { opacity: 1; }
.use { position: absolute; left: 50%; bottom: 16px; translate: -50% 8px; opacity: 0; transition: opacity .2s, translate .2s; height: 38px; padding: 0 15px; border-radius: 99px; background: var(--magenta); color: var(--on-magenta); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; box-shadow: 0 8px 20px -6px rgba(217,0,111,.6); }
.card:hover .use, .card:focus-visible .use { opacity: 1; translate: -50% 0; }
@media (hover: none) { .use { opacity: 1; translate: -50% 0; height: 32px; font-size: 12.5px; } }
.meta { display: flex; align-items: baseline; gap: 10px; }
.meta .no { font: 500 12px/1 var(--font-mono); color: var(--magenta); letter-spacing: .02em; }
.meta h3 { margin: 0; font: 600 18px/1.2 var(--font-display); letter-spacing: 0; }
.card .tags { margin-top: -8px; font-size: 12.5px; color: var(--muted); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ── info sections ── */
.band { border-top: 1px solid var(--line); padding-block: clamp(36px, 4vw, 56px); }
.band h2 { font: 700 clamp(34px, 4.4vw, 60px)/1 var(--font-display); letter-spacing: -.02em; margin: 10px 0 0; max-width: 18ch; }
.band .intro { color: var(--ink-2); font-size: 17px; max-width: 40em; margin: 12px 0 0; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 500 13px/1 var(--font-mono); color: var(--magenta); margin-bottom: 12px; }
.steps h3 { margin: 0 0 8px; font: 700 21px/1.15 var(--font-display); letter-spacing: -.015em; }
.steps p { margin: 0; color: var(--muted); }
.free-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.nots { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.nots li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.nots li span:last-child { font: 500 13px/1 var(--font-mono); color: var(--magenta); }
.privacy { background: var(--ink); color: var(--paper); }
.privacy .eyebrow { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.privacy .intro { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); }
.facts div { padding: 18px 22px 0 0; }
.facts b { display: block; font: 700 19px/1.2 var(--font-display); margin-bottom: 8px; }
.facts p { margin: 0; color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 14.5px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font: 650 17px/1.3 var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--font-mono); color: var(--magenta); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.foot { border-top: 1px solid var(--line); padding-block: 22px 28px; color: var(--muted); font-size: 13.5px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
@media (max-width: 900px) { .steps, .facts, .faq, .free-grid { grid-template-columns: 1fr; } }

/* ── studio (one page per CV) ── */
.studio { display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); min-height: calc(100vh - 61px); }
.panel { background: var(--surface); border-right: 1px solid var(--line); min-width: 0; }
.panel-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.crumbs { font: 500 12px/1.4 var(--font-mono); color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--magenta); }
.panel-head h1 { font: 700 30px/1.05 var(--font-display); letter-spacing: -.015em; margin: 12px 0 0; display: flex; align-items: baseline; gap: 10px; }
.panel-head h1 .no { font: 500 13px/1 var(--font-mono); color: var(--magenta); letter-spacing: 0; }
.panel-head .desc { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.notice { margin: 14px 0 0; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--magenta); }
.startbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.form { padding: 4px 24px 120px; }
.sec { border-bottom: 1px solid var(--line); padding: 20px 0; }
.sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary h2 { margin: 0; font: 700 17px/1.2 var(--font-display); letter-spacing: -.01em; }
.sec > summary .hint { margin-left: auto; font: 500 11.5px/1 var(--font-mono); color: var(--muted); }
.sec > summary .used { font: 500 10.5px/1 var(--font-mono); padding: 4px 7px; border-radius: 99px; background: color-mix(in srgb, var(--magenta) 12%, transparent); color: var(--magenta); letter-spacing: .02em; }
.sec > summary .unused { font: 500 10.5px/1 var(--font-mono); padding: 4px 7px; border-radius: 99px; background: var(--paper-2); color: var(--muted); }
.sec > summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); rotate: 45deg; translate: 0 -3px; transition: rotate .2s; margin-left: 6px; }
.sec[open] > summary::after { rotate: 225deg; translate: 0 2px; }
.sec .body { display: grid; gap: 12px; margin-top: 16px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.f { display: grid; gap: 5px; min-width: 0; }
.f label, .lab { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.f input, .f textarea, .f select { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 9px 11px; font-size: 14.5px; line-height: 1.4; min-width: 0; }
.f textarea { resize: vertical; min-height: 92px; }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--magenta); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--magenta) 18%, transparent); }
.f .help { font-size: 12px; color: var(--muted); }
.item { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 10px; background: var(--paper); }
.item-head { display: flex; align-items: center; gap: 8px; }
.item-head b { font: 600 13px/1 var(--font-mono); color: var(--muted); }
.item-head .tools { margin-left: auto; display: flex; gap: 4px; }
.icon-btn { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 14px; height: 14px; }
.add { height: 38px; border-radius: 9px; border: 1px dashed var(--line); background: transparent; color: var(--ink-2); font-weight: 600; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.add:hover { border-color: var(--magenta); color: var(--magenta); }
.add[disabled] { opacity: .45; cursor: not-allowed; }
/* V1.6.1: fixed-size SVG controls (Safari and Chromium). Keep the icon out of flex sizing. */
.add { white-space: nowrap; min-width: 0; }
.add svg, .add > svg { display: block; width: 16px !important; height: 16px !important; min-width: 16px; min-height: 16px; max-width: 16px; max-height: 16px; flex: 0 0 16px; stroke-width: 2; }

.tagin { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.tagin:focus-within { border-color: var(--magenta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--magenta) 18%, transparent); }
.tagin .t { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.tagin .t button { border: 0; background: none; cursor: pointer; padding: 2px; color: var(--muted); display: grid; place-items: center; }
.tagin .t button svg { display: block; width: 12px; height: 12px; min-width: 12px; max-width: 12px; flex: none; }
.tagin .t button:hover { color: var(--magenta); }
.tagin input { flex: 1; min-width: 120px; border: 0; background: transparent; padding: 4px; outline: none; font-size: 14px; }
.levels { display: flex; gap: 4px; }
.levels button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: 500 12px/1 var(--font-mono); color: var(--muted); }
.levels button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.photo-drop { display: flex; gap: 14px; align-items: center; }
.photo-drop .pv { width: 72px; height: 88px; border-radius: 8px; background: var(--paper-2) center/cover no-repeat; border: 1px solid var(--line); flex: none; display: grid; place-items: center; color: var(--muted); }
.photo-drop .pv svg { width: 26px; height: 26px; }
.photo-drop .acts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

.stage { position: relative; background: var(--table); min-width: 0; display: flex; flex-direction: column; }
.toolbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 61px); z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; background: color-mix(in srgb, var(--table) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.fit { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1.2 var(--font-mono); color: var(--ok); }
.fit i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.fit.bad { color: var(--warn); }
.switch { display: inline-flex; align-items: center; gap: 4px; }
.canvas { flex: 1; display: grid; place-items: start center; padding: 32px 20px 64px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 123px); }
.paperbox { position: relative; box-shadow: var(--shadow); background: #fff; }
.paperbox .scaler { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; transform-origin: 0 0; }
.dims { position: absolute; right: -2px; top: -22px; font: 400 11px/1 var(--font-mono); color: var(--muted); letter-spacing: .04em; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); translate: -50% 20px; opacity: 0; z-index: 90; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); transition: opacity .2s, translate .2s; pointer-events: none; max-width: min(92vw, 520px); }
.toast.show { opacity: 1; translate: -50% 0; }

/* drawer: change design */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(10,11,14,.5); }
.drawer .sheetbox { position: absolute; right: 0; top: 0; bottom: 0; width: min(560px, 100%); background: var(--paper); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.drawer header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font: 700 20px/1 var(--font-display); }
.drawer .list { overflow: auto; padding: 18px 20px 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
.drawer .pick { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; display: grid; gap: 7px; }
.drawer .pick img { aspect-ratio: 210/297; width: 100%; box-shadow: var(--shadow); background: #fff; }
.drawer .pick span { font-size: 12.5px; color: var(--ink-2); }
.drawer .pick span b { font: 500 11px/1 var(--font-mono); color: var(--magenta); margin-right: 5px; }
.drawer .pick[aria-current="true"] img { outline: 2.5px solid var(--magenta); outline-offset: 3px; }
.drawer .pick .th { height: auto; box-shadow: var(--shadow); }
.drawer .pick[aria-current="true"] .th { outline: 2.5px solid var(--magenta); outline-offset: 3px; }

.mobile-tabs { display: none; }
@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; }
  .mobile-tabs { display: flex; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 61px); z-index: 25; background: var(--surface); border-bottom: 1px solid var(--line); }
  .mobile-tabs button { flex: 1; height: 46px; border: 0; background: none; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
  .mobile-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--magenta); }
  .studio[data-view="edit"] .stage { display: none; }
  .studio[data-view="preview"] .panel { display: none; }
  .toolbar { top: calc(env(safe-area-inset-top, 0px) + 107px); }
  .canvas { position: static; padding: 24px 16px 48px; }
  .drawer .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* print: only the CV page */
#print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body > *:not(#print-sheet) { display: none !important; }
  html, body { margin: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; }
  #print-sheet { display: block; width: 210mm; height: 296.5mm; overflow: hidden; break-after: avoid; page-break-after: avoid; }
  body { background: #fff; }
}

.notice.sample { background: color-mix(in srgb, var(--magenta) 7%, var(--surface)); border-color: color-mix(in srgb, var(--magenta) 28%, transparent); }
.filebar { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 3px; cursor: pointer; font-weight: 600; font-size: inherit; }
.icon-btn.big { width: 36px; height: 36px; border-radius: 8px; }
.icon-btn.big svg { width: 17px; height: 17px; }
.more { position: relative; }
.more .btn svg { width: 15px; height: 15px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 250px; display: grid; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.menu button { display: grid; gap: 2px; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: var(--paper); }
.menu b { font-weight: 600; font-size: 14px; }
.menu small { color: var(--muted); font-size: 12.5px; }

/* customise panel */
.sec.custom > summary .hint { margin-left: auto; font: 500 10.5px/1 var(--font-mono); padding: 4px 7px; border-radius: 99px; background: color-mix(in srgb, var(--magenta) 12%, transparent); color: var(--magenta); letter-spacing: .02em; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggles .chip { height: 32px; font-size: 13px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; }
.toggles .chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); }
.toggles .chip[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.toggles .chip[aria-pressed="false"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.toggles .chip[aria-pressed="true"]::before { background: var(--magenta); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.sw { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.sw:hover { border-color: var(--ink); }
.sw input { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; flex: none; border: 1px solid var(--line); border-radius: 6px; padding: 0; background: none; cursor: pointer; }
.sw input::-webkit-color-swatch-wrapper { padding: 0; }
.sw input::-webkit-color-swatch { border: 0; border-radius: 5px; }
.sw input::-moz-color-swatch { border: 0; border-radius: 5px; }
.sw span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec.custom .startbar { margin-top: 2px; }

/* keyboard hints */
.keys { display: inline-flex; align-items: center; gap: 4px; font: 500 11.5px/1 var(--font-mono); color: var(--ink-2); white-space: nowrap; }
.keys kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--paper); font: 600 12px/1 var(--font-mono); color: var(--ink); }
.keys kbd:last-of-type { margin-right: 4px; }
@media (max-width: 1100px), (hover: none) { .keys { display: none; } }

/* MyDocMaker navigation, editor controls and legal footer (outside the A4 canvas). */
.add > svg {width:16px!important;height:16px!important;min-width:16px;min-height:16px;flex:0 0 16px;display:block;stroke-width:2}
.mdm-legal {display:flex;justify-content:center;align-items:center;text-align:center;gap:8px;flex-wrap:wrap;padding:18px 20px 22px;color:var(--muted);background:var(--paper);border-top:1px solid var(--line);font-size:12px;line-height:1.55}
.mdm-legal strong {color:var(--ink);font-weight:600}
@media print {.mdm-legal {display:none!important}}

/* V1.6.2: full-resolution, individually loaded hero thumbnails. */
.fan .hero-thumb { background-size: 100% 100%; background-position: center; }

/* MyDocMaker V1.6.3 — private CV toolkit */
.mdm-toolbox { margin-top:16px; padding:13px 14px 12px; border:1px solid var(--line);border-radius:12px;background:var(--surface); }
.mdm-toolbox-heading { display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:14px; }
.mdm-toolbox-heading span {font-size:11px;color:var(--muted);}
.mdm-toolbox-actions {display:flex;gap:7px;flex-wrap:wrap;margin-top:10px;}
.mdm-toolbox-actions .btn {height:33px;padding:0 10px;font-size:12px;cursor:pointer;}
.mdm-toolbox p {font-size:11.5px;color:var(--muted);line-height:1.45;margin:9px 0 0;}
.mdm-toolbox .mdm-ats-btn {border-color:var(--magenta);color:var(--magenta);}
.mdm-dialog {width:min(680px,calc(100vw - 30px)); max-height:min(85vh,850px);background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:0;box-shadow:0 32px 80px rgba(0,0,0,.25);}
.mdm-dialog::backdrop {background:rgba(11,13,20,.68);}
.mdm-dialog-inner {padding:24px;overflow-y:auto;max-height:min(85vh,850px);}
.mdm-dialog-top {display:flex;justify-content:space-between;align-items:center;gap:12px;}
.mdm-dialog h2 {font:700 25px/1.2 var(--font-display);margin:0;}
.mdm-dialog p {font-size:13.5px;line-height:1.6;color:var(--muted);}
.mdm-dialog label:not(.mdm-file-choose) {display:block;font-weight:600;font-size:13px;margin:14px 0 7px;}
.mdm-dialog textarea {width:100%;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);padding:12px;resize:vertical;font-size:13px;min-height:125px;}
.mdm-file-choose {display:flex;align-items:center;gap:14px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;flex-wrap:wrap;}
.mdm-file-choose input {font-size:12px;max-width:100%;}
.mdm-import-summary {padding:10px 12px;background:var(--paper-2);border-radius:8px;font-size:13px;line-height:1.5;white-space:pre-wrap;}
.mdm-dialog-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px;}
.mdm-coach-results {display:grid;gap:10px;margin-top:15px;}
.mdm-tip {padding:12px 14px;border:1px solid var(--line);border-radius:9px;}
.mdm-tip strong {font-size:13px;}
.mdm-tip p {margin:4px 0;}
.mdm-tip .mdm-coach-alt {color:var(--ink);background:var(--paper-2);padding:8px;border-radius:6px;}
@media(max-width:650px){.mdm-dialog-inner{padding:16px}.mdm-toolbox-actions .btn{flex:1 0 auto}.mdm-dialog-actions .btn{flex-grow:1}}
