/* ফয়জার এআই কম্পোজ — নতুন নকশা (২০২৬-১০-২৬, iLovePDF-ধাঁচ): হালকা ধূসর জমিন, সাদা কার্ড, একটিই মূল রং (সবুজ), প্রচুর ফাঁকা জায়গা।
 * অংশ: টোকেন ও ডার্ক · ল্যান্ডিং index.html (lp-) · কাজের পাতা app.html (আপলোড, ডান পাশের বাছাই-তালিকা opt-/acc-, ফলাফল rs-) · সাব-পাতা · পুরোনো অংশের ডার্ক।
 * হেডার/ফুটার: css/fayzar-theme.css। কাজের পাতার মূল কাঠামো css/home.css-এ (এখানে শুধু ওপর-লেখা)। ১০০% লোকাল। ডার্ক: html.dark (js/site-ui.js)। */
:root {
  --c-bg: #F6F8F7; --c-surface: #FFFFFF; --c-soft: #EEF6F1; --c-soft-2: #DDEFE5;
  --c-text: #17201B; --c-text-2: #4A5650; --c-text-3: #5F6B65;
  --c-line: #E3E9E6; --c-line-2: #CFD9D4;
  --c-brand: #1E7B4F; --c-brand-hover: #176540; --c-brand-ink: #FFFFFF; --c-ring: rgba(30, 123, 79, .35);
  --c-accent: #9A4A06; --c-warn-bg: #FFF2DC;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --sh-1: 0 1px 2px rgba(16, 32, 24, .04), 0 2px 6px rgba(16, 32, 24, .05);
  --sh-2: 0 14px 34px rgba(16, 40, 28, .13);
  --f-body: 'Noto Sans Bengali', 'Hind Siliguri', 'Segoe UI', system-ui, sans-serif;
  --f-head: 'Outfit', 'Noto Sans Bengali', 'Hind Siliguri', 'Segoe UI', sans-serif;
  --w-max: 1200px;
}
html.dark {
  --c-bg: #0E1411; --c-surface: #151D19; --c-soft: #17251E; --c-soft-2: #1D3127;
  --c-text: #E6EDE9; --c-text-2: #B4C1BA; --c-text-3: #93A39B;
  --c-line: #25312B; --c-line-2: #33433B;
  --c-brand: #3DB57A; --c-brand-hover: #52C78C; --c-brand-ink: #04140B; --c-ring: rgba(61, 181, 122, .4);
  --c-accent: #F0A24B; --c-warn-bg: #2A2112;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35); --sh-2: 0 14px 34px rgba(0, 0, 0, .5);
}
html { scroll-behavior: smooth; }
body.page-landing, body.page-app, body.page-sub { background: var(--c-bg); color: var(--c-text); font-family: var(--f-body); overflow-x: hidden; }
:focus-visible { outline: 3px solid var(--c-ring); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--c-brand); color: var(--c-brand-ink); padding: 8px 14px; border-radius: var(--r-sm); z-index: 200; }
.skip-link:focus { top: 8px; }

/* ===== ল্যান্ডিং (index.html) ===== */
body.page-landing { margin: 0; line-height: 1.55; }
.page-landing *, .page-landing *::before, .page-landing *::after { box-sizing: border-box; }
:where(.page-landing) :where(h1, h2, p, figure, ul, ol) { margin: 0; }   /* :where — শূন্য specificity, তাই lp- ক্লাসের margin জেতে */
:where(.page-landing) img { display: block; max-width: 100%; height: auto; }
.page-landing [hidden] { display: none !important; }
.page-landing .fz-foot { margin-top: 0; }
.lp-wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 24px; }

/* হিরো: শুধু এক লাইনের পরিচয় */
.lp-hero { padding: 64px 0 6px; text-align: center; }
.lp-hero h1 { font: 800 clamp(1.9rem, 4.2vw, 3rem)/1.25 var(--f-head); letter-spacing: -.01em; max-width: 900px; margin: 0 auto 14px; }
.lp-hero p { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.7; color: var(--c-text-2); max-width: 700px; margin: 0 auto; }

/* সেবা ও টুলসের কার্ড-গ্রিড + হালকা দল (চিপ) */
.lp-tools { padding: 34px 0 80px; scroll-margin-top: 70px; }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 30px; }
.lp-chips button { font: 600 .92rem/1 var(--f-body); color: var(--c-text-2); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.lp-chips button:hover { color: var(--c-text); border-color: var(--c-line-2); }
.lp-chips button[aria-pressed="true"] { color: var(--c-surface); background: var(--c-text); border-color: var(--c-text); }
.lp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 172px; padding: 22px 22px 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); color: var(--c-text); text-decoration: none; box-shadow: var(--sh-1); transition: transform .18s, box-shadow .18s, border-color .18s; }
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--c-line-2); }
.lp-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--c-soft); color: var(--c-brand); margin-bottom: 8px; }
.lp-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-card b { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.lp-d { font-size: .9rem; line-height: 1.6; color: var(--c-text-2); }
.lp-tag { position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--c-warn-bg); color: var(--c-accent); }

/* ===== ১১-০২ হোম: শান্ত, পরিষ্কার — ৩টি আসল সেবা + টেমপ্লেট-তালিকা ===== */
.page-landing .lp-hero { padding: 76px 0 8px; }
.page-landing .lp-hero p { max-width: 780px; }
.lp-kicker { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--c-brand); background: var(--c-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px; }
.lp-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.lp-btn, .lp-btn-o { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border-radius: 12px; font: 700 1.02rem/1.2 var(--f-body); text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.lp-btn { background: var(--c-brand); color: var(--c-brand-ink); box-shadow: 0 8px 20px rgba(30, 123, 79, .24); }
.lp-btn:hover { background: var(--c-brand-hover); transform: translateY(-1px); }
.lp-btn-o { color: var(--c-text); background: var(--c-surface); border: 1.5px solid var(--c-line-2); }
.lp-btn-o:hover { border-color: var(--c-brand); color: var(--c-brand); }
.page-landing .lp-tools { padding: 48px 0 72px; }
.lp-grid.lp-grid-3 { grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; max-width: 1080px; margin: 0 auto; }
.lp-grid-3 .lp-card { min-height: 210px; padding: 26px 26px 24px; }
.lp-grid.lp-grid-more { max-width: 1180px; margin: 0 auto; }.lp-grid-3 .lp-card b { font-size: 1.18rem; }
.lp-card.lp-main { background: linear-gradient(160deg, var(--c-soft) 0%, var(--c-surface) 70%); border-color: var(--c-line-2); }
.lp-card.lp-main .lp-ic { background: var(--c-brand); color: var(--c-brand-ink); }
.lp-tag-main { background: var(--c-brand); color: var(--c-brand-ink); }
.lp-go { margin-top: auto; padding-top: 10px; font-weight: 800; color: var(--c-brand); transition: transform .15s; }
.lp-card:hover .lp-go { transform: translateX(4px); }
.lp-tpl { padding-top: 64px; border-top: 1px solid var(--c-line); scroll-margin-top: 70px; }
.lp-tpl .lp-sub { margin-bottom: 32px; }
.lp-tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1080px; margin: 0 auto; }
.lp-tpl-g { padding: 18px 18px 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.lp-tpl-g > b { display: block; font-size: .98rem; margin-bottom: 12px; }
.lp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-pills a { font-size: .84rem; line-height: 1.3; color: var(--c-text-2); text-decoration: none; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-bg); transition: color .15s, border-color .15s; }
.lp-pills a:hover, .lp-pills a:focus-visible { color: var(--c-brand); border-color: var(--c-brand); }
@media (max-width: 980px) { .lp-grid.lp-grid-3 { grid-template-columns: 1fr 1fr; } .lp-grid-3 .lp-main { grid-column: 1 / -1; } .lp-tpl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .page-landing .lp-hero { padding: 44px 0 4px; }
  .lp-cta { flex-direction: column; align-items: stretch; max-width: 360px; margin-left: auto; margin-right: auto; }
  .lp-grid.lp-grid-3, .lp-tpl-grid { grid-template-columns: 1fr; }
  .lp-grid-3 .lp-card { min-height: 0; }
  .page-landing .lp-tools { padding: 32px 0 48px; }
}

/* সাধারণ সেকশন */
.lp-sec { padding: 80px 0; }
.lp-sec.lp-white { background: var(--c-surface); }
.lp-h2 { font: 800 clamp(1.5rem, 2.8vw, 2.1rem)/1.3 var(--f-head); text-align: center; margin-bottom: 10px; }
.lp-sub { text-align: center; color: var(--c-text-2); max-width: 640px; margin: 0 auto 44px; line-height: 1.7; }

/* কীভাবে কাজ করে: ৩ ধাপ */
.lp-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 980px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.lp-steps li { position: relative; text-align: center; padding: 0 10px; }
.lp-steps li + li::before { content: ''; position: absolute; top: 28px; right: calc(50% + 40px); width: calc(100% - 52px); height: 2px; background: var(--c-line); }
.lp-n { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--c-soft); color: var(--c-brand); font: 800 1.35rem/1 var(--f-head); }
.lp-steps b { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.lp-steps p { color: var(--c-text-2); font-size: .94rem; line-height: 1.65; }

/* প্রজেক্ট সম্পর্কে */
.lp-about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; max-width: 1060px; margin: 0 auto; }
.lp-about .lp-h2 { text-align: left; margin-bottom: 16px; }
.lp-about p { color: var(--c-text-2); line-height: 1.85; font-size: 1.02rem; margin-bottom: 20px; }
.lp-facts { list-style: none; padding: 0; display: grid; gap: 10px; }
.lp-facts li, .lp-checks li { position: relative; padding-left: 30px; font-weight: 600; line-height: 1.5; }
.lp-facts li::before, .lp-checks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-soft-2); }
.lp-facts li::after, .lp-checks li::after { content: ''; position: absolute; left: 6px; top: 7px; width: 8px; height: 4px; border-left: 2px solid var(--c-brand); border-bottom: 2px solid var(--c-brand); transform: rotate(-45deg); }
.lp-shop { display: grid; gap: 14px; padding: 26px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-1); font-size: .95rem; line-height: 1.6; }
.lp-shop > b { font-size: 1.08rem; }
.lp-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--c-text-2); }
.lp-row svg { width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--c-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-row a { color: var(--c-brand); font-weight: 700; text-decoration: none; }
.lp-row a:hover { text-decoration: underline; }
.lp-shop small { display: block; padding-top: 14px; border-top: 1px solid var(--c-line); color: var(--c-text-3); font-size: .8rem; line-height: 1.6; }

/* নমুনা আউটপুট: ইনপুট (অগোছালো ছবি) → আউটপুট (Word) */
.lp-show { display: grid; grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr); gap: 36px; align-items: center; max-width: 1080px; margin: 0 auto; }
.lp-show-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 18px; }
.lp-show-h b { font: 800 1.15rem/1.2 var(--f-head); letter-spacing: .03em; }
.lp-show-h span { font-size: .86rem; color: var(--c-text-3); }
.lp-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 14px; }
.lp-tile { grid-column: span 2; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lp-tile:nth-child(4) { grid-column: 2 / span 2; }
.lp-tile:nth-child(5) { grid-column: 4 / span 2; }
.lp-paper { width: 100%; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: #FBFAF6; box-shadow: 0 8px 18px rgba(20, 40, 30, .14), 0 1px 2px rgba(0, 0, 0, .08); transition: transform .25s ease; }
.lp-paper img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.lp-tile:nth-child(1) .lp-paper { transform: rotate(-3deg); }
.lp-tile:nth-child(2) .lp-paper { transform: rotate(2deg); }
.lp-tile:nth-child(3) .lp-paper { transform: rotate(-1.5deg); }
.lp-tile:nth-child(4) .lp-paper { transform: rotate(1.5deg); }
.lp-tile:nth-child(5) .lp-paper { transform: rotate(-2deg); }
.lp-tile:hover .lp-paper { transform: translateY(-3px) rotate(0); }
.lp-tile figcaption { font-size: .8rem; font-weight: 600; color: var(--c-text-2); text-align: center; }
.lp-arrow { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--c-brand); color: var(--c-brand-ink); box-shadow: var(--sh-2); }
.lp-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp-word { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; box-shadow: 0 20px 44px rgba(20, 50, 35, .18); }
.lp-word-bar { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; background: #2B579A; color: #fff; font-size: .74rem; }
.lp-word-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.lp-word-bar span { margin-left: 8px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-word-rib { display: flex; gap: 8px; padding: 7px 12px; background: #F3F3F3; border-bottom: 1px solid #E1E1E1; }
.lp-word-rib s { height: 12px; flex: 1; border-radius: 3px; background: #E2E2E2; }
.lp-word-page { padding: 14px 16px 0; background: #E9E9E9; max-height: 380px; overflow: hidden; }
.lp-word-page img { width: 100%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.lp-checks { list-style: none; padding: 0; margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.lp-checks li { font-size: .9rem; font-weight: 500; }
.lp-more { text-align: center; margin-top: 48px; }
.lp-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c-brand); text-decoration: none; padding: 11px 22px; border: 1.5px solid var(--c-line-2); border-radius: 10px; background: var(--c-surface); transition: border-color .15s; }
.lp-link:hover { border-color: var(--c-brand); }

@media (max-width: 1080px) {
  .lp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-show { grid-template-columns: 1fr; max-width: 620px; }
  .lp-arrow { justify-self: center; transform: rotate(90deg); }
}
@media (max-width: 860px) {
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-sec { padding: 60px 0; }
  .lp-about { grid-template-columns: 1fr; gap: 32px; }
  .lp-steps { grid-template-columns: 1fr; max-width: 420px; gap: 26px; }
  .lp-steps li + li::before { display: none; }
}
@media (max-width: 560px) {
  .lp-wrap { padding: 0 16px; }
  .lp-hero { padding-top: 40px; }
  .lp-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 22px; padding: 0 16px 4px; scrollbar-width: none; }
  .lp-chips::-webkit-scrollbar { display: none; }
  .lp-chips button { flex: none; }
  .lp-grid { grid-template-columns: 1fr; gap: 10px; }
  .lp-card { min-height: 0; display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; padding: 16px; }
  .lp-card .lp-ic { grid-row: span 2; margin: 0; }
  .lp-tag { position: static; grid-column: 2; justify-self: start; margin-top: 6px; }
  /* ১১-০২ হোম-কার্ড (৩টি সেবা): ফোনে আইকন বামে, বাকি সব ডান কলামে, ক্রম: শিরোনাম → বিবরণ → ট্যাগ */
  .lp-grid-3 .lp-card { padding: 18px; }
  .lp-grid-3 .lp-card .lp-ic { grid-column: 1; grid-row: 1 / span 3; }
  .lp-grid-3 .lp-card > b { grid-column: 2; grid-row: 1; }
  .lp-grid-3 .lp-card > .lp-d { grid-column: 2; grid-row: 2; }
  .lp-grid-3 .lp-card > .lp-tag { grid-column: 2; grid-row: 3; }
  .lp-grid-3 .lp-go { display: none; }
  .lp-tiles { gap: 16px 10px; }
  .lp-checks { grid-template-columns: 1fr; }
}

/* ===== কাজের পাতা (app.html): আপলোড → ওয়ার্কস্পেস → প্রসেসিং → ফলাফল ===== */
body.page-app { display: flex; flex-direction: column; min-height: 100vh; }   /* আপলোড-পাতায় ফুটার নিচে থাকে */
body.page-app .fz-foot { margin-top: 0; }
.page-app .hero { flex: 1 0 auto; }
/* আপলোড: শিরোনাম + এক লাইন + মাঝে বড় আপলোড-জায়গা (পুরোনো সবুজ প্যানেল ও ছবি বাদ) */
.page-app .hero { background: var(--c-bg); padding: 64px 20px 96px; overflow: visible; }
.page-app .hero-in { display: block; max-width: 820px; }
.page-app .center h1 { font: 800 clamp(1.9rem, 4vw, 2.7rem)/1.25 var(--f-head); color: var(--c-text); }
.page-app .sub { margin: 12px auto 34px; max-width: 620px; font-size: 1.08rem; line-height: 1.7; color: var(--c-text-2); }
.page-app .drop { max-width: 760px; padding: 0; background: transparent; box-shadow: none; border-radius: 22px; }
.page-app .drop.over { transform: none; }
.page-app .drop-in { border: 2px dashed var(--c-line-2); background: var(--c-surface); border-radius: 22px; padding: 54px 24px 42px; transition: border-color .15s, background .15s; }
.page-app .drop:hover #stIdle, .page-app #stIdle:focus-visible, .page-app .drop.over .drop-in { border-color: var(--c-brand); background: var(--c-soft); }
.up-ic { width: 72px; height: 72px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--c-soft); color: var(--c-brand); }
.page-app .drop .btn { font: 700 1.18rem/1.2 var(--f-body); padding: 18px 44px; border-radius: 14px; background: var(--c-brand); color: var(--c-brand-ink); box-shadow: 0 8px 22px rgba(30, 123, 79, .28); max-width: 100%; }
.page-app .drop .btn:hover { background: var(--c-brand-hover); }
.page-app .drop-t { font-size: 1rem; font-weight: 500; color: var(--c-text-2); margin: 16px 0 0; }
.page-app .drop-f { margin-top: 6px; font-size: .86rem; color: var(--c-text-3); }
.page-app .formats { margin-top: 22px; font-size: .9rem; color: var(--c-text-3); }
.page-app .formats b { font-weight: 600; color: var(--c-text-2); }

/* ওয়ার্কস্পেস: বামে পাতা, ডানে বাছাই-তালিকা ও বড় বোতাম */
@media (min-width: 901px) { .page-app .ws { height: calc(100vh - var(--fz-nav-h)); } }
.page-app .ws { background: var(--c-bg); }
.page-app .pg { background: var(--c-surface); box-shadow: var(--sh-1); }
.page-app .pg-num { background: var(--c-text); color: var(--c-surface); }
.page-app #wsAdd { background: var(--c-brand); box-shadow: 0 6px 16px rgba(30, 123, 79, .32); }
.page-app #wsAdd:hover { background: var(--c-brand-hover); }
.page-app .ws-side { background: var(--c-surface); border-left: 1px solid var(--c-line); }
.page-app .ws-title { font: 800 1.3rem/1.3 var(--f-head); padding: 18px 22px; border-bottom: 1px solid var(--c-line); }
.page-app .ws-body { padding: 18px 20px 22px; }
/* ১১-০২: কাজের পাতা থেকে এক ক্লিকে হোম (✕) */
.page-app .ws-head { position: relative; }
.page-app .ws-head .ws-title { padding-right: 56px; padding-left: 56px; }
.page-app .ws-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--c-text-2); border: 1px solid var(--c-line); background: var(--c-surface); }
.page-app .ws-close:hover, .page-app .ws-close:focus-visible { color: var(--c-text); border-color: var(--c-line-2); background: var(--c-soft); }
/* ১১-০২: অগ্রগতি-লেখা স্থির — বিন্দু স্থির-প্রস্থে, দুই লাইনের জায়গা আগে থেকে, শতাংশ সমান-প্রস্থ অঙ্কে */
.page-app .proc { position: relative; }
.page-app a.corner-home { text-decoration: none; }
@media (max-width: 640px) { .page-app .proc { padding-top: 68px; } }
.page-app .proc-status { min-height: 3.3em; max-width: 30em; margin-left: auto; margin-right: auto; line-height: 1.6; }
.page-app .ps-dots { display: inline-block; width: 1.4em; text-align: left; }
.page-app .ps-dots::after { content: ''; animation: fz-dots 1.2s steps(1, end) infinite; }
.page-app .proc-status.done .ps-dots::after { content: ''; animation: none; }
@keyframes fz-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@media (prefers-reduced-motion: reduce) { .page-app .ps-dots::after { animation: none; content: '…'; } }
.page-app .ps-time { display: block; font-size: .82rem; font-weight: 500; color: var(--c-text-3); min-height: 1.3em; }
.page-app .ring-pct { font-variant-numeric: tabular-nums; }
.page-app .ws-info { background: var(--c-soft); color: var(--c-text-2); font-size: .85rem; line-height: 1.6; padding: 10px 12px; border-radius: 10px; margin-bottom: 16px; }
.page-app .ws-label { font-size: .82rem; font-weight: 700; color: var(--c-text-3); margin: 20px 0 8px; }
.page-app .ws-label small { font-weight: 500; }
.page-app .seg-note { color: var(--c-text-3); }
.page-app .field { border: 1.5px solid var(--c-line); border-radius: 10px; background: var(--c-surface); color: var(--c-text); }
.page-app .field:focus { outline: 3px solid var(--c-ring); border-color: var(--c-brand); }
.page-app .ws-foot { padding: 16px 20px 20px; border-top: 1px solid var(--c-line); background: var(--c-surface); }
.page-app .ws-go { font: 800 1.2rem/1.2 var(--f-body); padding: 17px; border-radius: 12px; background: var(--c-brand); color: var(--c-brand-ink); box-shadow: 0 8px 20px rgba(30, 123, 79, .26); }
.page-app .ws-go:hover { background: var(--c-brand-hover); }
.page-app .link { color: var(--c-text-3); }
.page-app .link:hover { color: var(--c-brand); }

/* বাছাই-তালিকা: ১) স্বয়ংক্রিয় ২) হুবহু (js/app-steps.js আঁকে) */
.opt-list { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--c-text); background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--c-line-2); }
.opt[aria-checked="true"] { border-color: var(--c-brand); background: var(--c-soft); }
.opt-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c-line-2); position: relative; }
.opt[aria-checked="true"] .opt-dot { border-color: var(--c-brand); }
.opt[aria-checked="true"] .opt-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--c-brand); }
.opt b { display: block; font-size: .98rem; line-height: 1.35; }
.opt small { display: block; font-size: .8rem; line-height: 1.45; color: var(--c-text-3); margin-top: 2px; }
.opt-tag { font-size: .7rem; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 999px; background: var(--c-warn-bg); color: var(--c-accent); white-space: nowrap; }

/* ৩) লেআউট বাছুন: ক্যাটাগরি খুললে তার লেআউট (ভাঁজ — body.st-on; QA-তে সব খোলা) */
.page-app .tpl-card { border: 1.5px solid var(--c-line); background: var(--c-surface); color: var(--c-brand); border-radius: 10px; padding: 10px 6px 8px; }
.page-app .tpl-card b { color: var(--c-text); }
.page-app .tpl-card small { color: var(--c-text-3); }
.page-app .tpl-card:hover { border-color: var(--c-line-2); }
.page-app .tpl-card[aria-checked="true"] { border-color: var(--c-brand); background: var(--c-soft); box-shadow: none; }
.page-app .tpl-group { color: var(--c-text-3); }
body.st-on #tplGallery { gap: 6px; }
body.st-on #tplGallery .tpl-auto, body.st-on #tplGallery .tpl-card.acc-x { display: none; }
body.st-on .tpl-group.acc-h { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; font-size: .95rem; font-weight: 600; color: var(--c-text); background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: 12px; cursor: pointer; user-select: none; transition: border-color .15s; }
body.st-on .tpl-group.acc-h:hover { border-color: var(--c-line-2); }
body.st-on .tpl-group.acc-h::after { content: ''; margin-left: auto; width: 7px; height: 7px; border: solid var(--c-text-3); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
body.st-on .tpl-group.acc-h[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
body.st-on .tpl-group.acc-h.has-sel { border-color: var(--c-brand); }
body.st-on .tpl-group.acc-h.has-sel::before { content: ''; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c-brand); }
body.st-on #myTplBox { margin-top: 6px; }
body.st-on #myTplBox > .tpl-grid { margin-top: 6px; }
body.st-on #myTplBox.acc-closed > :not(.tpl-group), body.st-on #myTplBox.acc-closed .mt-hint { display: none; }
body.st-on[data-st-sel="auto"] #tplNote, body.st-on[data-st-sel="faithful"] #tplNote { display: none; }
.page-app #tplNote { font-size: .8rem; margin: 8px 2px 0; }

/* প্রসেসিং ও ফলাফল */
.page-app .proc, .page-app .result { background: var(--c-bg); min-height: calc(100vh - var(--fz-nav-h)); }
.page-app .proc-h { font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.3 var(--f-head); color: var(--c-text); }
.page-app .ring-bg { stroke: var(--c-line); }
.page-app .ring-fg { stroke: var(--c-brand); }
.page-app .ring::after { border-top-color: var(--c-soft-2); }
.page-app .ring-pct { color: var(--c-text); }
.page-app .proc-status { color: var(--c-text-2); }
.page-app .proc-note, .page-app .st-meta { color: var(--c-text-3); }
.page-app .tick { background: var(--c-brand); }
.page-app .btn { background: var(--c-brand); color: var(--c-brand-ink); box-shadow: none; }
.page-app .btn:hover { background: var(--c-brand-hover); }
.page-app .big-dl { background: var(--c-brand); color: var(--c-brand-ink); border-radius: 14px; font-size: 1.3rem; box-shadow: 0 10px 26px rgba(30, 123, 79, .3); }
.page-app .big-dl:hover { background: var(--c-brand-hover); }
.page-app .big-dl svg path { stroke: currentColor; }
.page-app .btn-o { color: var(--c-text); background: var(--c-surface); border: 1.5px solid var(--c-line-2); font-size: .95rem; padding: 10px 18px; }
.page-app .btn-o:hover { color: var(--c-brand); border-color: var(--c-brand); background: var(--c-surface); }
.page-app .corner-home { color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-line-2); box-shadow: none; }
.page-app .corner-home:hover { background: var(--c-soft); }
/* লেআউট বদল (সাজানো/ক্লিন, কলাম, হুবহু ↔ সাজানো) — এক বাক্সে; সব লুকানো থাকলে বাক্সও লুকায় */
.rs-adjust { max-width: 560px; margin: 26px auto 0; padding: 14px 16px 6px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; }
.rs-adjust:not(:has(.col-pick:not([hidden]), .rs-alt > :not([hidden]))) { display: none; }
.rs-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 2px 0 8px; }
.rs-alt:not(:has(> :not([hidden]))) { display: none; }
.rs-adjust #stylePick:not([hidden]) ~ .rs-alt #btnOtherForm { display: none; }   /* সাজানো/ক্লিন অদলবদল ওপরের বোতামেই আছে */
.page-app .btn-sm { font-size: .88rem; padding: 7px 14px; border-radius: 999px; }
.page-app .col-pick button { color: var(--c-text-2); background: var(--c-surface); border: 1px solid var(--c-line-2); }
.page-app .col-pick button[aria-pressed="true"] { color: var(--c-brand-ink); background: var(--c-brand); border-color: var(--c-brand); }
.page-app .col-pick-h { color: var(--c-text-3); }
.page-app .result .row-links { margin-top: 20px; }

/* ===== পুরোনো OCR পাতার "লেআউট কেমন চান?" কার্ড (js/faithful-mode-ui.js — ইনলাইন রং নেই, স্টাইল এখানে) ===== */
.fz-mode-card { text-align: left; font: inherit; border: 2px solid var(--c-line); background: var(--c-surface); color: var(--c-text); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; }
.fz-mode-card .mt { font-weight: 800; font-size: .98rem; }
.fz-mode-card .ms { font-size: .8rem; color: var(--c-text-2); margin-top: 4px; line-height: 1.5; }
.fz-mode-card[aria-pressed="true"] { border-color: var(--c-brand); background: var(--c-soft-2); }

/* ===== সাব-পাতা (services.html, samples.html — css/home.css-এর অংশ) ===== */
.page-sub .sec h2 { font-family: var(--f-head); color: var(--c-text); }
.page-sub .tl-page { padding-top: 56px; }
.page-sub .tl-page h1 { font: 800 clamp(1.8rem, 3.6vw, 2.5rem)/1.3 var(--f-head); text-align: center; color: var(--c-text); }
.page-sub .tl-page .sec-sub { margin: 10px auto 30px; }
.page-sub .tl-page h2 { font-size: 1.3rem; margin-top: 12px; }
.page-sub .sub-h { font-family: var(--f-head); }
.page-sub .step span { background: var(--c-soft); color: var(--c-brand); }
.page-sub .steps .line { background: var(--c-line); }
.page-sub .smp-cta { text-align: center; margin: 0 0 72px; }
.page-sub .smp-cta .btn { display: inline-block; text-decoration: none; }
.page-sub .sec.alt { background: var(--c-surface); }
.page-sub .sec-sub, .page-sub .card p { color: var(--c-text-2); }
.page-sub .tool, .page-sub .card { background: var(--c-surface); border-color: var(--c-line); box-shadow: var(--sh-1); }
.page-sub .tabs button { color: var(--c-text-2); background: var(--c-surface); border-color: var(--c-line); }
.page-sub .tabs button[aria-selected="true"] { color: var(--c-brand-ink); background: var(--c-brand); border-color: var(--c-brand); }
.page-sub .btn { background: var(--c-brand); color: var(--c-brand-ink); box-shadow: none; }
.page-sub .btn:hover { background: var(--c-brand-hover); }
.page-sub .btn-o { color: var(--c-text); background: var(--c-surface); border-color: var(--c-line-2); }
.page-sub .ic { background: var(--c-soft); color: var(--c-brand); }

/* ===== পুরোনো অংশের ডার্ক (কাজের পাতা ও সাব-পাতা — css/home.css-এর স্থির রং) ===== */
html.dark .page-app .pg img, html.dark .page-app .hist-thumb { background: #0F1512; border-color: var(--c-line); }
html.dark .page-app .pg figcaption, html.dark .page-app .ws-text-head span { color: var(--c-text-2); }
html.dark .page-app .pg-del { background: var(--c-surface); }
html.dark .page-app .pg-tool, html.dark .page-app .seg, html.dark .page-app .rep-vote button, html.dark .page-app .rep-chips span, html.dark .page-app .mt-role { background: var(--c-surface); color: var(--c-text-2); border-color: var(--c-line-2); }
html.dark .page-app .hist, html.dark .page-app .rep, html.dark .page-app .hist-row, html.dark .page-app .hist-x { background: var(--c-surface); color: var(--c-text); }
html.dark .page-app .hist-row, html.dark .page-app .hist-head, html.dark .page-app .hist-foot, html.dark .page-app .mt-slots, html.dark .page-app .mt-slot { border-color: var(--c-line); }
html.dark .page-app .mt-slot.mt-fixed, html.dark .page-app .mt-new, html.dark .page-app .mt-thumb { background: var(--c-surface); }
html.dark .page-app .mt-slot.mt-var { background: #2A2412; }
html.dark .page-app .mt-slot.mt-auto { background: var(--c-soft); }
html.dark .page-app .result-text textarea, html.dark .page-app .ws-text textarea, html.dark .page-app .preview { background: var(--c-surface); color: var(--c-text); border-color: var(--c-line-2); }
html.dark .page-app .hist-note, html.dark .page-app .hist-info span, html.dark .page-app .rep-sub, html.dark .page-app .result-text-head, html.dark .page-app .mt-kind, html.dark .page-app .mt-count { color: var(--c-text-3); }
html.dark .page-app .rep-status, html.dark .page-app .rep-vote button[aria-pressed="true"] { color: var(--c-brand); }
html.dark .page-app .ws-add-tip { background: var(--c-surface); color: var(--c-text); box-shadow: 0 0 0 1px var(--c-line-2); }
html.dark .page-app .ws-add-tip::after { border-left-color: var(--c-surface); }
html.dark .page-sub .tool textarea, html.dark .page-sub .file-row input[type=file], html.dark .page-sub .file-row select, html.dark .page-sub .gallery img, html.dark .page-sub .ba img { background: var(--c-surface); color: var(--c-text); border-color: var(--c-line-2); }
html.dark .page-sub .ba figure, html.dark .page-sub .gallery figure { background: var(--c-surface); }
html.dark .page-sub .tool-status, html.dark .page-sub .note { color: var(--c-text-2); }

/* ===== রেসপন্সিভ (কাজের পাতা) ===== */
@media (max-width: 900px) {
  .page-app .ws-foot { box-shadow: 0 -6px 16px rgba(0, 0, 0, .06); }
}
@media (max-width: 640px) {
  .page-app .hero { padding: 36px 16px 64px; }
  .page-app .sub { margin-bottom: 26px; font-size: 1rem; }
  .page-app .drop-in { padding: 36px 16px 30px; }
  .page-app .drop .btn { width: 100%; padding: 16px 20px; }
  .up-ic { width: 60px; height: 60px; margin-bottom: 18px; }
  .page-app .big-dl { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* I18N_ALL: এক ভাষার পুরো ব্লক (নীতিমালা পাতা) — js/i18n.js <html data-lang> বসায়; ডিফল্ট বাংলা */
html[data-lang="en"] [data-lang-only="bn"], html:not([data-lang="en"]) [data-lang-only="en"] { display: none !important; }
