/* =====================================================================
   PF Coding — Public design system
   ใช้เฉพาะหน้าเว็บฝั่ง public (body.pub) ไม่กระทบ workspace และเอกสาร PDF
   ===================================================================== */
:root {
    --p-primary: #2e8bf0;
    --p-primary-600: #1c74d4;
    --p-primary-50: #ecf6ff;
    --p-primary-100: #d5eaff;
    --p-green: #0f9d6b;
    --p-green-50: #e8f8f1;
    --p-amber: #d97706;
    --p-amber-50: #fff7e6;
    --p-rose: #e11d48;
    --p-ink: #0f172a;
    --p-ink-2: #334155;
    --p-muted: #64748b;
    --p-line: #e5e9f2;
    --p-bg: #f5f9fe;
    --p-surface: #ffffff;
    --p-navy: #0a1a33;
    --p-radius: 16px;
    --p-radius-sm: 10px;
    --p-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
    --p-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
    --p-shadow-lg: 0 24px 60px -20px rgba(28, 116, 212, .35);
    --p-ease: cubic-bezier(.2, .7, .2, 1);
}

body.pub {
    font-size: 15px;
    line-height: 1.65;
    color: var(--p-ink-2);
    background: var(--p-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.pub h1, body.pub h2, body.pub h3, body.pub h4, body.pub h5 { color: var(--p-ink); letter-spacing: -.01em; }
/* ตัดคำภาษาไทย: ให้เบราว์เซอร์ตัดตามพจนานุกรม (ไม่ตัดกลางคำ) และเกลี่ยบรรทัดหัวข้อให้สมดุล ไม่เหลือคำเดียวค้างบรรทัดสุดท้าย */
body.pub { word-break: normal; overflow-wrap: break-word; line-break: strict; }
body.pub h1, body.pub h2, body.pub h3, body.pub h4, body.pub h5, body.pub .pub-card-title, body.pub .pub-shot-caption strong { text-wrap: balance; }
body.pub p, body.pub li, body.pub .pub-card-text, body.pub .pub-lead { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) { .pub-hero h1 { font-size: 2.6rem; } }
body.pub img { max-width: 100%; }
body.pub ::selection { background: var(--p-primary-100); }
body.pub a:focus-visible, body.pub button:focus-visible, body.pub .btn:focus-visible { outline: 3px solid rgba(46, 139, 240, .35); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--p-ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------------------------------------------------------- buttons */
.pub-btn {
    --bs-btn-padding-x: 1.15rem;
    --bs-btn-padding-y: .62rem;
    display: inline-flex; align-items: center; justify-content: center;
    gap: .25rem; font-weight: 500; border-radius: 12px; border: 1px solid transparent;
    transition: transform .18s var(--p-ease), box-shadow .18s var(--p-ease), background-color .18s, color .18s, border-color .18s;
    white-space: nowrap;
}
.pub-btn:hover { transform: translateY(-1px); }
.pub-btn:active { transform: translateY(0); }
.pub-btn-sm { --bs-btn-padding-x: .9rem; --bs-btn-padding-y: .42rem; font-size: .9rem; border-radius: 10px; }
.pub-btn-lg { --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: .8rem; font-size: 1.02rem; }
.pub-btn-primary { background: var(--p-primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(46, 139, 240, .7); }
.pub-btn-primary:hover, .pub-btn-primary:focus { background: var(--p-primary-600); color: #fff; }
.pub-btn-green { background: var(--p-green); color: #fff; box-shadow: 0 8px 20px -8px rgba(15, 157, 107, .6); }
.pub-btn-green:hover { background: #0b8459; color: #fff; }
.pub-btn-outline { background: #fff; color: var(--p-ink); border-color: var(--p-line); }
.pub-btn-outline:hover { border-color: var(--p-primary); color: var(--p-primary); background: #fff; }
.pub-btn-soft { background: var(--p-primary-50); color: var(--p-primary-600); }
.pub-btn-soft:hover { background: var(--p-primary-100); color: var(--p-primary-600); }
.pub-btn-red { background: #fff1f2; color: #be123c; }
.pub-btn-red:hover { background: #ffe4e6; color: #9f1239; }
.pub-btn-light { background: #fff; color: var(--p-ink); }
.pub-btn-light:hover { background: #f1f5f9; color: var(--p-ink); }
.pub-btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.pub-btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.pub-btn-icon { --bs-btn-padding-x: .62rem; }

/* legacy buttons on public pages → harmonize */
body.pub .btn-pf { background: var(--p-primary); border-radius: 12px; color: #fff; }
body.pub .btn-pf:hover { background: var(--p-primary-600); color: #fff; }
body.pub .btn-soft { border-radius: 12px; background: var(--p-primary-50); color: var(--p-primary-600); border: 0; }
body.pub .btn { border-radius: 10px; font-weight: 500; }
body.pub .btn-primary { --bs-btn-bg: var(--p-primary); --bs-btn-border-color: var(--p-primary); --bs-btn-hover-bg: var(--p-primary-600); --bs-btn-hover-border-color: var(--p-primary-600); --bs-btn-active-bg: var(--p-primary-600); }
body.pub .btn-outline-primary { --bs-btn-color: var(--p-primary); --bs-btn-border-color: #bfdbfe; --bs-btn-hover-bg: var(--p-primary); --bs-btn-hover-border-color: var(--p-primary); }
body.pub .form-control, body.pub .form-select { border-radius: 10px; border-color: #d8deea; padding: .6rem .85rem; }
body.pub .form-control:focus, body.pub .form-select:focus { border-color: var(--p-primary); box-shadow: 0 0 0 4px rgba(46, 139, 240, .12); }
body.pub .input-group > .form-control { border-radius: 10px; }
body.pub .input-group > :not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
body.pub .input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.pub .badge { font-weight: 500; border-radius: 999px; padding: .38em .7em; }

/* ---------------------------------------------------------- header */
.pub-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.pub-header.is-scrolled { border-bottom-color: var(--p-line); box-shadow: 0 6px 24px -18px rgba(15, 23, 42, .4); }
.pub-nav { padding: .7rem 0; }
.pub-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--p-ink); }
.pub-brand-logo { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2e8bf0, #38bdf8); box-shadow: 0 8px 18px -8px rgba(46, 139, 240, .8); flex: 0 0 auto; overflow: hidden; }
.pub-brand-logo.is-image { background: #fff; box-shadow: var(--p-shadow-sm); }
.pub-brand-logo.is-image img { width: 100%; height: 100%; object-fit: contain; }
.pub-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.pub-brand-text strong { font-size: 1.08rem; font-weight: 700; }
.pub-brand-text small { font-size: .72rem; color: var(--p-muted); letter-spacing: .02em; }
.pub-menu { gap: .1rem; }
.pub-menu .nav-link { color: var(--p-ink-2); font-weight: 500; padding: .5rem .85rem !important; border-radius: 10px; transition: background .15s, color .15s; display: inline-flex; align-items: center; gap: .35rem; }
.pub-menu .nav-link:hover { color: var(--p-primary); background: var(--p-primary-50); }
.pub-menu .nav-link.active { color: var(--p-primary); background: var(--p-primary-50); }
.pub-new-badge { font-size: .62rem; font-weight: 600; padding: .1rem .4rem; border-radius: 999px; background: #dcfce7; color: #15803d; }
.pub-dropdown { border: 1px solid var(--p-line); border-radius: 14px; box-shadow: var(--p-shadow); padding: .45rem; min-width: 290px; margin-top: .4rem !important; }
.pub-dropdown .dropdown-item { display: flex; gap: .75rem; align-items: center; border-radius: 10px; padding: .6rem .7rem; white-space: normal; }
.pub-dropdown .dropdown-item:hover, .pub-dropdown .dropdown-item.active { background: var(--p-primary-50); color: var(--p-ink); }
.pub-dropdown .dropdown-item strong { display: block; font-weight: 600; font-size: .93rem; color: var(--p-ink); }
.pub-dropdown .dropdown-item small { display: block; color: var(--p-muted); font-size: .78rem; }
.pub-dropdown-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--p-primary-50); color: var(--p-primary); flex: 0 0 auto; }
.pub-toggler { border: 0; width: 42px; height: 42px; border-radius: 10px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: var(--p-primary-50); }
.pub-toggler span { width: 18px; height: 2px; border-radius: 2px; background: var(--p-ink); transition: transform .2s, opacity .2s; }
.pub-toggler:focus { box-shadow: none; }
.pub-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pub-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pub-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 991.98px) {
    .pub-menu { padding: .75rem 0 .5rem; }
    .pub-menu .nav-link { padding: .7rem .8rem !important; }
    .pub-dropdown { border: 0; box-shadow: none; padding: 0 0 0 .5rem; min-width: 0; margin: 0 !important; }
}

/* ---------------------------------------------------------- generic sections */
.pub-section { padding: 72px 0; }
.pub-section-sm { padding: 48px 0; }
.pub-section-white { background: #fff; }
.pub-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.75rem; }
.pub-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--p-primary); background: var(--p-primary-50); padding: .3rem .7rem; border-radius: 999px; margin-bottom: .75rem; }
.pub-eyebrow.is-green { color: var(--p-green); background: var(--p-green-50); }
.pub-h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 700; margin: 0 0 .35rem; }
.pub-lead { color: var(--p-muted); margin: 0; max-width: 640px; }

/* page hero (inner pages) */
.page-hero { position: relative; padding: 52px 0 40px; background: radial-gradient(900px 300px at 85% -40%, rgba(56, 189, 248, .14), transparent 60%), radial-gradient(800px 320px at 0% 0%, rgba(46, 139, 240, .14), transparent 60%), #fff; border-bottom: 1px solid var(--p-line); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 700; margin: 0 0 .5rem; }
.page-hero p { color: var(--p-muted); font-size: 1.02rem; margin: 0; max-width: 680px; }
.page-hero.is-green { background: radial-gradient(900px 300px at 85% -40%, rgba(16, 185, 129, .16), transparent 60%), radial-gradient(800px 320px at 0% 0%, rgba(15, 157, 107, .1), transparent 60%), #fff; }
.pub-breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .85rem; color: var(--p-muted); margin-bottom: .85rem; }
.pub-breadcrumb a { color: var(--p-muted); }
.pub-breadcrumb a:hover { color: var(--p-primary); }
.pub-breadcrumb i { font-size: .6rem; opacity: .6; }
.page-hero-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.page-hero-stats span { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; background: #fff; border: 1px solid var(--p-line); border-radius: 999px; font-size: .86rem; color: var(--p-ink-2); box-shadow: var(--p-shadow-sm); }
.page-hero-stats i { color: var(--p-primary); }

/* ---------------------------------------------------------- home hero */
.pub-hero { position: relative; padding: 76px 0 84px; overflow: hidden; background: radial-gradient(1000px 520px at 90% 0%, rgba(56, 189, 248, .16), transparent 60%), radial-gradient(900px 520px at 0% 20%, rgba(46, 139, 240, .16), transparent 60%), linear-gradient(180deg, #fff, var(--p-bg)); }
.pub-hero h1 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.3rem); line-height: 1.18; font-weight: 700; margin: 0 0 1rem; }
.pub-hero h1 .grad { background: linear-gradient(90deg, #1c74d4, #2e8bf0 50%, #38b2f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub-hero-lead { font-size: 1.08rem; color: var(--p-muted); max-width: 560px; }
.pub-hero-points { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .55rem; }
.pub-hero-points li { display: flex; gap: .6rem; align-items: flex-start; color: var(--p-ink-2); }
.pub-hero-points i { color: var(--p-green); margin-top: .3rem; }
.pub-hero-trust { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px dashed #d3e2f3; }
.pub-hero-trust div strong { display: block; font-size: 1.6rem; font-weight: 700; color: var(--p-ink); line-height: 1.1; }
.pub-hero-trust div span { font-size: .85rem; color: var(--p-muted); }

.pub-hero-visual { position: relative; max-width: 560px; margin-left: auto; }
/* hero showcase: ผลงานลูกค้าจริง */
.pub-showcase { padding: 34px 30px 30px; }
.pub-shot { display: block; border-radius: 22px; background: #fff; }
.pub-shot-main { position: relative; z-index: 1; padding: 10px; border: 1px solid rgba(203, 226, 248, .9); box-shadow: 0 30px 70px -28px rgba(28, 116, 212, .45), 0 4px 14px rgba(15, 23, 42, .06); color: var(--p-ink); transition: transform .35s var(--p-ease), box-shadow .35s; }
a.pub-shot-main:hover { transform: translateY(-4px); color: var(--p-ink); box-shadow: 0 36px 80px -28px rgba(28, 116, 212, .55), 0 4px 14px rgba(15, 23, 42, .06); }
.pub-shot-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 10px; }
.pub-shot-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.pub-shot-bar > span:nth-child(1) { background: #f87171; }
.pub-shot-bar > span:nth-child(2) { background: #fbbf24; }
.pub-shot-bar > span:nth-child(3) { background: #34d399; }
.pub-shot-bar em { flex: 1; min-width: 0; margin-left: 8px; font-style: normal; font-size: .76rem; color: var(--p-muted); background: var(--p-bg); border-radius: 999px; padding: 3px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-shot-bar em i { color: var(--p-green); font-size: .68rem; margin-right: 6px; }
.pub-shot-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #e3f1ff, #f0f9ff); }
.pub-shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--p-ease); }
a.pub-shot-main:hover .pub-shot-img img { transform: scale(1.03); }
.pub-shot-img .placeholder-icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: #93c5fd; }
.pub-shot-caption { display: block; padding: 12px 8px 6px; }
.pub-shot-caption small { display: flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--p-primary); margin-bottom: 2px; }
.pub-shot-caption strong { display: block; font-size: 1rem; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-shot-back { position: absolute; z-index: 0; width: 48%; aspect-ratio: 4 / 3; padding: 6px; overflow: hidden; box-shadow: 0 20px 44px -22px rgba(15, 23, 42, .35); border: 1px solid var(--p-line); }
.pub-shot-back img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 16px; }
.pub-shot-b1 { left: 0; top: 0; transform: rotate(-7deg); }
.pub-shot-b2 { right: 0; bottom: 10px; transform: rotate(6deg); }
.pub-stars { color: #f59e0b !important; letter-spacing: 2px; font-size: .8rem; }
.pub-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--p-line); border-radius: 14px; padding: .65rem .85rem; box-shadow: var(--p-shadow); font-size: .84rem; animation: pubFloat 5s ease-in-out infinite; }
.pub-float i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.pub-float strong { display: block; color: var(--p-ink); line-height: 1.2; }
.pub-float small { color: var(--p-muted); }
.pub-float-1 { left: -18px; top: 48%; }
.pub-float-1 i { background: var(--p-green-50); color: var(--p-green); }
.pub-float-2 { right: -8px; top: 6px; animation-delay: -2.5s; }
.pub-float-2 i { background: #fef3c7; color: var(--p-amber); }
@keyframes pubFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 991.98px) {
    .pub-hero { padding: 48px 0 56px; }
    .pub-hero-visual { margin: 2rem auto 0; }
    .pub-float-1 { left: 0; }
    .pub-float-2 { right: 8px; }
}

/* feature tiles */
.pub-feature { height: 100%; padding: 1.5rem; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); transition: transform .2s var(--p-ease), box-shadow .2s, border-color .2s; color: var(--p-ink-2); display: block; }
.pub-feature:hover { transform: translateY(-3px); box-shadow: var(--p-shadow); border-color: #cbe2f8; color: var(--p-ink-2); }
.pub-feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 1rem; background: var(--tone-bg, var(--p-primary-50)); color: var(--tone, var(--p-primary)); }
.pub-feature h3 { font-size: 1.08rem; font-weight: 600; margin: 0 0 .35rem; }
.pub-feature p { color: var(--p-muted); font-size: .92rem; margin: 0; }
.pub-feature .more { display: inline-flex; gap: .35rem; align-items: center; margin-top: .9rem; font-weight: 500; font-size: .9rem; color: var(--tone, var(--p-primary)); }
.tone-p { --tone: #2e8bf0; --tone-bg: #ecf6ff; }
.tone-g { --tone: #0f9d6b; --tone-bg: #e8f8f1; }
.tone-v { --tone: #0284c7; --tone-bg: #e0f2fe; }
.tone-a { --tone: #d97706; --tone-bg: #fff7e6; }
.tone-r { --tone: #e11d48; --tone-bg: #fff1f2; }
.tone-c { --tone: #0891b2; --tone-bg: #e0f7fb; }

/* steps */
.pub-steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 575.98px) { .pub-steps { grid-template-columns: 1fr; } }
.pub-step { position: relative; padding: 1.4rem 1.4rem 1.3rem; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); }
.pub-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-weight: 700; font-size: .9rem; color: var(--p-primary); background: var(--p-primary-50); border-radius: 8px; padding: .15rem .5rem; display: inline-block; margin-bottom: .75rem; }
.pub-step h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .3rem; }
.pub-step p { margin: 0; font-size: .9rem; color: var(--p-muted); }

/* ---------------------------------------------------------- filter bar */
.pub-filter { display: flex; flex-direction: column; gap: .85rem; margin: -26px 0 1.75rem; position: relative; z-index: 2; padding: 1rem; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); box-shadow: var(--p-shadow); }
.pub-search { display: flex; align-items: center; gap: .5rem; }
.pub-search-box { position: relative; flex: 1; }
.pub-search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--p-muted); }
.pub-search-box input { width: 100%; padding: .7rem .9rem .7rem 2.5rem; border: 1px solid #d8deea; border-radius: 12px; background: #f8fafc; transition: border-color .15s, box-shadow .15s, background .15s; }
.pub-search-box input:focus { outline: none; background: #fff; border-color: var(--p-primary); box-shadow: 0 0 0 4px rgba(46, 139, 240, .12); }
.pub-chips { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pub-chips::-webkit-scrollbar { display: none; }
.pub-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .85rem; font-size: .86rem; border-radius: 999px; border: 1px solid var(--p-line); background: #fff; color: var(--p-ink-2); transition: all .15s; cursor: pointer; }
.pub-chip:hover { border-color: #b6d8f7; color: var(--p-primary); }
.pub-chip.active { background: var(--p-ink); border-color: var(--p-ink); color: #fff; }
.pub-chip.is-green.active { background: var(--p-green); border-color: var(--p-green); }
.pub-result-meta { font-size: .86rem; color: var(--p-muted); }

/* ---------------------------------------------------------- item cards */
.pub-card {
    position: relative; height: 100%; display: flex; flex-direction: column;
    padding: 10px; background: #fff; border: 1px solid #e6eef8; border-radius: 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -22px rgba(28, 116, 212, .35);
    transition: transform .28s var(--p-ease), box-shadow .28s var(--p-ease), border-color .28s;
}
.pub-card:hover { transform: translateY(-6px); border-color: #cfe4fa; box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 28px 50px -24px rgba(28, 116, 212, .45); }
.pub-card-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 17px; background: linear-gradient(135deg, #e3f1ff, #f0f9ff); overflow: hidden; isolation: isolate; }
.pub-card-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06); pointer-events: none; }
.pub-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--p-ease); }
.pub-card:hover .pub-card-media img { transform: scale(1.05); }
.pub-card-media .placeholder-icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: #93c5fd; }
.pub-card-chip {
    position: absolute; left: 12px; bottom: 12px; z-index: 1; max-width: calc(100% - 24px);
    display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .8rem;
    font-size: .82rem; font-weight: 600; color: var(--p-ink); line-height: 1.2;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .35);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pub-card-chip i { color: var(--p-primary); font-size: .78rem; }
.pub-card-tag { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; gap: .35rem; align-items: center; padding: .28rem .65rem; font-size: .78rem; font-weight: 600; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--p-ink); box-shadow: var(--p-shadow-sm); }
.pub-card-tag.is-green { color: var(--p-green); }
.pub-card-tag.is-red { color: var(--p-rose); }
.pub-card-price { position: absolute; right: 12px; bottom: 12px; padding: .32rem .75rem; border-radius: 10px; font-weight: 700; font-size: .95rem; background: var(--p-ink); color: #fff; }
.pub-card-body { padding: 1.05rem .7rem .55rem; display: flex; flex-direction: column; flex: 1; }
.pub-card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; position: relative; z-index: 1; }
.pub-card-top .pub-badge { padding: .28rem .75rem; border-radius: 10px; font-size: .8rem; }
.pub-card-ver { font-size: .82rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.pub-card-title { font-size: 1.14rem; font-weight: 700; line-height: 1.45; margin: 0 0 .45rem; color: var(--p-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pub-card-title a { color: inherit; transition: color .15s; }
.pub-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 24px; }
.pub-card:hover .pub-card-title a { color: var(--p-primary-600); }
.pub-card-text { color: var(--p-muted); font-size: .9rem; line-height: 1.7; margin: 0 0 .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pub-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; color: var(--p-muted); font-size: .82rem; margin-bottom: .95rem; }
.pub-card-meta:empty { display: none; }
.pub-card-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.pub-card-meta i { color: #94a3b8; }
.pub-card-foot { margin-top: auto; padding-top: .95rem; border-top: 1px solid #edf2f8; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.pub-card-pricebox { min-width: 0; }
.pub-card-pricebox small { display: block; font-size: .76rem; color: #94a3b8; margin-bottom: .1rem; }
.pub-card-pricebox strong { display: block; font-size: 1.3rem; font-weight: 700; color: var(--p-ink); line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pub-card-pricebox strong span { font-size: .9rem; font-weight: 600; color: var(--p-muted); }
.pub-card-pricebox strong del { font-size: .82rem; font-weight: 400; color: #94a3b8; margin-right: .35rem; }
.pub-card-pricebox strong.is-free { color: var(--p-green); }
.pub-card-pricebox strong.is-text { font-size: .95rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pub-card-actions { display: flex; align-items: center; gap: .45rem; flex: 0 0 auto; margin-left: auto; position: relative; z-index: 1; }
.pub-card-cta {
    display: inline-flex; align-items: center; gap: .55rem; padding: .62rem 1.05rem;
    font-weight: 600; font-size: .9rem; white-space: nowrap; border-radius: 14px;
    color: var(--p-primary-600); background: var(--p-primary-50); border: 1px solid #cfe4fa;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--p-ease);
}
.pub-card-cta i { font-size: .8rem; transition: transform .2s var(--p-ease); }
.pub-card-cta:hover { color: #fff; background: var(--p-primary); border-color: var(--p-primary); box-shadow: 0 10px 22px -10px rgba(46, 139, 240, .8); }
.pub-card-cta:hover i { transform: translateX(3px); }
.pub-card-cta.is-green { color: #0b7d55; background: var(--p-green-50); border-color: #c4ecd9; }
.pub-card-cta.is-green:hover { color: #fff; background: var(--p-green); border-color: var(--p-green); box-shadow: 0 10px 22px -10px rgba(15, 157, 107, .7); }
.pub-card-cta.is-muted { color: var(--p-ink-2); background: #f6f8fb; border-color: var(--p-line); }
.pub-card-cta.is-muted:hover { color: #fff; background: var(--p-ink-2); border-color: var(--p-ink-2); box-shadow: none; }
.pub-card-iconbtn { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--p-line); background: #fff; color: var(--p-muted); transition: color .15s, border-color .15s, background .15s; }
.pub-card-iconbtn:hover { color: var(--p-primary); border-color: #cfe4fa; background: var(--p-primary-50); }
button.pub-card-iconbtn { padding: 0; cursor: pointer; font: inherit; }
.pub-card-demo { display: inline-flex; align-items: center; gap: .4rem; padding: .62rem .8rem; border-radius: 14px; font-weight: 600; font-size: .86rem; white-space: nowrap; color: #e00; background: #fff; border: 1px solid #ffd2d2; transition: color .15s, background .15s, border-color .15s; }
.pub-card-demo i { font-size: 1rem; }
.pub-card-demo:hover { color: #fff; background: #ff0000; border-color: #ff0000; }
.pub-card-iconbtn.is-yt { color: #ff0000; }
.pub-card-iconbtn.is-yt:hover { color: #fff; background: #ff0000; border-color: #ff0000; }
.pub-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .55rem; position: relative; z-index: 1; }
.pub-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600; background: #f1f5f9; color: var(--p-ink-2); }
.pub-badge.is-green { background: var(--p-green-50); color: var(--p-green); }
.pub-badge.is-red { background: #fff1f2; color: var(--p-rose); }
.pub-badge.is-blue { background: var(--p-primary-50); color: var(--p-primary-600); }
.pub-badge.is-amber { background: var(--p-amber-50); color: #b45309; }
@media (max-width: 380px) {
    .pub-card-foot { flex-wrap: wrap; }
    .pub-card-actions { width: 100%; }
    .pub-card-cta { flex: 1; justify-content: center; }
}

.pub-empty { text-align: center; padding: 3.5rem 1rem; background: #fff; border: 1px dashed #cdd6e6; border-radius: var(--p-radius); color: var(--p-muted); }
.pub-empty i { font-size: 2.4rem; color: #93c5fd; margin-bottom: .75rem; }
.pub-empty h2 { font-size: 1.15rem; font-weight: 600; }

/* pagination */
body.pub .pagination { gap: .35rem; }
body.pub .page-link { border-radius: 10px !important; border: 1px solid var(--p-line); color: var(--p-ink-2); min-width: 40px; text-align: center; }
body.pub .page-item.active .page-link { background: var(--p-primary); border-color: var(--p-primary); color: #fff; }

/* ---------------------------------------------------------- CTA banner */
.pub-cta { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(1.75rem, 4vw, 3rem); color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(56, 189, 248, .55), transparent 60%), linear-gradient(135deg, #1c74d4, #2e8bf0 50%, #0ea5e9); box-shadow: var(--p-shadow-lg); }
body.pub .pub-cta h2 { color: #fff; font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); }
.pub-cta p { color: rgba(255, 255, 255, .85); margin: 0; }

/* ---------------------------------------------------------- footer */
.pub-footer { margin-top: 72px; background: var(--p-navy); color: #b8c2d9; padding-top: 0; }
.pub-footer .container { position: relative; }
.pub-footer-cta { transform: translateY(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.6rem 1.75rem; border-radius: 20px; color: #fff; background: radial-gradient(500px 200px at 100% 0%, rgba(56, 189, 248, .6), transparent 60%), linear-gradient(135deg, #1c74d4, #2e8bf0); box-shadow: var(--p-shadow-lg); margin-bottom: -10px; }
body.pub .pub-footer-cta h2 { color: #fff; font-size: 1.3rem; font-weight: 700; margin: 0 0 .2rem; }
body.pub .pub-footer-cta p { margin: 0; color: var(--p-ink); font-weight: 500; }
body.pub .pub-footer-grid h3 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: .9rem; }
.pub-footer-grid h3 ~ a:not(.dbd-registered-link):not(.pub-footer-contact) { display: block; color: #b8c2d9; padding: .2rem 0; font-size: .92rem; }
.pub-footer-grid h3 ~ a:not(.dbd-registered-link):not(.pub-footer-contact):hover { color: #fff; }
.pub-footer-grid p { font-size: .92rem; }
.pub-brand-footer { color: #fff; }
.pub-brand-footer .pub-brand-text small { color: #8b97b5; }
.pub-social { display: flex; gap: .5rem; }
.pub-social { margin-top: .25rem; }
.pub-social a { --brand: var(--p-primary); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px var(--brand); transition: transform .2s var(--p-ease), filter .2s, box-shadow .2s; }
.pub-social a:hover { color: #fff; transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 12px 24px -8px var(--brand); }
.pub-social a.is-facebook { --brand: #1877f2; }
.pub-social a.is-line { --brand: #06c755; font-size: 1.3rem; }
.pub-social a.is-youtube { --brand: #ff0000; }
.pub-footer-contact { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1rem; color: #fff; font-size: 1.05rem; font-weight: 600; }
.pub-footer-contact:hover { color: #fff; opacity: .85; }
.pub-footer-contact i { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; font-size: .9rem; color: #fff; }
.pub-footer-contact i.is-phone { background: var(--p-primary); }
.pub-footer-contact i.is-line { background: #06c755; font-size: 1.05rem; }
.pub-footer-contact i.is-facebook { background: #1877f2; }
.pub-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding: 1.25rem 0 1.5rem; font-size: .85rem; color: #8b97b5; }
.pub-footer .dbd-registered-link img { max-width: 120px; border-radius: 8px; background: #fff; }

body.pub .back-to-top { background: var(--p-primary); border-radius: 12px; box-shadow: var(--p-shadow); }

/* ---------------------------------------------------------- legacy page harmonization (detail / form pages) */
body.pub .section-pad { padding: 56px 0; }
body.pub .section-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 700; color: var(--p-ink); }
body.pub .section-subtitle { color: var(--p-muted); font-size: 1.02rem; }
body.pub .placeholder-panel, body.pub .purchase-panel, body.pub .order-summary, body.pub .course-register-summary, body.pub .course-register-form, body.pub .portfolio-detail-card, body.pub .registration-result, body.pub .order-form-panel {
    background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); box-shadow: var(--p-shadow-sm);
}
body.pub .placeholder-panel { padding: 1.5rem; }
body.pub .program-detail-media, body.pub .portfolio-detail-cover { border-radius: var(--p-radius); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); overflow: hidden; background: linear-gradient(135deg, #ecf6ff, #f0f9ff); }
body.pub .program-detail-price { color: var(--p-ink); }
body.pub .gallery-thumbnail { border-radius: 12px; border: 1px solid var(--p-line); overflow: hidden; }
body.pub .program-card, body.pub .portfolio-card { border: 1px solid var(--p-line); border-radius: var(--p-radius); overflow: hidden; background: #fff; transition: transform .22s var(--p-ease), box-shadow .22s; }
body.pub .program-card:hover, body.pub .portfolio-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow); }
body.pub .detail-text { color: var(--p-ink-2); line-height: 1.85; }
body.pub .payment-account, body.pub .bank-public { border-radius: 14px; border-color: var(--p-line); }
body.pub .contact-link { border-radius: var(--p-radius); border: 1px solid var(--p-line); background: #fff; transition: transform .2s var(--p-ease), box-shadow .2s; }
body.pub .contact-link:hover { transform: translateY(-3px); box-shadow: var(--p-shadow); }

/* ---------------------------------------------------------- contact */
.pub-contact-card { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); color: var(--p-ink-2); transition: transform .2s var(--p-ease), box-shadow .2s, border-color .2s; height: 100%; }
.pub-contact-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow); border-color: #cbe2f8; color: var(--p-ink-2); }
.pub-contact-card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--tone-bg); color: var(--tone); flex: 0 0 auto; }
.pub-contact-card strong { display: block; color: var(--p-ink); font-weight: 600; }
.pub-contact-card small { color: var(--p-muted); }
.pub-contact-card .go { margin-left: auto; color: #94a3b8; }

/* ---------------------------------------------------------- services hub */
.tool-card { position: relative; height: 100%; display: flex; flex-direction: column; padding: 1.35rem; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); transition: transform .22s var(--p-ease), box-shadow .22s, border-color .22s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--p-shadow); border-color: #cbe2f8; }
.tool-card.is-soon { opacity: .78; }
.tool-card.is-soon:hover { transform: none; box-shadow: none; }
.tool-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.tool-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--tool-color, var(--p-primary)); box-shadow: 0 10px 22px -10px var(--tool-color, var(--p-primary)); }
.tool-card h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .35rem; }
.tool-card h3 a { color: inherit; }
.tool-card h3 a::after { content: ""; position: absolute; inset: 0; }
.tool-card p { color: var(--p-muted); font-size: .9rem; margin: 0 0 1rem; }
.tool-usage { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding: .75rem .9rem; border-radius: 14px; background: color-mix(in srgb, var(--tool-color, var(--p-primary)) 8%, #fff); border: 1px solid color-mix(in srgb, var(--tool-color, var(--p-primary)) 18%, #fff); }
.tool-usage-icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1rem; color: var(--tool-color, var(--p-primary)); background: #fff; box-shadow: 0 6px 14px -8px var(--tool-color, var(--p-primary)); }
.tool-usage-text { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; line-height: 1.1; }
.tool-usage-text strong { font-size: 1.45rem; font-weight: 700; color: var(--tool-color, var(--p-ink)); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tool-usage-text small { font-size: .82rem; color: var(--p-muted); }
.tool-open { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--p-line); font-size: .9rem; font-weight: 500; color: var(--tool-color, var(--p-primary)); }
.tool-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .9rem; }
.tool-tags span { font-size: .72rem; padding: .12rem .5rem; border-radius: 999px; background: #f1f5f9; color: var(--p-muted); }

/* tool page */
.tool-bar { padding: 1.75rem 0 0; background: #f6f8fc; border-top: 1px solid var(--p-line); }
.tool-bar-inner { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); box-shadow: 0 10px 30px -24px rgba(15, 23, 42, .35); overflow: hidden; }
.tool-bar-inner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tool-color, var(--p-primary)); }
.tool-bar-icon { width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 1.45rem; color: #fff; background: var(--tool-color, var(--p-primary)); box-shadow: 0 10px 20px -10px var(--tool-color, var(--p-primary)); }
.tool-bar-text { flex: 1 1 auto; min-width: 0; }
body.pub .tool-bar-desc { margin: .2rem 0 0; font-size: .92rem; color: var(--p-muted); line-height: 1.5; }
body.pub .tool-bar-title { margin: 0; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); font-weight: 700; line-height: 1.25; }
.tool-bar-credit { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; font-size: .8rem; color: var(--p-muted); text-decoration: none; }
.tool-bar-credit i { font-size: .72rem; color: var(--tool-color, var(--p-primary)); }
.tool-bar-credit b { font-weight: 600; color: var(--p-ink); }
.tool-bar-credit:hover b { color: var(--tool-color, var(--p-primary)); }
.tool-bar-stat { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; font-size: .9rem; color: var(--p-muted); background: color-mix(in srgb, var(--tool-color, var(--p-primary)) 8%, #fff); border: 1px solid color-mix(in srgb, var(--tool-color, var(--p-primary)) 18%, #fff); }
.tool-bar-actions { flex: none; display: flex; align-items: center; gap: .5rem; }
.tool-bar-help { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 500; color: var(--tool-color, var(--p-primary)); background: color-mix(in srgb, var(--tool-color, var(--p-primary)) 8%, #fff); border: 1px solid color-mix(in srgb, var(--tool-color, var(--p-primary)) 18%, #fff); cursor: pointer; transition: background .15s, border-color .15s; }
.tool-bar-help:hover { background: color-mix(in srgb, var(--tool-color, var(--p-primary)) 14%, #fff); border-color: color-mix(in srgb, var(--tool-color, var(--p-primary)) 32%, #fff); }
.tool-bar-help:focus-visible { outline: 3px solid color-mix(in srgb, var(--tool-color, var(--p-primary)) 30%, transparent); outline-offset: 2px; }
.tool-bar-stat i { color: var(--tool-color, var(--p-primary)); font-size: .85rem; }
.tool-bar-stat b { color: var(--p-ink); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tool-workspace { min-height: calc(100vh - 200px); min-height: calc(100dvh - 200px); padding: 1.5rem 0 3rem; background: #f6f8fc; }
@media (max-width: 575.98px) {
    .tool-bar { padding-top: 1rem; }
    .tool-bar-inner { flex-wrap: wrap; gap: .75rem; padding: .9rem 1rem; }
    .tool-bar-actions { flex: 1 1 100%; flex-wrap: wrap; padding-top: .75rem; border-top: 1px dashed var(--p-line); }
    .tool-bar-icon { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 13px; }
    .tool-bar-stat, .tool-bar-help { padding: .35rem .75rem; font-size: .84rem; }
    body.pub .tool-bar-desc { font-size: .84rem; }
    .tool-workspace { padding-top: 1rem; }
}
.tool-panel { background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); box-shadow: var(--p-shadow); padding: 1.25rem; }
.tool-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.tool-form .pub-search-box { min-width: 260px; }
.tool-token-box { flex: 1 1 260px; display: flex; gap: .5rem; }
.tool-token-box .form-control { flex: 1; min-width: 0; }
.tool-modal { border: 0; border-radius: 20px; box-shadow: var(--p-shadow-lg); }
.tool-form input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.tool-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .84rem; color: var(--p-muted); margin: .85rem 0 0; }
.tool-note i { color: var(--p-green); margin-top: .25rem; }
.tool-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.tool-summary div { background: #fff; border: 1px solid var(--p-line); border-radius: 14px; padding: .9rem 1rem; }
.tool-summary small { display: block; color: var(--p-muted); font-size: .8rem; }
.tool-summary strong { font-size: 1.4rem; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.bot-profile { display: flex; gap: 1rem; align-items: center; }
.bot-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: var(--tool-color, var(--p-primary)); overflow: hidden; flex: 0 0 auto; }
.bot-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bot-profile h2 { font-size: 1.2rem; margin: 0; font-weight: 600; }
.bot-profile .meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; color: var(--p-muted); font-size: .86rem; }
.chat-group-title { display: flex; align-items: center; gap: .6rem; margin: 1.75rem 0 .85rem; font-size: 1.05rem; font-weight: 600; color: var(--p-ink); }
.chat-group-title .count { font-size: .78rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; background: #f1f5f9; color: var(--p-muted); }
.chat-group-title .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .9rem; background: var(--tone-bg); color: var(--tone); }
.chat-card { height: 100%; display: flex; flex-direction: column; gap: .75rem; padding: 1rem; background: #fff; border: 1px solid var(--p-line); border-left: 4px solid var(--tone); border-radius: 14px; transition: box-shadow .2s; }
.chat-card:hover { box-shadow: var(--p-shadow); }
.chat-card-head { display: flex; gap: .75rem; align-items: center; min-width: 0; }
.chat-avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--tone-bg); color: var(--tone); flex: 0 0 auto; overflow: hidden; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-card-head strong { display: block; color: var(--p-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-card-head small { color: var(--p-muted); font-size: .8rem; }
.chat-id { display: flex; align-items: center; gap: .5rem; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: .45rem .5rem .45rem .75rem; }
.chat-id code { flex: 1; font-size: .88rem; color: var(--p-ink); word-break: break-all; background: none; }
.chat-id button { border: 0; background: #fff; border: 1px solid var(--p-line); border-radius: 8px; padding: .25rem .55rem; font-size: .8rem; color: var(--p-ink-2); }
.chat-id button:hover { border-color: var(--p-primary); color: var(--p-primary); }
.chat-tags { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .76rem; color: var(--p-muted); }
.chat-tags span { background: #f1f5f9; border-radius: 999px; padding: .1rem .5rem; }
.tone-private { --tone: #2e8bf0; --tone-bg: #ecf6ff; }
.tone-group { --tone: #0f9d6b; --tone-bg: #e8f8f1; }
.tone-supergroup { --tone: #0284c7; --tone-bg: #e0f2fe; }
.tone-channel { --tone: #d97706; --tone-bg: #fff7e6; }
.tool-howto { counter-reset: how; list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.tool-howto li { position: relative; padding-left: 2.4rem; font-size: .92rem; }
.tool-howto li::before { counter-increment: how; content: counter(how); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: .8rem; background: var(--p-primary-50); color: var(--p-primary); }
.tool-howto code, .tool-panel code { background: #f1f5f9; padding: .1rem .35rem; border-radius: 6px; color: #be185d; font-size: .85em; }

/* skeleton */
.pub-skeleton { position: relative; overflow: hidden; background: #eef2f7; border-radius: 10px; }
.pub-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: pubShimmer 1.2s infinite; }
@keyframes pubShimmer { to { transform: translateX(100%); } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--p-ease), transform .6s var(--p-ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .pub-float { animation: none; }
    .pub-card, .pub-feature, .tool-card { transition: none; }
}
body.pub { overflow-x: clip; }
@media (max-width: 575.98px) {
    .pub-btn { white-space: normal; }
    .pub-hero .pub-btn-lg { flex: 1 1 100%; }
    .pub-showcase { padding: 18px 10px; }
    .pub-float { display: none; }
    .pub-section { padding: 52px 0; }
    .page-hero { padding: 36px 0 44px; }
    .pub-filter { padding: .8rem; }
    .pub-footer-cta { transform: translateY(-40%); padding: 1.25rem; }
}

/* ---------- QR Code Generator ---------- */
.qr-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; padding: .3rem; margin-bottom: 1.1rem; background: #f1f5f9; border-radius: 14px; }
.qr-tab { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem .4rem; border: 0; border-radius: 11px; background: transparent; font: inherit; font-size: .9rem; font-weight: 600; color: var(--p-muted); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.qr-tab:hover { color: var(--p-ink); }
.qr-tab.active { background: #fff; color: var(--tool-color, var(--p-primary)); box-shadow: 0 2px 8px -3px rgba(15, 23, 42, .25); }
.qr-tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--tool-color, var(--p-primary)) 30%, transparent); outline-offset: 1px; }
.qr-options { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px dashed var(--p-line); }
.qr-options summary { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; color: var(--p-ink); cursor: pointer; list-style: none; }
.qr-options summary::-webkit-details-marker { display: none; }
.qr-options summary i { color: var(--tool-color, var(--p-primary)); }
.qr-options summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; color: var(--p-muted); transition: transform .15s; }
.qr-options[open] summary::after { transform: rotate(180deg); }
.qr-options .form-control-color { height: 38px; padding: .25rem; }
.qr-logo-row { display: flex; gap: .5rem; align-items: stretch; }
.qr-logo-drop { flex: 1; min-width: 0; display: flex; align-items: center; gap: .65rem; margin: 0; padding: .55rem .8rem; border: 1.5px dashed var(--p-line); border-radius: 12px; font-size: .88rem; color: var(--p-muted); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.qr-logo-drop:hover, .qr-logo-drop.is-drag { border-color: var(--tool-color, var(--p-primary)); background: color-mix(in srgb, var(--tool-color, var(--p-primary)) 6%, #fff); }
.qr-logo-drop.has-logo { border-style: solid; color: var(--p-ink); }
.qr-logo-drop i { font-size: 1.15rem; color: var(--tool-color, var(--p-primary)); }
.qr-logo-drop img { width: 32px; height: 32px; flex: none; object-fit: contain; border-radius: 6px; background: repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 50% / 8px 8px; }
.qr-logo-drop img[hidden], .qr-logo-drop i[hidden] { display: none; }
.qr-logo-drop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-preview-panel { position: sticky; top: 90px; display: flex; flex-direction: column; gap: .9rem; }
.qr-preview { display: grid; place-items: center; min-height: 300px; padding: 1rem; border-radius: 16px; background: repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 50% / 20px 20px; border: 1px solid var(--p-line); }
.qr-preview canvas { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 6px; box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .45); }
.qr-preview canvas[hidden] { display: none; }
.qr-placeholder { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; font-size: .9rem; color: var(--p-muted); }
.qr-placeholder i { font-size: 3.5rem; color: color-mix(in srgb, var(--tool-color, var(--p-primary)) 35%, #fff); }
.qr-meta { font-size: .84rem; color: var(--p-muted); text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qr-error { padding: .6rem .85rem; border-radius: 12px; font-size: .86rem; color: #b42318; background: #fef3f2; border: 1px solid #fecdca; }
.qr-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.qr-actions .btn { padding-left: .5rem; padding-right: .5rem; white-space: nowrap; }
@media (max-width: 991.98px) { .qr-preview-panel { position: static; } }
@media (max-width: 575.98px) {
    .qr-tab { flex-direction: column; gap: .2rem; font-size: .78rem; }
    .qr-preview { min-height: 240px; }
}

/* ---------- services hub: เมนูย่อยบนการ์ด ---------- */
.tool-subs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; margin-bottom: .9rem; }
.tool-subs a { display: flex; align-items: center; gap: .45rem; padding: .4rem .6rem; border-radius: 10px; font-size: .82rem; font-weight: 500; color: var(--p-ink-2); background: #f6f8fc; border: 1px solid var(--p-line); text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.tool-subs a i { width: 1.1em; text-align: center; color: var(--tool-color, var(--p-primary)); }
.tool-subs a:hover { color: var(--tool-color, var(--p-primary)); background: color-mix(in srgb, var(--tool-color, var(--p-primary)) 7%, #fff); border-color: color-mix(in srgb, var(--tool-color, var(--p-primary)) 30%, #fff); }

/* ---------- PDF Tools ---------- */
#pdfApp [hidden] { display: none !important; }
.pdf-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.pdf-menu-card { position: relative; display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.15rem; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); text-decoration: none; color: inherit; transition: transform .2s var(--p-ease), box-shadow .2s, border-color .2s; }
.pdf-menu-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow); border-color: color-mix(in srgb, var(--tool-color) 35%, #fff); }
.pdf-menu-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; color: #fff; background: var(--tool-color); box-shadow: 0 10px 20px -10px var(--tool-color); }
.pdf-menu-text { display: flex; flex-direction: column; min-width: 0; padding-right: 1rem; }
.pdf-menu-text strong { font-size: 1.02rem; font-weight: 600; color: var(--p-ink); line-height: 1.3; }
.pdf-menu-text b { font-size: .86rem; font-weight: 500; color: var(--tool-color); }
.pdf-menu-text small { margin-top: .3rem; font-size: .82rem; color: var(--p-muted); line-height: 1.5; }
.pdf-menu-arrow { position: absolute; right: 1rem; top: 1.2rem; font-size: .8rem; color: var(--p-line); transition: color .2s, transform .2s; }
.pdf-menu-card:hover .pdf-menu-arrow { color: var(--tool-color); transform: translateX(3px); }

.pdf-nav { display: flex; gap: .4rem; margin-bottom: 1.25rem; padding: .35rem; overflow-x: auto; background: #fff; border: 1px solid var(--p-line); border-radius: 14px; scrollbar-width: thin; }
.pdf-nav a { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 10px; font-size: .86rem; font-weight: 500; white-space: nowrap; color: var(--p-muted); text-decoration: none; transition: background .15s, color .15s; }
.pdf-nav a:hover { color: var(--p-ink); background: #f1f5f9; }
.pdf-nav a.active { color: #fff; background: var(--tool-color, var(--p-primary)); }
.pdf-nav a.pdf-nav-all { color: var(--p-ink); border-right: 1px solid var(--p-line); border-radius: 10px 0 0 10px; padding-right: .9rem; margin-right: .15rem; }

.pdf-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; margin: 0; min-height: 260px; padding: 2rem 1rem; text-align: center; border: 2px dashed #cfd8e6; border-radius: 16px; background: #fafcff; color: var(--p-muted); cursor: pointer; transition: border-color .15s, background .15s; }
.pdf-drop i { font-size: 2.6rem; margin-bottom: .5rem; color: color-mix(in srgb, var(--tool-color, var(--p-primary)) 60%, #fff); }
.pdf-drop strong { font-size: 1rem; font-weight: 600; color: var(--p-ink); }
.pdf-drop span { font-size: .85rem; }
.pdf-drop:hover, .pdf-drop.is-drag { border-color: var(--tool-color, var(--p-primary)); background: color-mix(in srgb, var(--tool-color, var(--p-primary)) 5%, #fff); }
.pdf-drop.is-compact { min-height: 0; flex-direction: row; flex-wrap: wrap; gap: .35rem .75rem; padding: .9rem 1rem; }
.pdf-drop.is-compact i { font-size: 1.3rem; margin: 0; }
.pdf-drop.is-compact strong { font-size: .9rem; }

.pdf-file { display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; border: 1px solid var(--p-line); border-radius: 14px; background: #fafcff; }
.pdf-file-icon, .pdf-list-thumb { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem; color: var(--tool-color, var(--p-rose)); background: color-mix(in srgb, var(--tool-color, var(--p-rose)) 10%, #fff); overflow: hidden; }
.pdf-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdf-file-text, .pdf-list-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pdf-file-text strong, .pdf-list-text strong { font-size: .92rem; font-weight: 600; color: var(--p-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-file-text small, .pdf-list-text small { font-size: .8rem; color: var(--p-muted); }

.pdf-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.pdf-list li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border: 1px solid var(--p-line); border-radius: 13px; background: #fff; }
.pdf-list-no { width: 1.6rem; flex: none; text-align: center; font-size: .82rem; font-weight: 600; color: var(--p-muted); font-variant-numeric: tabular-nums; }
.pdf-list-actions { flex: none; display: flex; gap: .25rem; }
.pdf-list-actions button { width: 34px; height: 34px; border: 1px solid var(--p-line); border-radius: 9px; background: #fff; color: var(--p-ink-2); font-size: .82rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pdf-list-actions button:hover:not(:disabled) { background: #f1f5f9; border-color: #cbd5e1; }
.pdf-list-actions button:disabled { opacity: .35; cursor: default; }
.pdf-list-actions button.is-danger:hover { color: #b42318; background: #fef3f2; border-color: #fecdca; }

.pdf-pagebar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin-top: 1rem; }
.pdf-pagebar-buttons { display: flex; gap: .4rem; }
.pdf-range { flex: 1 1 220px; display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .84rem; color: var(--p-muted); white-space: nowrap; }
.pdf-pagebar small { font-size: .82rem; color: var(--p-muted); }
.pdf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .7rem; margin-top: 1rem; max-height: 620px; overflow-y: auto; padding: .25rem; }
.pdf-thumb { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .5rem .4rem .35rem; border: 2px solid var(--p-line); border-radius: 12px; background: #f8fafc; cursor: pointer; font: inherit; transition: border-color .12s, background .12s; }
.pdf-thumb:hover { border-color: #cbd5e1; }
.pdf-thumb.is-selected { border-color: var(--tool-color, var(--p-primary)); background: color-mix(in srgb, var(--tool-color, var(--p-primary)) 6%, #fff); }
.pdf-thumb-img { width: 100%; height: 132px; display: grid; place-items: center; }
.pdf-thumb-img canvas { max-width: 100%; max-height: 132px; background: #fff; box-shadow: 0 2px 8px -3px rgba(15, 23, 42, .35); }
.pdf-thumb-img:empty::before { content: ""; width: 70%; height: 90%; border-radius: 4px; background: #e9eef5; }
.pdf-thumb-no { font-size: .78rem; font-weight: 600; color: var(--p-muted); font-variant-numeric: tabular-nums; }
.pdf-thumb-check { position: absolute; top: .35rem; right: .35rem; font-size: 1.05rem; color: var(--tool-color, var(--p-primary)); background: #fff; border-radius: 50%; opacity: 0; transition: opacity .12s; }
.pdf-thumb.is-selected .pdf-thumb-check { opacity: 1; }

.pdf-side { position: sticky; top: 90px; }
.pdf-side-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; font-weight: 600; color: var(--p-ink); }
.pdf-side-title i { color: var(--tool-color, var(--p-primary)); }
.pdf-side-text { margin: 0 0 .9rem; font-size: .88rem; color: var(--p-muted); }
.pdf-side-stat { padding: .55rem .8rem; border-radius: 11px; font-size: .88rem; font-weight: 500; color: var(--p-ink); background: #f1f5f9; }
.pdf-side-warn { display: flex; gap: .45rem; margin: .8rem 0 0; padding: .55rem .75rem; border-radius: 11px; font-size: .82rem; color: #92400e; background: var(--p-amber-50); }
.pdf-side-warn i { margin-top: .25rem; }
.pdf-choices { display: grid; gap: .45rem; }
.pdf-choices label { display: flex; align-items: flex-start; gap: .6rem; margin: 0; padding: .6rem .75rem; border: 1.5px solid var(--p-line); border-radius: 12px; cursor: pointer; transition: border-color .12s, background .12s; }
.pdf-choices label:has(input:checked) { border-color: var(--tool-color, var(--p-primary)); background: color-mix(in srgb, var(--tool-color, var(--p-primary)) 5%, #fff); }
.pdf-choices input { margin-top: .3rem; accent-color: var(--tool-color, var(--p-primary)); }
.pdf-choices span { display: flex; flex-direction: column; line-height: 1.4; }
.pdf-choices b { font-size: .9rem; font-weight: 600; color: var(--p-ink); }
.pdf-choices small { font-size: .8rem; color: var(--p-muted); }
.pdf-run { margin-top: 1.1rem; padding-top: .75rem; padding-bottom: .75rem; }
.pdf-run:disabled { opacity: .5; }
.pdf-status { margin-top: .8rem; }
.pdf-status-bar { height: 6px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.pdf-status-bar span { display: block; height: 100%; width: 4%; border-radius: 999px; background: var(--tool-color, var(--p-primary)); transition: width .2s; }
.pdf-status small { display: block; margin-top: .35rem; font-size: .82rem; color: var(--p-muted); }
.pdf-side .qr-error { margin-top: .8rem; }
.pdf-result { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; padding: .7rem .8rem; border-radius: 13px; background: var(--p-green-50); border: 1px solid #bfe8d6; }
.pdf-result-icon { flex: none; font-size: 1.3rem; color: var(--p-green); }
.pdf-result-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pdf-result-text strong { font-size: .88rem; font-weight: 600; color: var(--p-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-result-text small { font-size: .8rem; color: var(--p-ink-2); }

.pdf-editor { margin-top: 1rem; }
.pdf-editor-nav { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: .8rem; font-size: .9rem; color: var(--p-ink-2); }
.pdf-editor-nav span { display: inline-flex; align-items: center; gap: .4rem; }
.pdf-editor-nav input { width: 64px; text-align: center; }
.pdf-stage-wrap { display: flex; justify-content: center; padding: .9rem; border-radius: 14px; background: #e9eef5; }
.pdf-stage { position: relative; width: 100%; background: #fff; box-shadow: 0 8px 26px -12px rgba(15, 23, 42, .45); }
.pdf-stage canvas { display: block; width: 100%; height: 100%; }
.pdf-overlay { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.pdf-item { position: absolute; cursor: move; touch-action: none; outline: 1.5px dashed rgba(100, 116, 139, .7); user-select: none; -webkit-user-select: none; }
.pdf-item img { display: block; width: 100%; height: 100%; pointer-events: none; }
.pdf-item.is-selected { outline: 2px solid var(--tool-color, var(--p-primary)); }
.pdf-item-handle { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--tool-color, var(--p-primary)); cursor: nwse-resize; display: none; transform: translate(40%, 40%); }
.pdf-item.is-selected .pdf-item-handle { display: block; }
.pdf-editor-hint { margin: .7rem 0 0; text-align: center; font-size: .82rem; color: var(--p-muted); }
.pdf-item-box { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem .75rem; margin-top: 1rem; padding: .6rem .75rem; border-radius: 12px; background: #f1f5f9; font-size: .86rem; color: var(--p-ink-2); }

.pdf-pad-wrap { position: relative; border: 1.5px dashed #cfd8e6; border-radius: 13px; background: #fff; overflow: hidden; }
.pdf-pad { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.pdf-pad-hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: .9rem; color: #b6c0cf; pointer-events: none; }
.pdf-pad-tools { display: flex; align-items: center; gap: .7rem; margin-top: .65rem; }
.pdf-pad-colors { display: flex; gap: .35rem; }
.pdf-pad-colors button { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1.5px var(--p-line); cursor: pointer; }
.pdf-pad-colors button.active { box-shadow: 0 0 0 2.5px var(--c); }
.pdf-pad-width { flex: 1 1 auto; display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--p-muted); font-size: .85rem; }
.pdf-link-btn { display: block; margin: .7rem 0 0; text-align: center; font-size: .84rem; color: var(--tool-color, var(--p-primary)); cursor: pointer; }
.pdf-link-btn:hover { text-decoration: underline; }
label.is-disabled { opacity: .5; pointer-events: none; }

@media (min-width: 992px) { .pdf-nav { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 991.98px) {
    .pdf-side { position: static; }
    .pdf-nav { scrollbar-width: none; }
    .pdf-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 575.98px) {
    .pdf-drop { min-height: 200px; }
    .pdf-nav a span { display: none; }
    .pdf-nav a.active span, .pdf-nav a.pdf-nav-all span { display: inline; }
    .pdf-nav a { padding: .55rem .75rem; }
    .pdf-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); max-height: 460px; }
    .pdf-file { flex-wrap: wrap; }
    .pdf-stage-wrap { padding: .5rem; }
}
