/* ---------- biodata / CV makers (views/doc_maker.php, assets/js/docs.js) ---------- */
.dm-page { padding: 26px 0 120px; }
.dm-hero { max-width: 760px; margin: 0 auto 22px; text-align: center; }
.dm-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 8px 0; line-height: 1.12; }
.dm-hero > p.muted { margin: 0 auto; max-width: 600px; }
.dm-types { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 4px; }
.dm-types .chip, .dm-tabs .chip, .dm-chips .chip { background: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; }
.dm-types .chip.on, .dm-tabs .chip.on, .dm-chips .chip.on { background: var(--green-d); color: #fff; border-color: var(--green-d); }
.dm-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; }
.dm-cta .btn { min-width: 260px; font-size: 1.05rem; padding: 15px 26px; }
.dm-ok { font-size: 13px; color: var(--muted); margin: 10px 0 0; font-weight: 600; }
.dm { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 26px; align-items: start; scroll-margin-top: 70px; }
.dm-sec { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
.dm-sec > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 800; }
.dm-sec > summary::-webkit-details-marker { display: none; }
.dm-sec > summary i { font-style: normal; transition: transform .2s; color: var(--muted); font-size: 22px; line-height: 1; }
.dm-sec[open] > summary i { transform: rotate(90deg); }
.dm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; padding: 0 16px 16px; }
.dm-item .dm-grid { padding: 0; }
.dm-f { margin: 0; min-width: 0; }
.dm-f > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.dm-f input, .dm-f select, .dm-f textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--paper); }
.dm-f textarea { resize: vertical; min-height: 70px; }
.dm-f input:focus, .dm-f textarea:focus, .dm-f select:focus { outline: none; border-color: var(--green-d); background: #fff; }
.dm-wide, .dm-item, .dm-add, .dm-tg { grid-column: 1 / -1; }
.dm-item { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px 12px; }
.dm-item-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13px; }
.dm-item-h .link-btn { font-size: 13px; margin-left: 10px; }
.dm-add { justify-self: start; }
.dm-tg { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.dm-tg:first-child { border-top: 0; }
.dm-tg b { display: block; font-size: 15px; } .dm-tg small { display: block; color: var(--muted); font-size: 12px; }
.dm-tg input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 99px; background: #D9D2C4; position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.dm-tg input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
.dm-tg input:checked { background: var(--green-d); } .dm-tg input:checked::after { left: 21px; }
.dm-chips { display: flex; gap: 8px; }
.dm-ph { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.dm-ph i { width: 58px; height: 70px; border-radius: 10px; border: 2px dashed #C9C0AF; display: grid; place-items: center; font-style: normal; color: #9a9284; font-size: 22px; background: center / cover no-repeat; }
.dm-ph b { font-size: 14px; } .dm-ph .link-btn { font-size: 13px; margin-left: 4px; }
.dm-side { position: sticky; top: 74px; }
.dm-side-in { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; max-height: calc(100vh - 92px); overflow: auto; }
.dm-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.dm-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.dm-t { flex: none; width: 92px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 4px; cursor: pointer; text-align: center; font: inherit; }
.dm-t img { width: 100%; height: auto; display: block; border-radius: 6px; background: var(--paper-2); }
.dm-t b { display: block; font-size: 10.5px; line-height: 1.25; margin-top: 4px; min-height: 26px; }
.dm-t span { display: block; font-size: 10px; font-weight: 700; }
.dm-t[aria-pressed="true"] { border-color: var(--green-d); box-shadow: 0 0 0 2px var(--green-d); }
.tg-free { color: var(--green-d); } .tg-acct { color: #B6862C; }
.dm-prev { margin-top: 10px; background: var(--paper-2); border-radius: 10px; padding: 0; display: flex; justify-content: center; overflow: hidden; }
.dm-paper { box-shadow: 0 10px 26px -14px rgba(0,0,0,.45); background: #fff; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.dm-note { font-size: 13px; background: #FFF7E6; border: 1px solid #F3D9A4; border-radius: 10px; padding: 8px 10px; margin: 10px 0 0; }
.dm-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.dm-dl .btn:first-child { grid-column: 1 / -1; }
.dm-dl .btn { padding: 13px 10px; font-size: 15px; }
.dm-flash { animation: dmflash 1.2s ease 2; }
@keyframes dmflash { 50% { box-shadow: 0 0 0 6px rgba(18,183,106,.35); border-radius: 14px; } }
.dm-ats { margin-top: 12px; background: var(--paper); border-radius: 12px; padding: 10px; }
.dm-ats b { font-size: 14px; } .dm-ats textarea { width: 100%; box-sizing: border-box; margin-top: 6px; font: inherit; font-size: 14px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.ats-live { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; font-size: 13px; }
.ats-live p { margin: 2px 0 6px; color: var(--muted); }
.ats-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--green-d) calc(var(--p) * 1%), #E6EFE9 0); }
.ats-ring b { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 15px; }
.ats-kw { display: flex; flex-wrap: wrap; gap: 5px; } .ats-kw span { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 3px 7px; }
.ats-kw .y { background: #E6F4EC; color: var(--green-d); } .ats-kw .n { background: #FDECEC; color: #B42318; }
.dm-more { max-width: 800px; margin: 40px auto 0; } .dm-more h2 { text-align: center; } .dm-gal { text-align: center; font-weight: 700; }
.dm-bar { display: none; }
.dm-sh { display: none; }
@media (max-width: 980px) {
  .dm { grid-template-columns: minmax(0, 1fr); }
  .dm-grid { grid-template-columns: minmax(0, 1fr); }
  .dm-side { position: fixed; inset: 0; z-index: 80; background: rgba(14,21,18,.55); padding: 40px 0 0; display: none; top: 0; }
  body.dm-open .dm-side { display: block; }
  body.dm-open { overflow: hidden; }
  .dm-side-in { height: 100%; max-height: none; overflow: auto; border-radius: 22px 22px 0 0; padding: 14px 14px 110px; }
  .dm-sh { display: flex; justify-content: space-between; align-items: center; margin: -2px 0 10px; }
  .dm-bar { display: flex; gap: 8px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  .dm-bar .btn { flex: 1; padding: 13px 8px; font-size: 15px; }
  .dm-mini { flex: none; width: 54px; height: 76px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); cursor: pointer; }
  .dm-mini span { display: block; width: 54px; height: 76px; overflow: hidden; pointer-events: none; }
  .dm-hero { margin-bottom: 16px; }
  .page-doc .footer { padding-bottom: 110px; }
}
.dg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.dg-card { display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 14px; transition: transform .2s, box-shadow .2s; }
.dg-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(0,0,0,.4); }
.dg-card img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 6px 16px -10px rgba(0,0,0,.4); }
.dg-card b { display: block; margin-top: 10px; } .dg-card span { font-size: 13px; font-weight: 700; }
@media (max-width: 560px) { .dg-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .dg-card b { font-size: 14px; } }
.ats-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.ats-up { display: block; text-align: center; background: var(--green-d); color: #fff; border-radius: 16px; padding: 18px; cursor: pointer; box-shadow: 0 14px 26px -14px rgba(7,122,68,.8); }
.ats-up b { display: block; font-size: 1.2rem; } .ats-up span { font-size: 14px; opacity: .9; }
.ats-name { text-align: center; font-weight: 700; margin: 10px 0 0; min-height: 1em; }
.ats-box textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 12px; background: var(--paper); }
.ats-lock { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.ats-res { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; scroll-margin-top: 70px; }
.ats-top { display: flex; gap: 16px; align-items: center; }
.ats-big { width: 104px; height: 104px; } .ats-big b { width: 82px; height: 82px; font-size: 28px; }
.ats-t { font-size: 1.2rem; } .ats-top p { margin: 4px 0 0; color: var(--muted); }
.ats-res .ats-live { background: var(--paper); border-radius: 12px; padding: 12px; }
.ats-checks { list-style: none; padding: 0; margin: 14px 0; }
.ats-checks li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; } .ats-checks li span { display: block; color: var(--muted); font-size: 13.5px; }
.ats-checks .ok b { color: var(--green-d); } .ats-checks .no b { color: #B42318; }
.ats-fixbox { background: #EAF8F0; border: 1px solid #BFE8D0; border-radius: 14px; padding: 14px; text-align: center; }
.ats-fixbox p { font-size: 14px; color: #14532D; margin: 4px 0 10px; }
