:root {
    --cherry: #ef2d43;
    --cherry-dark: #d31a34;
    --cherry-light: #fdedf0;
    --blue-link: #2563eb;

    --bg: #ffffff;
    --bg-subtle: #f7f8fc;
    --surface: #ffffff;
    --text: #16192b;
    --text-muted: #6b7085;
    --border: #eaeaf0;

    --success: #16a34a;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(20, 20, 43, 0.03);
    --shadow-md: 0 4px 12px rgba(20, 20, 43, 0.05);
    --shadow-lg: 0 8px 20px rgba(20, 20, 43, 0.08);
    --shine: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 55%);

    color-scheme: light;
}

:root[data-theme="dark"] {
    --cherry: #fb7185;
    --cherry-dark: #f43f5e;
    --cherry-light: #3f1723;

    --bg: #121214;
    --bg-subtle: #18181b;
    --surface: #1c1c20;
    --text: #f2f2f4;
    --text-muted: #9a9aa4;
    --border: #2c2c32;

    --success: #4ade80;
    --danger: #f87171;
    --danger-bg: #2a1414;
    --danger-border: #4c1d1d;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.3);

    color-scheme: dark;
}

* { box-sizing: border-box; }

.icon { vertical-align: -2px; flex-shrink: 0; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 64px);
}

a { color: var(--cherry); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(8px);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }

.logo-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 1.15rem;
    background: linear-gradient(145deg, #ff6b81 0%, var(--cherry) 55%, var(--cherry-dark) 100%);
    box-shadow: 0 3px 8px rgba(239, 45, 67, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: transform 0.2s ease;
}
.logo-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 45%);
}
.logo-mark-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-mark::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.55);
    transform: rotate(20deg);
    transition: left 0.6s ease;
}
.logo:hover .logo-mark::before { left: 130%; }

.logo-text { position: relative; }
.logo-pdf {
    background: linear-gradient(120deg, #ff8a9b 0%, var(--cherry) 45%, var(--cherry-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text);
    font-weight: 700;
    font-size: 0.92rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-family: inherit;
}
.nav-link:hover { color: var(--cherry); text-decoration: none; background: var(--bg-subtle); }
.nav-link.active { color: var(--cherry); position: relative; }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: -13px;
    height: 2px;
    background: var(--cherry);
}
.chevron { transition: transform 0.15s ease; }

.nav-item { position: relative; padding-bottom: 8px; margin-bottom: -8px; }
.nav-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: flex;
    flex-direction: column;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-item:hover .chevron,
.nav-item.open .chevron { transform: rotate(180deg); }
.nav-dropdown a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: 0.9rem; }
.nav-dropdown a:hover { background: var(--bg-subtle); color: var(--cherry); text-decoration: none; }
.nav-dropdown a.active { color: var(--cherry); background: var(--cherry-light); }
.lang-dropdown { left: auto; right: 0; min-width: 160px; max-height: 320px; overflow-y: auto; }
.lang-dropdown a.lang-active { color: var(--cherry); background: var(--cherry-light); }

[dir="rtl"] .lang-dropdown { left: 0; right: auto; }
[dir="rtl"] .chevron { transform: scaleX(-1); }
[dir="rtl"] .tool-arrow,
[dir="rtl"] .view-all { direction: rtl; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger — hidden on desktop, shown in the mobile breakpoint below. */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--text);
    cursor: pointer;
}
.nav-toggle-x { display: none; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-subtle);
    color: var(--text);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    font-family: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.icon-btn:hover { border-color: var(--cherry); }
#theme-toggle { width: 36px; padding: 0; justify-content: center; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: inline; }

.btn-sm { padding: 9px 20px; font-size: 0.9rem; }

.hero {
    padding: 72px 0;
    background:
        radial-gradient(60% 90% at 88% 15%, rgba(129, 106, 246, 0.16) 0%, rgba(129, 106, 246, 0) 60%),
        radial-gradient(50% 80% at 70% 60%, rgba(239, 45, 67, 0.08) 0%, rgba(239, 45, 67, 0) 60%),
        var(--bg);
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}
.hero h1 { font-size: 2.75rem; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--cherry); }
.hero h1 .brand-name {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    background: linear-gradient(120deg, #ff8a9b 0%, var(--cherry) 45%, var(--cherry-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 28px; max-width: 46ch; }

.hero-search {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 4px 4px 20px;
    box-shadow: var(--shadow-md);
    max-width: 460px;
    margin-bottom: 20px;
}
.hero-search input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--text);
    padding: 10px 0;
}
.hero-search button {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(145deg, #ff6b81 0%, var(--cherry) 45%, var(--cherry-dark) 100%);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(239, 45, 67, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-search button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--shine);
}
.hero-search button::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -60%;
    width: 40%;
    height: 220%;
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(20deg);
    transition: left 0.6s ease;
}
.hero-search button:hover::before { left: 130%; }
.hero-search button:hover { transform: scale(1.05); box-shadow: 0 3px 8px rgba(239, 45, 67, 0.28); }

.hero-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    font-size: 0.8rem;
}
.badge-green { background: #dcfce7; }
.badge-blue { background: #dbeafe; }
.badge-purple { background: #ede9fe; }
.badge-amber { background: #fef3c7; }

.trust-row { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.avatar-stack { display: flex; }
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 2px solid var(--bg);
    font-size: 1.1rem;
    margin-left: -10px;
    box-shadow: var(--shadow-sm);
}
.avatar:first-child { margin-left: 0; }
.av-1 { background: #fde68a; }
.av-2 { background: #bfdbfe; }
.av-3 { background: #fbcfe8; }
.av-4 { background: #bbf7d0; }
.trust-copy { display: flex; flex-direction: column; gap: 2px; }
.stars { display: flex; gap: 2px; color: #f59e0b; }
.trust-text { font-size: 0.85rem; color: var(--text-muted); }
.trust-text strong { color: var(--text); }

.hero-art { position: relative; height: 320px; display: flex; align-items: center; justify-content: center; }
.hero-doc {
    width: 220px;
    min-height: 280px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hero-doc-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 32px;
    background: linear-gradient(180deg, var(--cherry) 0%, var(--cherry-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}
.hero-doc-badge::after { content: ""; position: absolute; inset: 0; background: var(--shine); }
.doc-line { height: 8px; border-radius: 4px; background: var(--bg-subtle); width: 100%; }
.doc-line.short { width: 40%; }

.float-chip {
    position: absolute;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    animation: float 5s ease-in-out infinite;
    overflow: hidden;
}
.float-chip::after { content: ""; position: absolute; inset: 0; background: var(--shine); }
.chip-1 { top: 6%; left: 4%; animation-delay: 0s; }
.chip-2 { bottom: 12%; right: 6%; animation-delay: 1s; }
.chip-3 { top: 12%; right: 0%; animation-delay: 2s; }
.chip-4 { bottom: 4%; left: 10%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-primary {
    background: linear-gradient(145deg, #ff6b81 0%, var(--cherry) 45%, var(--cherry-dark) 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(239, 45, 67, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--shine);
    pointer-events: none;
}
.btn-primary::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -60%;
    width: 40%;
    height: 220%;
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover {
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(239, 45, 67, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    filter: brightness(1.03);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
    background: #9a9aa4;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    filter: none;
}
.btn-primary:disabled::before { display: none; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

.tools-grid { padding: 48px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.view-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 0.9rem; color: var(--blue-link); }

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tool-card[hidden] { display: none; }
.tool-card:hover { border-color: var(--cherry); text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tool-card:hover .tool-arrow { color: var(--cherry); transform: translateX(2px); }

.tool-icon-tile {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 12px;
    overflow: hidden;
}
.tool-icon-tile::after { content: ""; position: absolute; inset: 0; background: var(--shine); }
.tool-icon-svg { position: relative; z-index: 1; }
.hue-0 .tool-icon-tile { background: #ef4444; box-shadow: 0 3px 8px rgba(239, 68, 68, 0.2); }
.hue-1 .tool-icon-tile { background: #f59e0b; box-shadow: 0 3px 8px rgba(245, 158, 11, 0.2); }
.hue-2 .tool-icon-tile { background: #22c55e; box-shadow: 0 3px 8px rgba(34, 197, 94, 0.2); }
.hue-3 .tool-icon-tile { background: #3b82f6; box-shadow: 0 3px 8px rgba(59, 130, 246, 0.2); }
.hue-4 .tool-icon-tile { background: #8b5cf6; box-shadow: 0 3px 8px rgba(139, 92, 246, 0.2); }
.hue-5 .tool-icon-tile { background: #ec4899; box-shadow: 0 3px 8px rgba(236, 72, 153, 0.2); }

.tool-page-icon.hue-0, .related-icon.hue-0 { background: #ef4444; }
.tool-page-icon.hue-1, .related-icon.hue-1 { background: #f59e0b; }
.tool-page-icon.hue-2, .related-icon.hue-2 { background: #22c55e; }
.tool-page-icon.hue-3, .related-icon.hue-3 { background: #3b82f6; }
.tool-page-icon.hue-4, .related-icon.hue-4 { background: #8b5cf6; }
.tool-page-icon.hue-5, .related-icon.hue-5 { background: #ec4899; }

.tool-name { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.tool-desc { display: block; font-size: 0.83rem; line-height: 1.4; color: var(--text-muted); padding-right: 20px; }
.tool-arrow {
    position: absolute;
    bottom: 18px;
    right: 18px;
    color: var(--text-muted);
    opacity: 0.6;
    transition: color 0.15s ease, transform 0.15s ease;
}

@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .grid { grid-template-columns: 1fr; }
}

.home-info { padding: 8px 0 48px; }
.home-info-inner { max-width: 74ch; margin: 0 auto; }
.home-info-inner h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.home-info-inner h2:first-child { margin-top: 0; }
.home-info-inner h3 { font-size: 1.1rem; margin: 20px 0 10px; }
.home-info-inner p { font-size: 0.95rem; line-height: 1.7; color: var(--text-muted); margin: 0 0 12px; }
.home-info-inner a { color: var(--cherry); font-weight: 600; }
.home-info-privacy-link { display: inline-flex; margin-top: 8px; }
.home-info-inner .feature-list { margin: 8px 0 12px; }
.home-info-inner .feature-list li { font-size: 0.95rem; color: var(--text-muted); }
.home-info-inner .faq-section { margin-top: 8px; }
.home-info-inner .faq-see-all { display: inline-block; margin-top: 18px; }
.home-steps { max-width: 960px; margin: 0 auto; }
.home-steps h2 { font-size: 1.4rem; margin: 40px 0 18px; text-align: center; }

.stats-bar { padding-bottom: 56px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 32px 16px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.stat-icon-red { background: var(--cherry-light); }
.stat-icon-blue { background: #dbeafe; }
.stat-icon-green { background: #dcfce7; }
.stat-icon-purple { background: #ede9fe; }
.stat-num { font-size: 1.7rem; font-weight: 800; }
.stat-num-text { font-size: 1.15rem; }
.stat-num-red { color: var(--cherry); }
.stat-num-blue { color: #2563eb; }
.stat-num-green { color: #16a34a; }
.stat-num-purple { color: #7c3aed; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

.page-header { padding: 32px 0 8px; }
.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.page-header-row h1 { margin: 0; }

.tools-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.tools-search input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--text);
}
.tools-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

.tool-page { padding: 32px 0 64px; }
.breadcrumbs { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 20px; }
.tool-page h1 { margin: 0 0 6px; }
.lead { color: var(--text-muted); margin: 0; }

.tool-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tool-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.merge-illustration {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 28px;
    border-radius: var(--radius);
    background: radial-gradient(120% 140% at 80% 20%, var(--cherry-light) 0%, var(--bg-subtle) 70%);
    flex-shrink: 0;
}
.illus-stack { position: relative; width: 56px; height: 64px; flex-shrink: 0; }
.illus-page {
    position: absolute;
    inset: 0;
    width: 52px;
    height: 64px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.illus-page-2 { transform: translate(8px, 6px) rotate(4deg); opacity: 0.7; }
.illus-page-1 { transform: translate(0, 0); }
.illus-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 16px;
    background: var(--cherry);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 3px;
    margin-bottom: 2px;
}
.illus-tag-lg { width: 34px; height: 20px; font-size: 0.65rem; border-radius: 4px; }
.illus-line { height: 5px; border-radius: 3px; background: var(--bg-subtle); }
.illus-line-strike { background: var(--cherry-light); position: relative; }
.illus-line-strike::after { content: ""; position: absolute; inset: 0; top: 50%; height: 1px; background: var(--cherry); }
.illus-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--cherry);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(239, 45, 67, 0.3);
}
.illus-result {
    width: 66px;
    height: 76px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.illus-rotated {
    transform: rotate(90deg);
}

.merge-layout {
    max-width: 1140px;
    margin: 0 auto;
}
.merge-layout .btn-merge {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.merge-layout .merge-disabled-reason { text-align: center; }

.upload-box {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    background: var(--bg-subtle);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.upload-box.dragover { border-color: var(--cherry); background: var(--cherry-light); }
.upload-icon { color: var(--cherry); }
.upload-title { font-size: 1.15rem; font-weight: 700; margin: 12px 0 2px; }
.upload-sub { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 20px; }

.upload-sources {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.source-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.source-local {
    background: linear-gradient(145deg, #ff6b81 0%, var(--cherry) 45%, var(--cherry-dark) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 3px 10px rgba(239, 45, 67, 0.25);
}
.source-local:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(239, 45, 67, 0.32); }
.source-btn:disabled, .source-btn.js-soon { opacity: 0.85; }
.source-btn:disabled { cursor: not-allowed; }
.source-btn:hover:not(:disabled) { border-color: var(--cherry); }
.source-btn-success { border-color: #1a9c5c; color: #1a9c5c; }
.js-soon { cursor: pointer; }
.source-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--bg-subtle);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 999px;
}
.file-label { position: relative; overflow: hidden; }
.file-label input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}
.hint { color: var(--text-muted); font-size: 0.85rem; margin-top: 16px; }

.file-list-panel {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 16px;
}
.file-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.file-list-actions { display: flex; align-items: center; gap: 14px; }
.text-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
}
.text-action:hover { color: var(--cherry); }
#clear-all-btn:hover { color: var(--danger); }
.action-sep { width: 1px; height: 14px; background: var(--border); }

.file-list-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin: 0 0 10px;
}

.thumb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 14px;
    font-weight: 700;
    font-size: 0.9rem;
}
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.thumb-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 8px;
    cursor: grab;
    transition: border-color 0.12s ease, transform 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease;
}
.thumb-card:active { cursor: grabbing; }
.thumb-card.dragging { opacity: 0.4; }
.thumb-card.drag-over { border-color: var(--cherry); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.thumb-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border);
    pointer-events: none;
    background: var(--bg-subtle);
}
.thumb-grip {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}
:root[data-theme="dark"] .thumb-grip { background: rgba(0, 0, 0, 0.6); }
.thumb-num {
    display: block;
    text-align: center;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px;
    background: var(--bg-subtle);
    transition: border-color 0.12s ease, transform 0.12s ease, opacity 0.12s ease;
}
.file-list li:last-child { margin-bottom: 0; }
.file-list li.dragging { opacity: 0.4; }
.file-list li.drag-over { border-color: var(--cherry); transform: translateY(1px); }
.file-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.file-grip { color: var(--text-muted); flex-shrink: 0; cursor: grab; }
.file-grip:active { cursor: grabbing; }
.file-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}
.file-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--cherry);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    flex-shrink: 0;
}
.file-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--text-muted); font-size: 0.85rem; flex-shrink: 0; }
.file-row-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.row-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
}
.row-icon-btn:hover { background: var(--surface); color: var(--text); }
.remove-file:hover { color: var(--danger); }

.btn-merge { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 20px; }

.merge-sidebar {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 20px;
    position: sticky;
    top: 84px;
}
.merge-sidebar h3 { margin: 0 0 16px; font-size: 1.05rem; }
.sidebar-block { margin-bottom: 20px; }
.sidebar-block:last-child { margin-bottom: 0; }
.sidebar-block h4 { margin: 0 0 10px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }

.ranges-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--text);
    font-size: 0.88rem;
    outline: none;
}
.ranges-input:focus { border-color: var(--cherry); }
.ranges-hint { margin: 8px 0 0; font-size: 0.78rem; color: var(--text-muted); }

.optional-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    vertical-align: middle;
}

.option-radio, .option-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
}
.option-radio:last-child, .option-check:last-child { margin-bottom: 0; }
.option-radio input, .option-check input { accent-color: var(--cherry); width: 16px; height: 16px; flex-shrink: 0; }
.option-text { display: flex; flex-direction: column; gap: 1px; }
.option-text strong { font-size: 0.88rem; }
.option-text small { color: var(--text-muted); font-size: 0.78rem; }
.option-check span:not(.source-badge) { font-size: 0.88rem; flex: 1; }
.is-disabled { cursor: pointer; opacity: 0.8; }
.is-disabled .source-badge { margin-left: auto; }

/* Merge: file-row page count + move buttons */
.file-pages {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.row-icon-btn.row-move {
    font-size: 0.95rem;
    line-height: 1;
    font-weight: 700;
}
.row-icon-btn[disabled] { opacity: 0.35; pointer-events: none; }

/* Merge: custom page-range panel */
.custom-range-panel { margin-top: 10px; }
.range-input-list { list-style: none; padding: 0; margin: 8px 0 0; }
.range-input-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.range-input-row:last-child { margin-bottom: 0; }
.range-input-name {
    font-size: 0.78rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.range-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
}
.range-input:focus { border-color: var(--cherry); }

/* Merge: optimize level selector */
.optimize-level-wrap { margin: -2px 0 8px; padding: 0 10px; }
.option-select-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.option-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
}
.option-select:focus { border-color: var(--cherry); }

/* ============ Merge PDF: workspace ============ */
.status-row {
    list-style: none; padding: 0; margin: 0 0 18px;
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    font-size: 0.82rem; color: var(--text-muted);
}
.status-row li { display: inline-flex; align-items: center; gap: 6px; }
.status-row svg { color: var(--success); }

.merge-shell {
    max-width: 1440px; margin: 0 auto;
    border: 1px solid var(--border); border-radius: 16px;
    background: var(--surface); box-shadow: var(--shadow-sm);
}
.ws-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.ws-head-text h2 { margin: 0 0 3px; font-size: 1.1rem; }
.ws-head-text p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.ws-head-stats {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap;
    font-size: 0.83rem; color: var(--text-muted);
}
.ws-head-stats[hidden] { display: none; }
.ws-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.link-btn {
    border: none; background: none; color: var(--cherry); padding: 0;
    font: inherit; font-weight: 600; font-size: 0.83rem; cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

.merge-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 24px; }
.merge-col-main { min-width: 0; }

.dropzone {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 44px 20px; text-align: center; cursor: pointer;
    border: 2px dashed var(--border); border-radius: 14px; background: var(--bg-subtle);
    transition: border-color .15s ease, background-color .15s ease, padding .18s ease;
}
.dropzone.is-dragover { border-color: var(--cherry); background: var(--cherry-light); }
.merge-shell[data-empty="false"] .dropzone { padding: 16px 18px; flex-direction: row; gap: 12px; }
.merge-shell[data-empty="false"] .dropzone .dz-hint { display: none; }
.merge-shell[data-empty="false"] .dropzone .dz-icon { width: 34px; height: 34px; margin: 0; }
.dz-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 999px;
    background: var(--cherry); color: #fff; margin-bottom: 4px;
}
.dz-title { font-weight: 700; font-size: 1rem; }
.dz-sub { color: var(--text-muted); font-size: 0.85rem; }
.dz-link { color: var(--cherry); font-weight: 600; text-decoration: underline; cursor: pointer; }
.dz-hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 4px; }

.import-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.import-label { color: var(--text-muted); font-size: 0.8rem; margin-right: 2px; }
.src-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px; border: 1px solid var(--border); border-radius: 9px;
    background: var(--surface); color: var(--text);
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
}
.src-btn:hover { border-color: var(--cherry); background: var(--bg-subtle); }

.files-toolbar {
    display: flex; align-items: center; gap: 12px;
    margin-top: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.files-toolbar[hidden] { display: none; }
.select-all-lbl { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--text-muted); cursor: pointer; }
.select-all-lbl input { width: 15px; height: 15px; accent-color: var(--cherry); }
.toolbar-spacer { flex: 1; }
.view-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: none; background: var(--surface);
    color: var(--text-muted); font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.view-btn + .view-btn { border-left: 1px solid var(--border); }
.view-btn.is-active { background: var(--cherry-light); color: var(--cherry); }

.file-cards { list-style: none; padding: 0; margin: 16px 0 0; }
.file-cards[hidden] { display: none; }
.file-cards[data-view="grid"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.file-cards[data-view="list"] { display: flex; flex-direction: column; gap: 8px; }

.file-card {
    position: relative; border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); transition: border-color .12s ease, box-shadow .12s ease;
}
.file-card.dragging { opacity: .45; }
.file-card.drop-before::before, .file-card.drop-after::after { content: ""; position: absolute; background: var(--cherry); border-radius: 2px; z-index: 2; }
.file-cards[data-view="grid"] .file-card.drop-before::before { left: -8px; top: 6px; bottom: 6px; width: 3px; }
.file-cards[data-view="grid"] .file-card.drop-after::after { right: -8px; top: 6px; bottom: 6px; width: 3px; }
.file-cards[data-view="list"] .file-card.drop-before::before { top: -5px; left: 8px; right: 8px; height: 3px; }
.file-cards[data-view="list"] .file-card.drop-after::after { bottom: -5px; left: 8px; right: 8px; height: 3px; }
.file-card.has-error { border-color: var(--danger); }
.file-card.is-selected { border-color: var(--cherry); box-shadow: 0 0 0 1px var(--cherry) inset; }

.file-cards[data-view="grid"] .file-card { display: flex; flex-direction: column; padding: 10px; }
.file-cards[data-view="grid"] .fc-check { position: absolute; top: 8px; left: 8px; z-index: 3; }
.file-cards[data-view="grid"] .fc-drag { position: absolute; top: 8px; right: 34px; color: var(--text-muted); cursor: grab; z-index: 3; opacity: 0; transition: opacity .12s; }
.file-cards[data-view="grid"] .file-card:hover .fc-drag { opacity: 1; }
.file-cards[data-view="grid"] .fc-num {
    position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 3;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--text); color: var(--bg); font-size: 0.68rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.file-cards[data-view="grid"] .fc-thumb {
    position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden;
    background: var(--bg-subtle); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; margin: 4px 0 8px;
}
.fc-thumb-img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.fc-thumb-skeleton { position: absolute; inset: 0; background: linear-gradient(100deg, var(--bg-subtle) 30%, var(--border) 50%, var(--bg-subtle) 70%); background-size: 200% 100%; animation: fc-shine 1.3s linear infinite; }
@keyframes fc-shine { to { background-position: -200% 0; } }
.fc-thumb-err { color: var(--danger); }
.fc-badge { position: absolute; bottom: 6px; left: 6px; padding: 2px 5px; border-radius: 4px; background: var(--cherry); color: #fff; font-size: 0.55rem; font-weight: 700; }
.fc-thumb-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .12s; }
.fc-thumb:hover .fc-thumb-hover { opacity: 1; }
.fc-preview { border: none; background: #fff; color: #16192b; font-size: 0.75rem; font-weight: 600; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.file-cards[data-view="grid"] .fc-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-name { font-size: 0.8rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-sub { font-size: 0.72rem; color: var(--text-muted); }
.fc-status { font-size: 0.7rem; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
.fc-status.is-ready { color: var(--success); }
.fc-status.is-error { color: var(--danger); font-weight: 600; white-space: normal; }
.fc-menu-btn { position: absolute; top: 6px; right: 6px; z-index: 3; width: 24px; height: 24px; border: none; background: transparent; color: var(--text-muted); border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fc-menu-btn:hover { background: var(--bg-subtle); color: var(--text); }
.fc-menu {
    position: absolute; top: 30px; right: 6px; z-index: 20;
    min-width: 172px; padding: 5px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); box-shadow: var(--shadow-lg);
}
.fc-menu[hidden] { display: none; }
.fc-menu button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 7px 10px; font: inherit; font-size: 0.82rem; color: var(--text); border-radius: 6px; cursor: pointer; }
.fc-menu button:hover { background: var(--bg-subtle); }
.fc-menu button.danger { color: var(--danger); }
.fc-rename { width: 100%; font: inherit; font-size: 0.8rem; padding: 3px 6px; border: 1px solid var(--cherry); border-radius: 5px; background: var(--bg); color: var(--text); }
.fc-check input { width: 15px; height: 15px; accent-color: var(--cherry); }

.file-cards[data-view="list"] .file-card { display: grid; grid-template-columns: auto auto auto 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; }
.file-cards[data-view="list"] .fc-drag { color: var(--text-muted); cursor: grab; }
.file-cards[data-view="list"] .fc-num { min-width: 20px; height: 20px; border-radius: 999px; background: var(--bg-subtle); color: var(--text-muted); font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.file-cards[data-view="list"] .fc-thumb { width: 44px; aspect-ratio: 3 / 4; border-radius: 5px; overflow: hidden; background: var(--bg-subtle); border: 1px solid var(--border); position: relative; }
.file-cards[data-view="list"] .fc-thumb-hover, .file-cards[data-view="list"] .fc-badge { display: none; }
.file-cards[data-view="list"] .fc-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.file-cards[data-view="list"] .fc-menu-btn { position: static; }
.file-cards[data-view="list"] .fc-menu { top: auto; bottom: 30px; }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 20px; text-align: center; color: var(--text-muted); }
.empty-state[hidden] { display: none; }
.es-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 999px; background: var(--bg-subtle); color: var(--text-muted); margin-bottom: 6px; }
.es-title { font-weight: 700; font-size: 1rem; color: var(--text); margin: 0; }
.es-sub { font-size: 0.85rem; margin: 0; }

.add-more-btn {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
    padding: 9px 16px; border: 1px dashed var(--border); border-radius: 9px;
    background: var(--surface); color: var(--text); font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.add-more-btn[hidden] { display: none; }
.add-more-btn:hover { border-color: var(--cherry); color: var(--cherry); }

.merge-col-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-subtle); padding: 14px; }
.side-card h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 0.92rem; }
.sort-opts { display: flex; flex-direction: column; gap: 6px; }
.sort-opt { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; }
.sort-opt input { width: 15px; height: 15px; accent-color: var(--cherry); flex-shrink: 0; }
.sort-opt:has(input:checked) { border-color: var(--cherry); background: var(--cherry-light); }
.sort-opt-tx { display: flex; flex-direction: column; }
.sort-opt-tx strong { font-size: 0.8rem; }
.sort-opt-tx small { font-size: 0.7rem; color: var(--text-muted); }
.reverse-toggle { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.82rem; cursor: pointer; }
.reverse-toggle input { width: 15px; height: 15px; accent-color: var(--cherry); }

.merge-settings > h3 { font-weight: 700; font-size: 0.9rem; }
.settings-body { display: flex; flex-direction: column; gap: 12px; }
.setting-check { display: flex; align-items: center; gap: 9px; font-size: 0.83rem; cursor: pointer; }
.setting-check input { width: 15px; height: 15px; accent-color: var(--cherry); }
.setting-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--text-muted); }
.setting-field input { font: inherit; font-size: 0.85rem; color: var(--text); padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.setting-field input:focus { border-color: var(--cherry); outline: none; }

.merge-bar {
    position: sticky; bottom: 12px; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin: 4px 12px 12px; padding: 12px 18px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); box-shadow: var(--shadow-lg);
}
.mb-stats { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap; }
.mb-sep { width: 1px; height: 12px; background: var(--border); }
.mb-actions { display: flex; align-items: center; gap: 10px; }
.btn-merge-go { display: inline-flex; align-items: center; gap: 7px; }
.mb-reason { text-align: center; margin: -4px 0 14px; }
.mb-reason[hidden] { display: none; }

.bulk-bar {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 12px;
    background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 0.85rem;
}
.bulk-bar[hidden] { display: none; }
.bulk-sep { width: 1px; height: 14px; background: currentColor; opacity: .3; }
.bulk-bar button { border: none; background: rgba(255,255,255,.14); color: inherit; font: inherit; font-weight: 600; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.bulk-bar button:hover { background: rgba(255,255,255,.26); }

.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 36px)); }
.toast {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    font-size: 0.83rem; animation: toast-in .18s ease;
}
.toast.leaving { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.toast-error { border-color: var(--danger-border); }
.toast-msg { flex: 1; }
.toast-action { border: none; background: none; color: var(--cherry); font: inherit; font-weight: 700; cursor: pointer; padding: 0 4px; }
.toast-x { border: none; background: none; color: var(--text-muted); font-size: 1rem; line-height: 1; cursor: pointer; padding: 0 2px; }

.merge-processing { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(16,16,20,.55); padding: 20px; }
.merge-processing[hidden] { display: none; }
.mp-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 16px; padding: 28px; text-align: center; box-shadow: var(--shadow-lg); }
.mp-spinner { display: inline-block; width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--cherry); border-radius: 50%; animation: mp-spin .8s linear infinite; margin-bottom: 12px; }
@keyframes mp-spin { to { transform: rotate(360deg); } }
.mp-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.mp-card p { margin: 0 0 16px; color: var(--text-muted); font-size: 0.85rem; }
.mp-steps { list-style: none; padding: 0; margin: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.mp-steps li { position: relative; padding-left: 24px; font-size: 0.83rem; color: var(--text-muted); }
.mp-steps li::before { content: "\25CB"; position: absolute; left: 0; }
.mp-steps li.is-active { color: var(--text); font-weight: 600; }
.mp-steps li.is-active::before { content: "\25D0"; color: var(--cherry); }
.mp-steps li.is-done { color: var(--text); }
.mp-steps li.is-done::before { content: "\2713"; color: var(--success); }

.pv-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(16,16,20,.6); padding: 20px; }
.pv-overlay[hidden] { display: none; }
.pv-modal { width: 100%; max-width: 900px; height: calc(100vh - 60px); display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.pv-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 0.9rem; }
.pv-close { width: 28px; height: 28px; border: none; background: var(--bg-subtle); color: var(--text-muted); border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pv-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; }
.pv-toolbar button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 7px; padding: 4px 10px; font: inherit; font-size: 0.8rem; cursor: pointer; }
.pv-toolbar button:disabled { opacity: .4; cursor: default; }
.pv-tb-spacer { flex: 1; }
.pv-canvas-wrap { flex: 1; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 16px; background: var(--bg-subtle); }
#pv-canvas, #mpv-canvas { box-shadow: var(--shadow-md); background: #fff; display: block; }

@media (max-width: 900px) {
    .merge-grid { grid-template-columns: 1fr; }
    .merge-col-side { order: -1; }
}
@media (max-width: 560px) {
    .ws-head { flex-direction: column; }
    .merge-bar { flex-direction: column; align-items: stretch; }
    .mb-actions { justify-content: space-between; }
    .btn-merge-go { flex: 1; justify-content: center; }
    .file-cards[data-view="grid"] { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

.position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
    aspect-ratio: 3 / 2.2;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
}
.position-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
}
.position-cell input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.position-cell span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.15s, transform 0.15s;
}
.position-cell:hover span { background: var(--text-muted); }
.position-cell input:checked ~ span {
    background: var(--cherry);
    transform: scale(1.3);
}

.font-style-toggle { display: flex; gap: 8px; margin-top: 4px; }
.font-style-toggle .option-check { flex: 1; margin-bottom: 0; justify-content: center; }
.font-style-toggle .option-check span { flex: none; }

.trust-bar {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 20px;
}
.trust-bar-item { display: flex; align-items: center; gap: 12px; }
.trust-bar-item-clickable { cursor: pointer; border-radius: var(--radius-sm); padding: 4px; margin: -4px; transition: background-color 0.15s ease; }
.trust-bar-item-clickable:hover { background: var(--bg-subtle); }
.trust-bar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #fff;
    flex-shrink: 0;
}
.trust-bar-item strong { display: block; font-size: 0.9rem; }
.trust-bar-item small { display: block; color: var(--text-muted); font-size: 0.78rem; }

@media (max-width: 900px) {
    .trust-bar { grid-template-columns: repeat(2, 1fr); }
    .merge-illustration { display: none; }
}
@media (max-width: 560px) {
    .trust-bar { grid-template-columns: 1fr; }
}

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.alert-success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }

.how-it-works, .features, .related-tools, .about-tool, .formats-section, .faq-section, .privacy-section, .why-section, .audience-section, .tips-section, .problems-section { margin-top: 48px; }
.how-it-works h2, .features h2, .related-tools h2, .about-tool h2, .formats-section h2, .faq-section h2, .privacy-section h2, .why-section h2, .audience-section h2, .tips-section h2, .problems-section h2 { font-size: 1.2rem; margin-bottom: 20px; }

.about-tool p, .why-section p { color: var(--text-muted); line-height: 1.65; max-width: 72ch; }
.about-tool p + p, .why-section p + p { margin-top: 12px; }
.about-tool p + p { margin-top: 12px; }

.formats-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.format-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.85rem;
    font-weight: 600;
}
.format-chip-arrow { color: var(--text-muted); }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 14px 16px;
    margin-bottom: 10px;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-question {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.92rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: "+";
    flex-shrink: 0;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.1rem;
}
.faq-item[open] .faq-question::after { content: "\2212"; }
.faq-answer { margin: 10px 0 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

.privacy-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-subtle);
}
.privacy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: #dcfce7;
    color: var(--success);
    flex-shrink: 0;
}
.privacy-block p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; max-width: 68ch; }
.privacy-block h3 { margin: 0; font-size: 1rem; }
.privacy-block ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; max-width: 68ch; }
.privacy-block li { margin-bottom: 6px; }
.privacy-block li strong { color: var(--text); }

.why-trust-section, .cta-section { margin-top: 48px; }
.why-trust-section h2, .cta-section h2 { font-size: 1.2rem; margin-bottom: 20px; }
.why-trust-section > p { color: var(--text-muted); line-height: 1.65; max-width: 72ch; margin-bottom: 20px; }
.why-trust-section .privacy-block { margin-bottom: 12px; }

.cta-section {
    text-align: center;
    padding: 36px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-subtle);
}
.cta-section p { color: var(--text-muted); margin: 0 0 20px; }

.comparison-section { margin-top: 48px; }
.comparison-section h2 { font-size: 1.2rem; margin-bottom: 20px; }
.comparison-table-wrap { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.comparison-table th, .comparison-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--border); }
.comparison-table th { background: var(--bg-subtle); font-weight: 700; }
.comparison-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.comparison-table td { color: var(--text-muted); }

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.step-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(145deg, #ff6b81 0%, var(--cherry) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.step-card p { margin: 0; font-size: 0.9rem; color: var(--text); }

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}
.feature-list li { display: flex; align-items: center; gap: 10px; }
.feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--success);
    flex-shrink: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.related-card:hover { border-color: var(--cherry); text-decoration: none; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.related-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #fff;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .step-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .feature-list { grid-template-columns: 1fr; }
    .upload-sources { flex-direction: column; align-items: stretch; }
}

.result-page { text-align: center; }

.result-hero { padding: 24px 0 32px; }
.result-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--success);
    margin-bottom: 20px;
}
.confetti { position: absolute; border-radius: 999px; }
.c1 { width: 8px; height: 8px; background: var(--cherry); top: -6px; left: -30px; }
.c2 { width: 6px; height: 6px; background: #16a34a; top: 10px; right: -34px; }
.c3 { width: 5px; height: 5px; border: 2px solid var(--cherry); background: none; bottom: -4px; left: -18px; }
.c4 { width: 6px; height: 6px; border: 2px solid #16a34a; background: none; top: -14px; right: 4px; }
.c5 { width: 10px; height: 10px; background: #16a34a; bottom: 10px; right: -20px; opacity: 0.7; }
.c6 { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--cherry); top: -2px; left: 34px; opacity: 0.7; }
.result-hero h1 { margin: 0 0 8px; }
.result-hero .lead { margin: 0 auto; }

.result-box { max-width: 620px; margin: 0 auto; }

.result-columns {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.result-columns > .result-box { flex: 1 1 460px; max-width: 560px; margin: 0; }
.result-columns > .compress-panel { margin-top: 0; }
@media (max-width: 900px) {
    .result-columns > .result-box { flex-basis: 100%; }
}

/* Merge result: inline "compress this PDF" panel */
.compress-panel {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.compress-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.compress-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--cherry-light);
    color: var(--cherry);
    flex-shrink: 0;
}
.compress-panel-head h2 { margin: 0 0 4px; font-size: 1.05rem; }
.compress-panel-head p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.compress-feedback { text-align: left; }
.compress-inline-form { display: flex; flex-direction: column; gap: 14px; }
.compress-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.compress-levels .option-radio { margin-bottom: 0; }
.compress-inline-form .btn { align-self: flex-start; }
@media (max-width: 560px) {
    .compress-levels { grid-template-columns: 1fr; }
    .compress-inline-form .btn { align-self: stretch; justify-content: center; }
}

.result-file-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.file-badge-lg {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 8px;
    background: linear-gradient(145deg, #ff6b81 0%, var(--cherry) 100%);
}
.result-file-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.result-filename { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-size { color: var(--text-muted); font-size: 0.85rem; }
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--success);
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.result-download { flex: 1 1 220px; }

.result-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 24px;
}
.result-divider::before, .result-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1.5px solid var(--cherry);
    color: var(--cherry);
}
.btn-outline:hover { background: var(--cherry-light); text-decoration: none; }

.result-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.whats-next {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 20px;
    text-align: left;
}
.whats-next-head { flex-shrink: 0; }
.whats-next-head h2 { margin: 0 0 2px; font-size: 1.05rem; }
.whats-next-head p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.whats-next-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    flex: 1;
}
.related-card { flex-direction: row; }
.related-card span:not(.related-icon) { display: flex; flex-direction: column; gap: 1px; }
.related-card small { color: var(--text-muted); font-weight: 400; font-size: 0.75rem; }
.related-card-all { background: var(--bg-subtle); }

@media (max-width: 1000px) {
    .whats-next-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .whats-next-grid { grid-template-columns: repeat(2, 1fr); }
    .result-actions { flex-direction: column; }
}

.error-page { text-align: center; padding: 80px 0; }

.static-page { padding: 48px 0 80px; }
.static-page-head { max-width: 720px; margin: 0 0 32px; }
.static-page-head h1 { margin: 0 0 8px; }
.static-page-head .updated-at { color: var(--text-muted); font-size: 0.85rem; }
.static-page-body {
    max-width: 720px;
    line-height: 1.7;
    color: var(--text);
}
.static-page-body h2 { margin: 32px 0 12px; font-size: 1.3rem; }
.static-page-body h2:first-child { margin-top: 0; }
.static-page-body p { margin: 0 0 14px; color: var(--text-muted); }
.static-page-body ul { margin: 0 0 14px; padding-left: 22px; color: var(--text-muted); }
.static-page-body li { margin-bottom: 6px; }
.static-page-body a { color: var(--blue-link); }
/* ---- Contact: "other ways to reach us" ---- */
.contact-reach { margin: 8px 0 8px; }
.contact-reach > h2 { font-size: 1.15rem; margin: 0 0 18px; }
.contact-reach-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 20px;
    align-items: start;
}
.contact-email-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.contact-email-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--cherry-light);
    color: var(--cherry);
}
.contact-email-label {
    margin: 2px 0 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.contact-email-link {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--blue-link);
    word-break: break-all;
}
.contact-email-card .hint { margin: 6px 0 0; }

.contact-topics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-topic {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
}
.contact-topic:hover { background: var(--bg-subtle); }
.contact-topic-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #fff;
    background: var(--text-muted);
}
.contact-topic-icon.hue-2 { background: #22c55e; }
.contact-topic-icon.hue-3 { background: #3b82f6; }
.contact-topic-icon.hue-4 { background: #8b5cf6; }
.contact-topic-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.contact-topic-text strong {
    display: block;
    color: var(--text);
    font-size: 0.92rem;
    margin-bottom: 2px;
}
.contact-faq-note {
    margin: 22px 0 0;
    padding: 14px 16px;
    background: var(--cherry-light);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.contact-faq-note a { color: var(--blue-link); font-weight: 600; }
.contact-signature { margin: 20px 0 0; font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 720px) {
    .contact-reach-grid { grid-template-columns: 1fr; }
}

/* ---- Blog: article list ---- */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 760px;
    margin: 0 0 8px;
}
.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.article-card:hover {
    border-color: var(--cherry);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.article-card-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.article-card-title:hover { text-decoration: none; color: var(--cherry); }
.article-card-excerpt { margin: 8px 0 12px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.article-card-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-link);
}

/* ---- Blog: single article ---- */
.article-full { max-width: 720px; margin: 0 auto; }
.article-head { margin-bottom: 28px; }
.article-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); line-height: 1.2; margin: 0 0 12px; }
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.article-body { color: var(--text); line-height: 1.7; font-size: 1rem; }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { font-size: 1.35rem; margin: 34px 0 12px; letter-spacing: -0.01em; }
.article-body h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.article-body p { margin: 0 0 16px; }
.article-body ul,
.article-body ol { margin: 0 0 16px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--blue-link); font-weight: 600; }
.article-body strong { color: var(--text); }
.article-body blockquote {
    margin: 0 0 16px;
    padding: 4px 0 4px 16px;
    border-left: 3px solid var(--cherry);
    color: var(--text-muted);
}
.article-body code {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 0.9em;
}
.article-back { max-width: 720px; margin: 24px auto 0; font-size: 0.9rem; }
.article-back a { color: var(--blue-link); font-weight: 600; }

/* Step-by-step diagram embedded in a guide (static SVG, see /img/guides). */
.guide-figure { margin: 22px 0 24px; }
.guide-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
}
.guide-figure figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* ---- Contact / Feedback forms ---- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 0 0 40px;
}
.contact-form-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.contact-form-block h2 { margin: 0 0 6px; font-size: 1.15rem; }
.contact-form-block .form-intro { margin: 0 0 18px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form .form-field { display: flex; flex-direction: column; gap: 6px; }
.contact-form label,
.contact-form .field-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.contact-form .req { color: var(--cherry); }
.contact-form .opt { text-transform: none; font-weight: 400; letter-spacing: 0; }
.contact-form textarea.ranges-input {
    font-family: inherit;
    line-height: 1.55;
    resize: vertical;
    min-height: 120px;
}
.contact-form .form-note { margin: 4px 0 0; font-size: 0.78rem; color: var(--text-muted); }
.contact-form .form-note a,
.contact-form-block .form-intro a { color: var(--blue-link); }
.contact-form .btn { align-self: flex-start; }

.rating-row { display: flex; gap: 8px; }
.rating-opt { position: relative; }
.rating-opt input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}
.rating-opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--text-muted);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.rating-opt input:hover + span { border-color: var(--cherry); }
.rating-opt input:checked + span {
    border-color: var(--cherry);
    background: var(--cherry-light);
    color: var(--cherry);
}
.rating-opt input:focus-visible + span { outline: 2px solid var(--cherry); outline-offset: 2px; }

/* Spam honeypot — visually and from AT hidden, but still in the DOM for bots. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 860px) {
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .contact-form .form-row { grid-template-columns: 1fr; }
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 64px;
    background: var(--bg-subtle);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}
.footer-brand { max-width: 320px; }
.footer-logo { margin-bottom: 12px; }
.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 16px;
}
.footer-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
}
.footer-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}
.footer-trust svg { color: var(--cherry); flex-shrink: 0; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin: 0 0 4px;
}
.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
}
.footer-col a:hover { color: var(--cherry); text-decoration: underline; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding: 18px 0;
    font-size: 0.8rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; align-items: center; gap: 8px; }
.footer-bottom-links a { color: var(--text-muted); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--cherry); text-decoration: underline; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

.waitlist-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 16, 20, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}
.waitlist-overlay[hidden] { display: none; }
.waitlist-modal {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 32px 28px 28px;
    text-align: center;
}
.waitlist-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-subtle);
    color: var(--text-muted);
    border-radius: 999px;
    cursor: pointer;
}
.waitlist-close:hover { color: var(--text); }
.waitlist-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--cherry-light);
    color: var(--cherry);
    margin-bottom: 14px;
}
.waitlist-icon-success { background: #dcfce7; color: var(--success); }
.waitlist-modal h3 { margin: 0 0 8px; font-size: 1.1rem; }
.waitlist-modal p { margin: 0 0 20px; color: var(--text-muted); font-size: 0.9rem; }
#waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#waitlist-email {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
}
#waitlist-email:focus { border-color: var(--cherry); }
.waitlist-error { color: var(--danger); font-size: 0.82rem; margin: 10px 0 0; }
#waitlist-success-state p { margin-bottom: 0; }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { height: 220px; }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* Mobile navigation drawer */
    .nav-toggle { display: inline-flex; }
    .header-inner { gap: 10px; }
    .logo { font-size: 1.15rem; }
    .header-actions { gap: 6px; }
    .header-actions .icon-btn { height: 34px; padding: 0 8px; }
    .site-header.nav-open .nav-toggle-bars { display: none; }
    .site-header.nav-open .nav-toggle-x { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 8px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    .site-header.nav-open .main-nav { display: flex; }

    .main-nav .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 12px;
        font-size: 1rem;
    }
    .main-nav .nav-link.active::after { display: none; }

    .main-nav .nav-item { padding-bottom: 0; margin-bottom: 0; }
    .main-nav .nav-dropdown {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        padding: 0 0 6px 12px;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: none;
    }
    .main-nav .nav-item.open .nav-dropdown { display: flex; }
    .main-nav .nav-dropdown a { padding: 10px 12px; }
}

/* Google AdSense placement wrapper (see templates/layout/ad.html). min-height reserves
   space before the ad loads so the surrounding content doesn't jump (CLS). */
.ad-slot {
    display: block;
    clear: both;
    margin: 2rem auto;
    max-width: 100%;
    min-height: 100px;
    overflow: hidden;
    text-align: center;
}
@media (min-width: 640px) {
    .ad-slot { min-height: 280px; }
}
.ad-slot .adsbygoogle { display: block; }

/* ================= Merge PDF: page organizer, summary, validation ================= */

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.merge-error { text-align: left; }
.merge-error p { margin: 0 0 6px; }
.merge-error-actions { font-size: 0.82rem; }
.merge-error-actions a { font-weight: 600; }

.fc-status.is-pending { color: var(--text-muted); }
.fc-status.is-error a { color: inherit; font-weight: 700; text-decoration: underline; }

.edit-pages-btn { display: inline-flex; align-items: center; gap: 5px; }
.edit-pages-btn[disabled] { opacity: 0.45; cursor: not-allowed; text-decoration: none; }

/* Settings sub-groups (bookmark style, quality) */
.setting-subgroup { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 2px 24px; }
.setting-subgroup[hidden] { display: none; }
.setting-radio { display: flex; align-items: baseline; gap: 8px; font-size: 0.82rem; cursor: pointer; }
.setting-radio input { width: 14px; height: 14px; accent-color: var(--cherry); flex-shrink: 0; }
.setting-radio small { color: var(--text-muted); font-size: 0.72rem; margin-left: 4px; }
.setting-note { display: block; color: var(--text-muted); font-size: 0.72rem; margin-top: 4px; }
.sort-locked-note { margin-top: 10px; font-size: 0.75rem; }

/* Merge summary */
.merge-summary {
    display: flex; flex-wrap: wrap; gap: 6px 22px;
    margin: 12px 12px 0; padding: 12px 16px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg-subtle); font-size: 0.82rem;
}
.merge-summary[hidden] { display: none; }
.merge-summary > div { display: flex; gap: 6px; }
.merge-summary dt { color: var(--text-muted); margin: 0; }
.merge-summary dd { margin: 0; font-weight: 600; }

/* Organizer panel */
.organizer {
    margin-top: 16px; padding: 16px;
    border: 1px solid var(--border); border-radius: 14px;
    background: var(--bg-subtle);
}
.organizer[hidden] { display: none; }
.org-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.org-head-text h3 { margin: 0 0 3px; font-size: 1rem; }
.org-head-text p { margin: 0; color: var(--text-muted); font-size: 0.82rem; }
.org-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.org-toolbar button {
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font: inherit; font-size: 0.8rem; font-weight: 600;
    padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.org-toolbar button:hover:not([disabled]) { border-color: var(--cherry); }
.org-toolbar button[disabled] { opacity: 0.4; cursor: default; }
.org-sep { width: 1px; height: 18px; background: var(--border); }
.org-hint { margin: 10px 0 0; font-size: 0.76rem; color: var(--text-muted); }
.org-hint kbd {
    font: inherit; font-size: 0.72rem; padding: 1px 5px;
    border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px;
    background: var(--surface);
}
.org-empty { color: var(--text-muted); font-size: 0.85rem; padding: 20px; text-align: center; }

.org-groups { margin-top: 14px; display: flex; flex-direction: column; gap: 16px; }
.org-group { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 10px 12px; }
.org-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.org-group-name {
    font-size: 0.8rem; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.org-tiles { display: flex; flex-wrap: wrap; gap: 10px; }

.org-tile {
    position: relative; width: 104px;
    border: 1px solid var(--border); border-radius: 8px; background: var(--bg-subtle);
    padding: 6px; cursor: pointer;
    content-visibility: auto; contain-intrinsic-size: 160px 104px;
}
.org-tile:focus-visible { outline: 2px solid var(--cherry); outline-offset: 2px; }
.org-tile.is-selected { border-color: var(--cherry); box-shadow: 0 0 0 1px var(--cherry) inset; }
.org-tile.org-dragging { opacity: 0.4; }
.org-tile.org-drop-before::before,
.org-tile.org-drop-after::after {
    content: ""; position: absolute; top: 4px; bottom: 4px; width: 3px;
    background: var(--cherry); border-radius: 2px;
}
.org-tile.org-drop-before::before { left: -7px; }
.org-tile.org-drop-after::after { right: -7px; }

.org-tile-pos {
    position: absolute; top: 3px; left: 3px; z-index: 2;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: var(--text); color: var(--surface);
    font-size: 0.62rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.org-tile-check {
    position: absolute; top: 3px; right: 3px; z-index: 2;
    width: 16px; height: 16px; border-radius: 999px;
    background: var(--cherry); color: #fff;
    display: none; align-items: center; justify-content: center;
}
.org-tile.is-selected .org-tile-check { display: inline-flex; }
.org-thumb {
    display: block; aspect-ratio: 3 / 4; border-radius: 5px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
}
.org-thumb-img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .15s; }
.org-thumb-img.is-loaded { opacity: 1; }
.org-tile-src { display: block; text-align: center; font-size: 0.66rem; color: var(--text-muted); margin-top: 3px; }

.org-tile-acts, .org-tile-move2 {
    display: flex; justify-content: center; gap: 2px; margin-top: 4px;
}
.org-tile-move2 { display: none; }
.org-mini {
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    width: 20px; height: 20px; border-radius: 5px; cursor: pointer;
    font-size: 0.75rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
}
.org-mini:hover { border-color: var(--cherry); color: var(--cherry); }
.org-mini:focus-visible { outline: 2px solid var(--cherry); outline-offset: 1px; }

.org-selbar {
    position: sticky; bottom: 12px; z-index: 12; margin: 12px 0 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 12px;
    background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg);
    font-size: 0.82rem;
}
.org-selbar[hidden] { display: none; }
.org-selbar button {
    border: none; background: rgba(255,255,255,.16); color: inherit;
    font: inherit; font-weight: 600; padding: 6px 11px; border-radius: 7px; cursor: pointer;
}
.org-selbar button:hover { background: rgba(255,255,255,.3); }

/* Result page: secondary actions + preview */
.result-secondary-actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
    margin: 14px 0 4px;
}
.result-secondary-actions .link-btn { display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 640px) {
    .org-tile { width: calc(50% - 5px); contain-intrinsic-size: 200px 50vw; }
    .org-tile-acts { display: none; }
    .org-tile-move2 { display: flex; }
    .org-mini { width: 34px; height: 30px; font-size: 0.95rem; }
    .org-tile-pos, .org-tile-check { width: 20px; height: 20px; }
    .merge-summary { gap: 4px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .org-thumb-img { transition: none; }
}

/* Organizer tiles: make the whole tile a reliable drag grip (buttons still clickable) */
.org-tile { cursor: grab; -webkit-user-select: none; user-select: none; }
.org-tile:active { cursor: grabbing; }
.org-tile.org-dragging { cursor: grabbing; opacity: 0.4; }
.org-tile * { pointer-events: none; -webkit-user-drag: none; }
.org-tile .org-mini { pointer-events: auto; -webkit-user-drag: none; }
.org-thumb-img { -webkit-user-drag: none; user-drag: none; }
.org-tile-grip {
    position: absolute; top: 3px; left: 50%; transform: translateX(-50%); z-index: 2;
    color: var(--text-muted); opacity: 0.4; transition: opacity .12s;
}
.org-tile:hover .org-tile-grip, .org-tile:focus-visible .org-tile-grip { opacity: 0.9; }

.org-head-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.org-head-actions .btn-sm { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) {
    .org-head { flex-direction: column; align-items: stretch; }
    .org-head-actions { justify-content: space-between; }
}

.pv-canvas-wrap { position: relative; }
.pv-error {
    position: absolute; inset: 0; margin: auto; max-width: 320px; height: max-content;
    padding: 16px; text-align: center; font-size: 0.88rem; color: var(--text-muted);
}
.pv-error[hidden] { display: none; }
.pv-error a { font-weight: 600; }

/* Merge: possible-duplicate toast (bulk select + remove) */
.toast-dup { flex-direction: column; align-items: stretch; gap: 8px; width: 340px; max-width: calc(100vw - 36px); }
.dup-toast-head { display: flex; align-items: center; gap: 8px; }
.dup-toast-title { flex: 1; font-weight: 600; color: var(--danger); font-size: 0.82rem; }
.dup-toast-head .toast-x { margin: 0; }
.dup-selall {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.78rem; color: var(--text-muted); cursor: pointer;
}
.dup-selall input, .dup-check input { width: 14px; height: 14px; accent-color: var(--cherry); }
.dup-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 6px;
    max-height: 200px; overflow-y: auto;
}
.dup-row { display: flex; align-items: flex-start; gap: 8px; }
.dup-check { padding-top: 1px; }
.dup-names { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dup-dupname {
    font-weight: 600; font-size: 0.78rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dup-keepname { color: var(--text-muted); font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dup-toast-foot { display: flex; align-items: center; gap: 12px; padding-top: 2px; }
.dup-toast-foot .dup-keep { color: var(--text-muted); }

/* Preview modal: maximize / restore toggle */
.pv-head-actions { display: inline-flex; align-items: center; gap: 6px; }
.pv-icon-btn {
    width: 28px; height: 28px; border: none; border-radius: 999px;
    background: var(--bg-subtle); color: var(--text-muted);
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.pv-icon-btn:hover { color: var(--text); }
.pv-icon-btn[aria-pressed="true"] { background: var(--cherry-light); color: var(--cherry); }
.pv-icon-btn .pv-ico-min { display: none; }
.pv-overlay.pv-max .pv-ico-max { display: none; }
.pv-overlay.pv-max .pv-ico-min { display: inline; }

.pv-overlay.pv-max { padding: 0; }
.pv-overlay.pv-max .pv-modal { max-width: none; width: 100vw; height: 100vh; border-radius: 0; }
