/* Glaig inner pages (service pages, case studies, work hub).
   Loaded after styles.css; reuses its tokens and components. */

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 1.6rem; }
.crumbs a { text-decoration: none; color: var(--mute); }
.crumbs a:hover { color: var(--paper); }
.crumbs span[aria-hidden] { color: var(--cyan); }

.p-hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); overflow: clip; border-bottom: 1px solid var(--line); }
.p-hero .grid-bg { mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 10%, transparent 75%); }
.p-hero-in { position: relative; max-width: 56rem; }
.p-title { margin-top: .4rem; font-family: var(--display); font-size: clamp(2.3rem, 6.4vw, 4.6rem); line-height: .95; letter-spacing: -.035em; }
.p-lead { margin-top: 1.6rem; max-width: 40rem; color: var(--soft); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.p-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.2rem; }
.p-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2rem; }
.p-tags li { font-size: .82rem; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; color: var(--soft); }
.p-tags .is-ai { color: var(--ink); background: var(--lime); border-color: var(--lime); font-weight: 600; }

.p-sec { padding: clamp(4rem, 9vw, 7rem) 0; }
.p-sec + .p-sec { border-top: 1px solid var(--line); }
.p-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.p-sec h2 { margin-top: 1rem; font-family: var(--display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1; }
.p-two { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { color: var(--soft); max-width: 42rem; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1.1rem; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose a { color: var(--paper); }
.prose ul { display: grid; gap: .6rem; margin-top: 1rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); }

.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2rem, 5vw, 3rem); }
.offer li { border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.4rem; background: var(--ink); transition: border-color .3s, transform .4s var(--ease); }
.offer li:hover { border-color: #22d3ee80; transform: translateY(-4px); }
.offer h3 { font-size: 1.3rem; line-height: 1.15; }
.offer p { margin-top: .5rem; color: var(--mute); font-size: .95rem; }
.offer .o-no { display: block; margin-bottom: 1rem; font: 600 .78rem var(--mono); color: var(--cyan); }

.callout { margin-top: 2rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--lime); background: #84cc1612; border-radius: 0 .8rem .8rem 0; color: var(--soft); }
.callout b { color: var(--paper); }

/* contact block */
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-in .cta-title { text-align: left; margin: 0; font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 12ch; }
.contact-in .p-lead { margin-top: 1.2rem; }
.wa-form { display: grid; gap: 1rem; border: 1px solid var(--line); border-radius: 1.6rem; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--ink-2); }
.wa-form label { display: grid; gap: .45rem; font: 600 .9rem var(--head); }
.wa-form input, .wa-form select, .wa-form textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--paper); background: var(--ink);
  border: 1px solid #ffffff2e; border-radius: .8rem; padding: .8rem .95rem; transition: border-color .2s;
}
.wa-form textarea { min-height: 6rem; resize: vertical; }
.wa-form input:focus, .wa-form select:focus, .wa-form textarea:focus { outline: none; border-color: var(--cyan); }
.wa-form .btn { justify-self: start; border: 0; cursor: pointer; }
.wa-form small { color: var(--mute); font-size: .82rem; }

/* related services */
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.related a { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.3rem; transition: border-color .3s, transform .4s var(--ease); }
.related a:hover { border-color: #22d3ee80; transform: translateY(-3px); }
.related b { display: block; font: 700 1.15rem/1.2 var(--head); }
.related span { display: block; margin-top: .4rem; color: var(--mute); font-size: .9rem; }

/* case study gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.gallery figure { margin: 0; border-radius: 1.4rem; overflow: hidden; border: 1px solid var(--line); background: var(--bg, var(--ink-2)); }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { padding: .8rem 1rem; font: .78rem/1.4 var(--mono); color: var(--mute); background: var(--ink-2); }
.next-case { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

/* footer service links */
.foot-svc { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; }
.foot-svc a { color: var(--mute); text-decoration: none; }
.foot-svc a:hover { color: var(--paper); }
.foot-svc b { font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }

@media (max-width: 62rem) {
  .p-two, .contact-in { grid-template-columns: 1fr; }
  .offer { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 40rem) {
  .offer, .related, .gallery { grid-template-columns: 1fr; }
}
.contact-in { text-align: left; }
.contact-in .p-cta { justify-content: flex-start; }
.gallery img { max-height: 80vh; object-fit: contain; margin-inline: auto; width: auto; }

/* ---------- free tools ---------- */
.t-index { margin-top: 2.2rem; grid-template-columns: repeat(5, 1fr); }
.tool-head { max-width: 48rem; }
.tool-box { margin-top: 2rem; border: 1px solid var(--line); border-radius: 1.6rem; padding: clamp(1.2rem, 3vw, 2.2rem); background: var(--ink-2); display: grid; gap: 1.2rem; }
.t-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.t-grid.t-3 { grid-template-columns: repeat(3, 1fr); }
.tool-box label { display: grid; gap: .45rem; font: 600 .9rem var(--head); }
.tool-box label small { font: 500 .75rem var(--mono); color: var(--lime); }
.tool-box label small.over { color: var(--alert); }
.tool-box input, .tool-box textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--paper); background: var(--ink); border: 1px solid #ffffff2e; border-radius: .8rem; padding: .8rem .95rem; }
.tool-box textarea { min-height: 5rem; resize: vertical; }
.tool-box input:focus, .tool-box textarea:focus { outline: none; border-color: var(--cyan); }
.t-out { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.t-out code { flex: 1 1 18rem; min-width: 0; overflow-wrap: anywhere; font: .88rem/1.5 var(--mono); color: var(--cyan); background: var(--ink); border: 1px dashed #22d3ee55; border-radius: .8rem; padding: .8rem 1rem; }
.t-out .btn { border: 0; cursor: pointer; }
.t-qr { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.t-qr [data-wa-qr] { background: #fff; padding: .8rem; border-radius: 1rem; line-height: 0; }
.t-qr [data-wa-qr]:empty { display: none; }
.t-qr img, .t-qr canvas { width: 180px; height: 180px; }
.t-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.t-result div { border-top: 3px solid var(--lime); padding-top: .8rem; }
.t-result b { display: block; font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--display); }
.t-result span { color: var(--mute); font-size: .9rem; }
.t-note { color: var(--mute); font-size: .85rem; }
.serp { display: grid; gap: .25rem; background: #fff; color: #202124; border-radius: 1rem; padding: 1.1rem 1.3rem; font-family: Arial, sans-serif; max-width: 40rem; }
.serp-url { font-size: .82rem; color: #4d5156; }
.serp-title { font-size: 1.25rem; line-height: 1.3; color: #1a0dab; }
.serp-desc { font-size: .9rem; line-height: 1.5; color: #4d5156; }
.t-table { overflow-x: auto; }
.t-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.t-table th, .t-table td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--line); }
.t-table th { font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.t-table td:nth-child(2) { font-family: var(--mono); color: var(--paper); white-space: nowrap; }
.t-table td { color: var(--soft); }
.tool-more { margin-top: 1.4rem; color: var(--mute); }
.tool + .tool { border-top: 1px solid var(--line); }

/* homepage teaser */
.tools-teaser { padding: clamp(5rem, 10vw, 8rem) 0; border-top: 1px solid var(--line); }
.tools-teaser .related { grid-template-columns: repeat(4, 1fr); }
.tools-teaser .related a b::before { content: "↗ "; color: var(--lime); }

@media (max-width: 62rem) {
  .t-index, .tools-teaser .related { grid-template-columns: repeat(2, 1fr); }
  .t-grid.t-3, .t-result { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 40rem) {
  .t-index, .tools-teaser .related, .t-grid, .t-grid.t-3, .t-result { grid-template-columns: 1fr; }
}

/* ---------- blog ---------- */
.post-title { font-size: clamp(2rem, 5vw, 3.6rem); }
.post { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.post-body { max-width: 44rem; font-size: 1.08rem; }
.post-body h2 { margin: 2.4rem 0 .2rem; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--paper); }
.post-body h2:first-child { margin-top: 0; }
.post-cta { position: sticky; top: 6rem; border: 1px solid var(--line); border-radius: 1.4rem; padding: 1.4rem; background: var(--ink-2); display: grid; gap: .7rem; }
.post-cta b { font: 700 1.3rem/1.2 var(--head); }
.post-cta p:not(.eyebrow) { color: var(--mute); font-size: .92rem; }
.post-cta .btn { justify-self: start; }
.blog-list { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 62rem) { .post { grid-template-columns: 1fr; } .post-cta { position: static; } }
@media (max-width: 40rem) { .blog-list { grid-template-columns: 1fr; } }

/* ---------- light theme: inner pages ---------- */
[data-theme="light"] .wa-form input, [data-theme="light"] .wa-form select, [data-theme="light"] .wa-form textarea,
[data-theme="light"] .tool-box input, [data-theme="light"] .tool-box textarea { border-color: #0a0d1433; background: #fff; }
[data-theme="light"] .t-out code { background: #fff; color: #0369a1; border-color: #0369a155; }
[data-theme="light"] .tool-box label small { color: #4d7c0f; }
[data-theme="light"] .tool-box label small.over { color: var(--alert); }

/* ---------- tools: number, two columns with sample, separators ---------- */
.tool-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: start; max-width: 62rem; }
.tool-no { font: 700 clamp(3.4rem, 8vw, 6rem)/.85 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--cyan); }
.tool-no small { font-size: .3em; letter-spacing: 0; -webkit-text-stroke: 0; color: var(--mute); margin-left: .2rem; }
.tool-alt { background: var(--ink-2); }
.tool-alt .tool-box { background: var(--ink); }
.tool + .tool { border-top: 0; }
.tool-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.2rem; margin-top: 2rem; align-items: stretch; }
.tool-wrap .tool-box { margin-top: 0; }
.tool-sample { position: relative; border-radius: 1.6rem; padding: clamp(1.2rem, 3vw, 1.8rem); background: linear-gradient(150deg, #246bfd26, #22d3ee14 55%, transparent), var(--ink-3); border: 1px dashed #22d3ee55; display: flex; flex-direction: column; gap: 1rem; overflow: hidden; }
.smp-k { font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.smp-k span { background: var(--lime); color: #000; padding: .2rem .45rem; border-radius: .3rem; margin-right: .4rem; font-weight: 600; }
.smp { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.smp-cap { color: var(--mute); font-size: .88rem; }

.tool-sep { position: relative; display: flex; align-items: center; gap: 1rem; padding: clamp(1.6rem, 4vw, 2.6rem) var(--gut); background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.tool-sep .ln { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan) 40%, var(--blue)); border-radius: 2px; }
.tool-sep .ln:last-child { background: linear-gradient(90deg, var(--blue), var(--cyan) 60%, transparent); }
.sep-mid { display: flex; align-items: center; gap: .9rem; padding: .55rem 1.1rem .55rem .6rem; border: 1px solid #22d3ee55; border-radius: 999px; background: var(--ink); box-shadow: 0 0 2.5rem -0.8rem #246bfd99; }
.sep-mid svg { width: 1.9rem; height: auto; fill: var(--blue); animation: sepspin 9s linear infinite; }
.sep-mid svg polygon:first-child { fill: var(--cyan); }
.sep-mid a { font: 500 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--soft); white-space: nowrap; }
.sep-mid a:hover { color: var(--cyan); }
@keyframes sepspin { 50% { transform: rotate(180deg) scale(.85); } to { transform: rotate(360deg); } }
.tool-alt + .tool-sep { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
@media (max-width: 40rem) { .sep-mid a { white-space: normal; font-size: .66rem; } .tool-sep .ln { min-width: 1rem; } }

/* sample 1: table tent */
.tent { align-self: center; width: min(100%, 15rem); background: #fff; color: #111; border-radius: 1rem; padding: 1.2rem 1.1rem 1.1rem; text-align: center; box-shadow: 0 1.4rem 2.6rem -1.2rem #000a; transform: rotate(-3deg); display: grid; gap: .6rem; justify-items: center; }
.tent-k { font: 600 .62rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #6b7280; }
.tent-qr { line-height: 0; min-height: 120px; }
.tent-qr img, .tent-qr canvas { width: 120px; height: 120px; }
.tent b { font: 700 1.15rem/1.15 var(--display); }
.tent small { font-size: .72rem; color: #6b7280; }
.smp-uses { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.smp-uses li { font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .65rem; color: var(--soft); }

/* sample 2: chat */
.mini-chat { display: grid; gap: .45rem; background: #0e1512; border-radius: 1.2rem; padding: 1rem; }
.mc { justify-self: start; max-width: 85%; background: #233029; color: #e7efe9; font-size: .85rem; padding: .45rem .75rem; border-radius: .9rem .9rem .9rem .25rem; }
.mc:nth-child(4) { outline: 1px dashed var(--lime); }

/* sample 3: phone SERP */
.mini-phone { align-self: center; width: min(100%, 16rem); background: #fff; border-radius: 1.6rem; padding: .9rem .8rem 1.2rem; border: 6px solid #1a1a1d; display: grid; gap: .7rem; font-family: Arial, sans-serif; }
.mp-bar { background: #f1f3f4; border-radius: 999px; padding: .45rem .8rem; font-size: .72rem; color: #202124; }
.mp-res { display: grid; gap: .25rem; }
.mp-res.dim i { height: .45rem; border-radius: 999px; background: #e5e7eb; }
.mp-res.dim i.s { width: 60%; }
.mp-res.you { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: .3rem; }
.mp-res.you small { font-size: .62rem; color: #4d5156; }
.mp-res.you b { font: 400 .85rem/1.25 Arial, sans-serif; color: #1a0dab; }
.mp-res.you span { font-size: .68rem; line-height: 1.4; color: #4d5156; }

/* sample 4: report */
.rep-k { font: 600 .78rem var(--head); }
.rep { display: grid; gap: .7rem; }
.rep li { display: grid; gap: .3rem; font: .75rem var(--mono); color: var(--soft); }
.rep i { display: block; height: .55rem; width: var(--w); border-radius: 999px; background: var(--grad); }

/* sample 5: ratios */
.smp-ratios { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: .8rem; }
.ratio { aspect-ratio: var(--r); height: 7.5rem; border: 1.5px solid var(--cyan); border-radius: .5rem; background: #22d3ee12; display: grid; place-content: center; text-align: center; padding: .3rem; }
.ratio.wide { height: 4.4rem; }
.ratio b { font: 700 .95rem var(--display); }
.ratio small { font-size: .6rem; color: var(--mute); line-height: 1.2; }

@media (max-width: 62rem) { .tool-wrap { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .tool-head { grid-template-columns: 1fr; } .tool-no { font-size: 3rem; } }
@media (prefers-reduced-motion: reduce) { .sep-mid svg { animation: none; } }
.smp.smp-ratios { flex-direction: row; flex-wrap: wrap; align-items: flex-end; align-content: center; justify-content: center; }
.ratio { flex: none; width: auto; }

/* ---------- tool pages v2 ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.8rem; }
.share span { font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-right: .3rem; }
.share a, .share button { font: 600 .82rem var(--head); color: var(--paper); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .85rem; text-decoration: none; cursor: pointer; transition: border-color .25s, color .25s; }
.share a:hover, .share button:hover { border-color: var(--cyan); color: var(--cyan); }
.tool-full { grid-template-columns: 1fr; }
.t-hr { border: 0; border-top: 1px dashed var(--line); margin: .4rem 0; }
.t-sub { font: 600 1rem var(--head); }
.t-result.t-1 { grid-template-columns: 1fr; }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.tcard { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.4rem; background: var(--ink-2); text-decoration: none; overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.tcard:hover { border-color: #22d3ee80; transform: translateY(-4px); }
.tcard .tool-no { font-size: 2.6rem; line-height: 1; }
.tcard b { font: 700 1.3rem/1.2 var(--head); }
.tc-for { font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.tcard p { color: var(--mute); font-size: .92rem; flex: 1; }
.tc-go { font: 600 .9rem var(--head); color: var(--blue); }
/* price tag sample */
.price-tag { align-self: center; width: min(100%, 15rem); background: #fff; color: #111; border-radius: 1rem; padding: 1.1rem 1.2rem; display: grid; gap: .45rem; box-shadow: 0 1.4rem 2.6rem -1.2rem #000a; transform: rotate(2deg); }
.price-tag small { font: 600 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6b7280; }
.price-tag div { display: flex; justify-content: space-between; border-top: 1px dashed #e5e7eb; padding-top: .4rem; font-size: .9rem; }
.price-tag .pt-hl b { color: #4d7c0f; font-size: 1.2rem; }
/* invoice */
.inv-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.inv-form { display: grid; gap: 1rem; }
.inv-items { display: grid; gap: .5rem; }
.inv-row { display: grid; grid-template-columns: 1fr 4.5rem 6.5rem 2rem; gap: .4rem; align-items: center; }
.inv-head span { font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.inv-row button { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--mute); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.inv-row button:hover { color: var(--alert); border-color: var(--alert); }
.inv-add { justify-self: start; border: 0; cursor: pointer; background: transparent; color: var(--cyan); padding-left: 0; }
.tool-box select { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--paper); background: var(--ink); border: 1px solid #ffffff2e; border-radius: .8rem; padding: .8rem .95rem; }
[data-theme="light"] .tool-box select { background: #fff; border-color: #0a0d1433; }
.inv-check { display: flex !important; align-items: center; gap: .5rem; font: 500 .88rem var(--body) !important; color: var(--mute); }
.inv-check input { width: auto !important; }
.inv-paper { position: sticky; top: 6rem; background: #fff; color: #111; border-radius: .6rem; padding: 2rem; font: 400 .88rem/1.5 Inter, system-ui, sans-serif; box-shadow: 0 2rem 4rem -2rem #000c; display: grid; gap: 1.2rem; aspect-ratio: 1 / 1.414; overflow: auto; }
.ip-top { display: flex; justify-content: space-between; gap: 1rem; }
.ip-top small, .ip-to small { display: block; color: #6b7280; font-size: .78rem; }
.ip-from { font: 700 1.15rem/1.2 var(--head); }
.ip-title { text-align: right; }
.ip-title b { font: 700 1.6rem/1 var(--display); letter-spacing: .04em; color: #246bfd; }
.ip-to b { display: block; font-weight: 700; }
.ip-table { width: 100%; border-collapse: collapse; }
.ip-table th { text-align: left; font: 600 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #6b7280; border-bottom: 2px solid #111; padding: .4rem .3rem; }
.ip-table td { padding: .5rem .3rem; border-bottom: 1px solid #e5e7eb; }
.ip-table th:not(:first-child), .ip-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.ip-tot { justify-self: end; width: min(100%, 16rem); display: grid; gap: .3rem; }
.ip-tot div { display: flex; justify-content: space-between; }
.ip-grand { border-top: 2px solid #111; padding-top: .4rem; font-weight: 700; font-size: 1.05rem; }
.ip-notes { color: #374151; font-size: .82rem; border-top: 1px solid #e5e7eb; padding-top: .8rem; }
.ip-credit { color: #9ca3af; font-size: .68rem; text-align: center; margin-top: auto; }
@media (max-width: 62rem) { .inv-app { grid-template-columns: 1fr; } .inv-paper { position: static; aspect-ratio: auto; } }
@media print {
  body.printing-invoice * { visibility: hidden !important; }
  body.printing-invoice .inv-paper, body.printing-invoice .inv-paper * { visibility: visible !important; }
  body.printing-invoice .inv-paper { position: fixed; inset: 0; margin: 0; box-shadow: none; border-radius: 0; aspect-ratio: auto; padding: 12mm; overflow: visible; }
  body.printing-invoice .spot, body.printing-invoice .top { display: none !important; }
  @page { size: A4; margin: 0; }
}
.inv-paper { align-content: start; }
@media print { body.printing-invoice .ip-credit { position: absolute; left: 0; right: 0; bottom: 10mm; } }

/* ---- Photo & PDF tools (converter.js) ---- */
[lang="bn"] { font-family: "Hind Siliguri", "Noto Sans Bengali", "Kohinoor Bangla", "Bangla Sangam MN", "Nirmala UI", "Vrinda", sans-serif; letter-spacing: 0; }
.p-bn { margin-top: .9rem; color: var(--soft); font-size: 1.05rem; line-height: 1.7; max-width: 46rem; }
.tc-bn { color: var(--soft); font-size: .88rem; line-height: 1.6; }
.tg-h { margin: .4rem 0 .6rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.tg-h + .p-lead { margin-bottom: 1.6rem; }
.cv { display: grid; gap: 1.1rem; }
.cv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.cv-panel { display: grid; gap: 1rem; align-content: start; border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.1rem; background: var(--ink); }
.cv-h { font: 700 1.05rem var(--head); display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.cv-h > span:first-child:not([lang]) { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--blue); color: #fff; font-size: .85rem; }
.cv-h [lang="bn"] { color: var(--mute); font-weight: 500; }
.tool-box .cv-drop { position: relative; display: grid; justify-items: center; gap: .25rem; text-align: center; padding: 1.6rem 1rem; border: 2px dashed #22d3ee66; border-radius: 1.1rem; background: #22d3ee0a; cursor: pointer; transition: border-color .2s, background .2s; }
.tool-box .cv-drop:hover, .tool-box .cv-drop.over, .tool-box .cv-drop:focus-within { border-color: var(--cyan); background: #22d3ee17; }
.cv-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100% !important; height: 100%; padding: 0 !important; }
.cv-drop b { font: 700 1.1rem var(--head); color: var(--paper); }
.cv-drop b::before { content: "+"; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: .5rem; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.1rem; vertical-align: -.15rem; }
.cv-drop [lang="bn"] { font-weight: 500; color: var(--soft); }
.cv-drop small { font: 400 .8rem var(--body); color: var(--mute); }
.cv-crop { display: grid; gap: .6rem; justify-items: center; }
.cv-crop canvas { width: 100%; max-width: 20rem; height: auto; border-radius: .6rem; border: 1px solid var(--line); background: #fff; touch-action: none; cursor: grab; }
.cv-crop canvas:active { cursor: grabbing; }
.tool-box .cv-zoom { display: flex; align-items: center; gap: .7rem; width: 100%; max-width: 20rem; }
.tool-box input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--blue); height: 2rem; }
.cv-pp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.cv-side { display: grid; gap: .9rem; }
.cv-side .btn, .cv .btn[data-go], .cv .btn[data-all] { justify-self: start; border: 0; cursor: pointer; }
.cv .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.cv .btn [lang="bn"] { font-weight: 500; opacity: .85; margin-left: .25rem; }
.cv-msg { font-size: .9rem; color: var(--soft); }
.cv-msg.ok { color: var(--lime); }
.cv-msg.bad { color: #fca5a5; }
.cv-out { display: grid; gap: .6rem; }
.cv-out:empty { display: none; }
.cv-item { display: flex; align-items: center; gap: .8rem; padding: .6rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--ink-3); }
.cv-item img { width: 3.4rem; height: 3.4rem; object-fit: contain; border-radius: .4rem; background: #fff; flex: none; }
.cv-ic { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: .4rem; background: #ef444422; color: #fca5a5; font: 700 .8rem var(--mono); flex: none; }
.cv-item > div { flex: 1; min-width: 0; display: grid; }
.cv-item b { font: 600 .9rem var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-item small { color: var(--mute); font-size: .8rem; }
.cv-item .btn { flex: none; }
.cv-item .btn [lang="bn"] { display: none; }
.cv-ctl { display: flex; gap: .3rem; flex: none; }
.cv-ctl button { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--paper); cursor: pointer; font-size: .95rem; }
.cv-ctl button:disabled { opacity: .3; cursor: default; }
.cv-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.cv-chips button, .cv-tabs button { font: 600 .88rem var(--head); color: var(--paper); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .55rem .95rem; cursor: pointer; }
.cv-chips button.on, .cv-tabs button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.cv-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.cv-tabs [lang="bn"] { font-weight: 500; opacity: .8; }
[data-pane] { display: grid; gap: 1rem; }
[data-pane][hidden], .cv [hidden] { display: none !important; }
.tool-box .t-grid label small { color: var(--lime); }
@media (max-width: 48rem) {
  .cv-two, .cv-pp { grid-template-columns: 1fr; }
  .cv-item { flex-wrap: wrap; }
  .cv-item > div { flex-basis: calc(100% - 4.2rem); }
  .cv-item .btn { width: 100%; justify-content: center; text-align: center; }
}
[data-theme="light"] .cv-panel { background: #fff; }
[data-theme="light"] .cv-item { background: #f4f6fa; }
[data-theme="light"] .cv-msg.ok { color: #4d7c0f; }
[data-theme="light"] .cv-msg.bad { color: #b91c1c; }
[data-theme="light"] .cv-drop { background: #0369a10a; border-color: #0369a166; }
[data-theme="light"] .cv-ic { color: #b91c1c; }

/* ---- Statement converter (statement.js) ---- */
.st-pass { display: grid; gap: .8rem; padding: 1.1rem; border: 1px solid #84cc1666; border-radius: 1rem; background: #84cc160d; }
.st-pass-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.st-pass-row input { flex: 1 1 14rem; width: auto !important; }
.st-pass-row .btn { border: 0; cursor: pointer; }
.st-skip { background: none; border: 0; color: var(--mute); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.st-res { display: grid; gap: 1.1rem; }
.st-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.st-card { border: 1px solid var(--line); border-radius: 1rem; padding: .85rem 1rem; background: var(--ink); display: grid; gap: .2rem; min-width: 0; }
.st-card span { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.st-card b { font: 700 1.15rem/1.2 var(--head); overflow-wrap: anywhere; }
.st-card small { color: var(--mute); font-size: .78rem; }
.st-check { display: grid; gap: .35rem; padding: .9rem 1.1rem; border-radius: 1rem; background: var(--ink); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.st-check .good { color: var(--lime); }
.st-check .warn { color: #fbbf24; }
.st-check .bad { color: #fca5a5; }
.st-dl { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.st-dl > .btn { border: 0; cursor: pointer; }
.st-table { max-height: 34rem; overflow: auto; border: 1px solid var(--line); border-radius: 1rem; background: var(--ink); }
.st-table table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.st-table th { position: sticky; top: 0; background: var(--ink-3); text-align: left; font: 600 .78rem var(--head); padding: .65rem .7rem; white-space: nowrap; z-index: 1; }
.st-table td { padding: .55rem .7rem; border-top: 1px solid var(--line); vertical-align: top; }
.st-table td small { display: block; color: var(--mute); font-size: .75rem; }
.st-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-table tr.bad td { background: #ef444422; }
.st-cat { display: inline-block; font-size: .72rem; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .5rem; white-space: nowrap; }
.st-fix { border: 1px solid var(--line); border-radius: 1rem; padding: .9rem 1.1rem; background: var(--ink); }
.st-fix summary { cursor: pointer; font: 600 .92rem var(--head); }
.st-fix[open] summary { margin-bottom: 1rem; }
.st-fix .t-grid + .t-grid { margin-top: 1rem; }
.cv-file small .bad { color: #fca5a5; }
@media (max-width: 62rem) { .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-cards .st-card:first-child { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .st-dl > .btn { width: 100%; justify-content: center; } }
[data-theme="light"] .st-card, [data-theme="light"] .st-check, [data-theme="light"] .st-table, [data-theme="light"] .st-fix { background: #fff; }
[data-theme="light"] .st-table th { background: #eef1f6; }
[data-theme="light"] .st-check .good { color: #4d7c0f; }
[data-theme="light"] .st-check .warn { color: #b45309; }
[data-theme="light"] .st-check .bad, [data-theme="light"] .cv-file small .bad { color: #b91c1c; }
.st-table table { min-width: 46rem; }
.st-table td:nth-child(2) { min-width: 14rem; }
.cv-out .cv-file { flex-wrap: nowrap; }
.cv-out .cv-file > div { flex-basis: auto; }
.st-swipe { display: none; }
@media (max-width: 48rem) { .st-swipe { display: block; margin-bottom: -.5rem; } }

/* ---- Free-tools search (tools-search.js) ---- */
.ts { display: grid; gap: .8rem; margin-top: 1.8rem; max-width: 46rem; }
.ts-box { position: relative; display: flex; align-items: center; gap: .7rem; padding: .35rem .5rem .35rem 1.1rem; border: 1px solid #22d3ee55; border-radius: 999px; background: var(--ink-2); box-shadow: 0 0 0 0 #22d3ee00; transition: border-color .25s, box-shadow .25s; cursor: text; }
.ts-box:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px #22d3ee22, 0 1rem 3rem -1.5rem #246bfd; }
.ts-box svg { width: 1.35rem; height: 1.35rem; flex: none; fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; }
.ts-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--paper); font: 500 1.1rem/1.4 var(--body); padding: .85rem 0; outline: none; }
.ts-box input::placeholder { color: var(--mute); }
.ts-box input::-webkit-search-cancel-button { filter: invert(.6); }
.ts-box kbd { flex: none; font: 600 .8rem var(--mono); color: var(--mute); border: 1px solid var(--line); border-radius: .4rem; padding: .2rem .5rem; margin-right: .5rem; }
.ts-try { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.ts-try span { font: 500 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-right: .2rem; }
.ts-try button { font: 600 .84rem var(--head); color: var(--soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .42rem .8rem; cursor: pointer; transition: border-color .2s, color .2s; }
.ts-try button:hover { border-color: var(--cyan); color: var(--paper); }
.ts-filter { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.ts-filter .wrap { display: flex; gap: .5rem; padding-block: .8rem; overflow-x: auto; scrollbar-width: none; }
.ts-filter .wrap::-webkit-scrollbar { display: none; }
.ts-filter button { flex: none; font: 600 .88rem var(--head); color: var(--soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .95rem; cursor: pointer; white-space: nowrap; }
.ts-filter button i { font: 600 .72rem var(--mono); font-style: normal; color: var(--mute); margin-left: .25rem; }
.ts-filter button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ts-filter button.on i { color: #ffffffcc; }
.ts-res .tcards { margin-top: 1.2rem; }
.ts-count { color: var(--soft); font-size: 1rem; }
.ts-enter { color: var(--mute); font-size: .82rem; margin-left: .5rem; }
.tcard mark, .tools-teaser mark { background: #22d3ee33; color: inherit; border-radius: .2rem; padding: 0 .1rem; }
.tg { scroll-margin-top: 4rem; }
.ts-mini { display: flex; gap: .6rem; margin: 1.2rem 0 1.6rem; max-width: 30rem; }
.ts-mini input { flex: 1; min-width: 0; font: 400 1rem var(--body); color: var(--paper); background: var(--ink-2); border: 1px solid #ffffff2e; border-radius: 999px; padding: .7rem 1.1rem; }
.ts-mini input:focus { outline: none; border-color: var(--cyan); }
.ts-mini .btn { border: 0; cursor: pointer; }
.tools-teaser .ts { margin: 1.6rem 0 1.4rem; }
.tools-teaser .ts-res { padding: 0; border: 0; }
.tools-teaser .ts-count { margin-bottom: 1rem; }
.tools-teaser .ts-res .related { margin-top: 0; }
@media (max-width: 40rem) {
  .ts-box input { font-size: 1rem; }
  .ts-box kbd { display: none; }
}
[data-theme="light"] .ts-box { background: #fff; border-color: #0369a155; }
[data-theme="light"] .ts-box svg { stroke: #0369a1; }
[data-theme="light"] .ts-filter { background: color-mix(in srgb, #fff 88%, transparent); }
[data-theme="light"] .ts-mini input { background: #fff; border-color: #0a0d1433; }
[data-theme="light"] .tcard mark, [data-theme="light"] .tools-teaser mark { background: #0369a122; }
.ts-filter { top: calc(4.5rem + 1px); z-index: 19; }
.tg { scroll-margin-top: 9.5rem; }
.ts.has-q .ts-try { display: none; }
.ts-res { padding-top: clamp(1.6rem, 4vw, 2.4rem); }

/* ---------- CV maker (cv.js) ---------- */
.cvm { display: grid; gap: 1.2rem; }
.cvm [hidden] { display: none !important; }
.cvm-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.cvm-form, .cvm-list { display: grid; gap: .9rem; align-content: start; }
.cvm-sec { border: 1px solid var(--line); border-radius: 1.1rem; background: var(--ink); }
.cvm-sec > summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; font: 700 1.02rem var(--head); cursor: pointer; list-style: none; }
.cvm-sec > summary::-webkit-details-marker { display: none; }
.cvm-sec > summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; line-height: 1; }
.cvm-sec[open] > summary::after { content: "–"; }
.cvm-body { display: grid; gap: 1rem; padding: 0 1.1rem 1.1rem; }
.cvm-tools, .cvm-row-top { display: flex; align-items: center; gap: .8rem; }
.cvm-row-top b { flex: 1; font: 600 .9rem var(--head); }
.cvm-row { display: grid; gap: .9rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.cvm-wide { grid-column: 1 / -1; }
.tool-box .cvm-soft { font: 400 .86rem var(--body); color: var(--soft); }
.cvm-link { background: none; border: 0; padding: .4rem 0; color: var(--mute); text-decoration: underline; cursor: pointer; font: 500 .85rem var(--body); }
.cvm-link:hover { color: var(--paper); }
.cvm-link[data-sure] { color: var(--alert); }
.cvm-add { justify-self: start; background: transparent; border: 1px dashed #22d3ee66; border-radius: 999px; padding: .6rem 1.1rem; color: var(--cyan); font: 600 .9rem var(--head); cursor: pointer; }
.cvm-side { position: sticky; top: 5.5rem; display: grid; gap: .9rem; max-height: calc(100vh - 6.5rem); overflow: auto; }
.cvm-dl { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.cvm-dl .btn { border: 0; cursor: pointer; }
.cvm-dl .btn:disabled { opacity: .45; }
.cvm-alt { background: transparent; color: var(--paper); border: 1px solid #22d3ee88; border-radius: 999px; padding: .85rem 1.4rem; font: 600 .95rem var(--head); cursor: pointer; }
.cvm-prev { display: grid; gap: .9rem; }
.cvm-prev svg { display: block; width: 100%; height: auto; background: #fff; border-radius: .4rem; box-shadow: 0 1rem 2.5rem -1.2rem #000a; outline: 1px solid #0a0d1422; }
.cvm-tips { display: grid; gap: .35rem; padding-left: 1.1rem; list-style: disc; color: #fbbf24; font-size: .88rem; }
.cvm-tips .ok { color: var(--lime); }
.cvm-store { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1rem; }
.tool-box .cvm-file { position: relative; display: inline-block; overflow: hidden; }
.tool-box .cvm-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; padding: 0; }
.cvm-file:focus-within { outline: 2px solid var(--cyan); }
.cvm-views { display: none; }
[data-theme="light"] .cvm-tips { color: #92400e; }
[data-theme="light"] .cvm-tips .ok { color: #4d7c0f; }
[data-theme="light"] .cvm-add { color: #0e7490; border-color: #0e749088; }
@media (max-width: 62rem) {
  .cvm-main { grid-template-columns: minmax(0, 1fr); }
  .cvm-side { position: static; max-height: none; }
  .cvm-views { display: flex; position: sticky; top: 4.5rem; z-index: 3; padding: .5rem 0; background: var(--ink-2); }
  .cvm[data-show="edit"] .cvm-side, .cvm[data-show="preview"] .cvm-form { display: none; }
}

/* ---------- ATS CV converter (cv-read.js) ---------- */
.ats { display: grid; gap: 1.3rem; }
.ats [hidden] { display: none !important; }
.ats-res { display: grid; gap: 1rem; scroll-margin-top: 6rem; }
.ats-res h3 { font: 700 1.15rem var(--head); }
.ats-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .7rem; list-style: none; padding: 0; }
.ats-checks li { display: grid; grid-template-columns: auto 1fr; gap: .15rem .6rem; align-items: start; align-content: start; border: 1px solid var(--line); border-radius: .9rem; padding: .75rem .9rem; background: var(--ink); }
.ats-checks b { font: 600 .92rem var(--head); }
.ats-checks small { grid-column: 1 / -1; color: var(--mute); font-size: .82rem; }
.ats-tag { font: 600 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px; background: #84cc1626; color: var(--lime); }
.is-fix .ats-tag { background: #fbbf2426; color: #fbbf24; }
.is-info .ats-tag { background: #22d3ee26; color: var(--cyan); }
.ats-note { border-left: 3px solid #fbbf24; padding: .5rem .9rem; color: var(--soft); font-size: .92rem; }
.ats-orig { border: 1px solid var(--line); border-radius: 1.1rem; background: var(--ink); }
.ats-orig summary { padding: 1rem 1.1rem; font: 700 1rem var(--head); cursor: pointer; }
.ats-orig pre { max-height: 26rem; overflow: auto; margin: 0; padding: 0 1.1rem 1.1rem; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .85rem/1.6 var(--body); color: var(--soft); }
.cvm-doubt input, .tool-box .cvm-doubt textarea { border-color: #fbbf24; }
.cvm-q { margin-left: .5rem; font: 600 .72rem var(--mono); color: #fbbf24; }
[data-theme="light"] .cvm-q, [data-theme="light"] .is-fix .ats-tag { color: #92400e; }
[data-theme="light"] .ats-tag { color: #4d7c0f; }
[data-theme="light"] .is-info .ats-tag { color: #0e7490; }
.cvm-photo { display: flex; gap: 1.1rem; align-items: flex-start; flex-wrap: wrap; }
.cvm-photo canvas, .cvm-photo img { width: 8.2rem; height: auto; border-radius: .6rem; border: 1px solid var(--line); background: #fff; touch-action: none; }
.cvm-photo canvas { cursor: grab; } .cvm-photo canvas:active { cursor: grabbing; }
.cvm-photo canvas:focus-visible { outline: 2px solid var(--cyan); }
.cvm-ph-side { flex: 1 1 12rem; display: grid; gap: .6rem; justify-items: start; }
.tool-box .cvm-ph-side input[type="range"] { padding: 0; }

/* ---------- CV writing assistant (cv-ai.js) ---------- */
.cva { display: grid; gap: 1.1rem; border: 1px solid #22d3ee55; border-radius: 1.3rem; padding: clamp(1rem, 2.5vw, 1.6rem); background: linear-gradient(140deg, #22d3ee12, #246bfd14); }
.cva[hidden], .cva [hidden] { display: none !important; }
.cva h3 { font: 700 clamp(1.25rem, 2.6vw, 1.6rem)/1.2 var(--display); }
.cva-top { display: grid; gap: .3rem; }
.cva-btns { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: center; }
.cva-btns:empty, .cva .cv-chips:empty, .cva-review:empty { display: none; }
.cva .btn, .cva-inline .btn { border: 0; cursor: pointer; }
.cva-review, .cva-inline { display: grid; gap: 1rem; }
.cva-review { scroll-margin-top: 6rem; }
.cva-ticks { display: grid; gap: .5rem; justify-items: start; }
.tool-box .cva-tick { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center; width: 100%; padding: .7rem .85rem; min-height: 2.9rem; border: 1px solid var(--line); border-radius: .8rem; font: 400 .95rem/1.4 var(--body); cursor: pointer; background: var(--ink); }
.tool-box .cva-tick:has(input:checked) { border-color: var(--lime); background: #84cc1614; }
.tool-box .cva-tick:focus-within { outline: 2px solid var(--cyan); }
.tool-box .cva-tick input { width: 1.2rem; height: 1.2rem; padding: 0; accent-color: var(--blue); }
.cva-consent { display: grid; gap: .8rem; padding: 1rem 1.1rem; border: 1px solid #84cc1666; border-radius: 1rem; background: #84cc160d; font-size: .93rem; }
.cva-consent summary { cursor: pointer; font-weight: 600; }
.cva-sent { margin: .6rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .82rem/1.5 var(--mono); color: var(--soft); max-height: 14rem; overflow: auto; }

/* ---------- CV tools: step-by-step screens (cv-flow.js) ---------- */
.cvf, .cvf-stage { display: grid; gap: 1.1rem; }
.cvf { scroll-margin-top: 6rem; }
.cvf[hidden], .cvf [hidden] { display: none !important; }
.cvf-stage:empty, .cvf-nav:empty { display: none; }
.cvf-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; list-style: none; padding: 0; }
.cvf-bar li { border-top: 4px solid var(--line); padding-top: .45rem; font: 600 .82rem var(--head); color: var(--mute); }
.cvf-bar .done { border-color: var(--lime); }
.cvf-bar .now { border-color: var(--blue); color: var(--paper); }
.cvf-h { display: grid; gap: .3rem; }
.cvf-h h3 { font: 700 clamp(1.5rem, 4vw, 2rem)/1.15 var(--display); outline: none; }
.cvf-h .t-note { font-size: .98rem; }
.cvf-stage > label input, .cvf-stage > label textarea { font-size: 1.1rem; }
.cvf-card { display: grid; gap: .9rem; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--ink); padding: 1.1rem; }
.cvf-card > b { font: 700 1.1rem var(--head); }
.cvf-nav { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.cvf .btn { border: 0; cursor: pointer; }
.cvf .btn:disabled { opacity: .55; }
.cvf-priv { font-size: .88rem; color: var(--mute); }
.cvf-priv summary { cursor: pointer; text-decoration: underline; width: fit-content; }
.cvf-priv[open] { display: grid; gap: .5rem; }
.cva-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tool-box .cva-chips .cva-tick { width: auto; }
.cvf-diff { display: grid; gap: .45rem; border: 1px solid var(--line); border-radius: .9rem; padding: .85rem 1rem; }
.cvf-diff small { color: var(--mute); }
.cvf-diff del { color: var(--mute); text-decoration: none; }
.cvf-diff del::before { content: "Before: "; font-weight: 600; }
.cvf-diff ins { text-decoration: none; }
.cvf-diff ins::before { content: "After: "; font-weight: 600; color: var(--lime); }
[data-theme="light"] .cvf-diff ins::before { color: #4d7c0f; }
/* show only the part of the editor a step needs */
.cvm[data-only="details"] .cvm-adv, .cvm[data-only="check"] .cvm-adv, .cvm[data-only="result"] .cvm-adv,
.cvm[data-only="details"] .cvm-side, .cvm[data-only="check"] .cvm-side, .cvm[data-only="result"] .cvm-main > .cvm-form,
.cvm[data-only="details"] .cvm-store, .cvm[data-only="check"] .cvm-store, .cvm[data-only="details"] .cvm-views, .cvm[data-only="check"] .cvm-views, .cvm[data-only="result"] .cvm-views,
.cvm[data-only="details"] [data-sample], .cvm[data-only="check"] [data-sample], .cvm[data-only="details"] .cvm-tools, .cvm[data-only="check"] .cvm-tools,
.cvm[data-only="details"] [data-form] > .cvm-add, .cvm[data-only="check"] [data-form] > .cvm-add, .cvm[data-only="details"] .cvm-foot, .cvm[data-only="check"] .cvm-foot,
.cvm[data-only="details"] .cvm-sec:not([data-p="basics"]):not([data-p="education"]):not([data-p="personal"]) { display: none !important; }
.cvm[data-only="details"] .cvm-main, .cvm[data-only="check"] .cvm-main, .cvm[data-only="result"] .cvm-main { grid-template-columns: minmax(0, 1fr); }
.cvm[data-only="result"] .cvm-side { position: static; max-height: none; display: grid !important; }
.cvm[data-only="result"] .cvm-prev { max-width: 44rem; }
.ats[data-view="1"] .cv-drop, .ats[data-view="1"] [data-rmsg], .ats[data-view="1"] [data-replace], .ats[data-view="0"] .ats-res { display: none !important; }
.ats-fold > summary { cursor: pointer; font: 600 1rem var(--head); }
.ats-fold[open] { display: grid; gap: .9rem; }
.cvf-stage > .cvm-alt { justify-self: start; }

/* quick answer block on service pages + guide tables */
.glance-sec { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.glance { display: grid; gap: 1.5rem; }
.glance-a { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--paper); max-width: 52rem; }
.glance dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; }
.glance dl div { border-top: 1px solid var(--line); padding-top: .8rem; }
.glance dt { font-size: .8rem; color: var(--cyan); }
.glance dd { margin: .25rem 0 0; color: var(--soft); }
.glance dd a { color: var(--paper); }
@media (max-width: 800px) { .glance dl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .glance dl { grid-template-columns: 1fr; } }
.t-scroll { overflow-x: auto; margin: 1.2rem 0; }
.post-table { width: 100%; border-collapse: collapse; min-width: 30rem; }
.post-table th, .post-table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-table th { color: var(--paper); }
.post-body ol { padding-left: 1.3rem; display: grid; gap: .5rem; margin-top: 1rem; list-style: decimal; }
.post-body h3 { margin-top: 1.6rem; color: var(--paper); }
.post-body h3 + p { margin-top: .4rem; }
.post > * { min-width: 0; }

/* cookie choice */
.ck { position: fixed; z-index: 90; inset: auto 1rem 1rem 1rem; max-width: 44rem; margin-inline: auto; display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--ink-3); color: var(--paper); box-shadow: 0 10px 40px #0006; font-size: .92rem; line-height: 1.45; }
.ck p { margin: 0; } .ck a { color: inherit; }
.ck div { display: flex; gap: .5rem; flex: none; }
.ck button { font: inherit; font-weight: 600; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid #246bfd; background: #246bfd; color: #fff; cursor: pointer; white-space: nowrap; }
.ck-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) { .ck { flex-direction: column; align-items: stretch; } .ck div button { flex: 1; } }
@media print { .ck { display: none; } }
button.btn { border: 0; cursor: pointer; }
