:root {
    --primary: #10837f;
    --primary-dark: #0b625f;
    --text: #17202a;
    --muted: #68737d;
    --border: #e3e7ea;
    --surface: #ffffff;
    --soft: #f5f8f8;
    --dark: #0f2022;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 22px;
}

.brand-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.brand-text small {
    display: block;
    font-size: 8px;
    letter-spacing: 1.2px;
    color: var(--muted);
    margin-top: -2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.main-nav a {
    color: #46515a;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--primary);
}

.header-search {
    width: 190px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    background: white;
}

.header-search span {
    color: var(--muted);
}

.header-search input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 13px;
}

.hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(16,131,127,.12), transparent 28%),
        linear-gradient(180deg, #f8fbfb 0%, #ffffff 100%);
    padding: 80px 0 72px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .98;
    letter-spacing: -3px;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero p {
    max-width: 650px;
    margin: 24px 0 28px;
    color: var(--muted);
    font-size: 18px;
}

.hero-search {
    max-width: 650px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    box-shadow: 0 15px 40px rgba(22,39,40,.08);
}

.hero-search span {
    padding-left: 10px;
    color: var(--muted);
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 16px;
    min-width: 0;
}

.hero-search button {
    border: 0;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 11px;
    font-weight: 700;
    cursor: pointer;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.quick-links a {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    color: #56616a;
    background: white;
}

.hero-panel {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: white;
    box-shadow: 0 20px 50px rgba(25,45,46,.08);
}

.hero-panel-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-tool {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.hero-tool:last-child {
    border-bottom: 0;
}

.hero-tool-icon,
.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #e9f5f4;
    color: var(--primary);
    font-weight: 800;
    font-size: 11px;
}

.hero-tool strong {
    display: block;
    font-size: 14px;
}

.hero-tool small {
    color: var(--muted);
    font-size: 12px;
}

.section {
    padding: 76px 0;
}

.section-muted {
    background: var(--soft);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -1.2px;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tool-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    background: white;
    transition: transform .18s ease, box-shadow .18s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(20,40,40,.08);
}

.tool-card h3 {
    margin: 18px 0 7px;
    font-size: 18px;
}

.tool-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 18px;
}

.tool-card > span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.calculator-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    background: white;
}

.calculator-card strong {
    display: block;
    font-size: 16px;
}

.calculator-card span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.content-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--dark);
    color: white;
}

.content-label {
    font-size: 10px;
    letter-spacing: 1.2px;
    font-weight: 800;
    opacity: .7;
}

.content-card h3 {
    font-size: 28px;
    line-height: 1.15;
    margin: 14px 0;
}

.content-card p {
    opacity: .75;
    margin: 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.article-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
}

.article-placeholder {
    height: 190px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dcefed, #eef7f6);
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
}

.article-body {
    padding: 20px;
}

.article-body > span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.article-body h3 {
    font-size: 19px;
    margin: 8px 0;
    line-height: 1.25;
}

.article-body p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 38px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0d6f6b, #10837f);
    color: white;
}

.newsletter .eyebrow {
    color: #bce9e6;
}

.newsletter h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.1;
}

.newsletter p {
    margin: 10px 0 0;
    opacity: .78;
}

.newsletter-button {
    flex-shrink: 0;
    padding: 12px 18px;
    border-radius: 11px;
    background: white;
    color: var(--primary-dark);
    font-weight: 800;
}

.site-footer {
    background: #102123;
    color: white;
    padding: 55px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand {
    font-size: 25px;
    font-weight: 800;
}

.footer-grid p {
    max-width: 370px;
    color: rgba(255,255,255,.65);
}

.footer-grid h4 {
    margin-top: 0;
}

.footer-grid a {
    display: block;
    color: rgba(255,255,255,.68);
    margin: 7px 0;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 35px;
    padding-top: 20px;
    color: rgba(255,255,255,.5);
    font-size: 12px;
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .card-grid,
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .header-search {
        margin-left: auto;
    }

    .newsletter {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 66px;
    }

    .header-search {
        display: none;
    }

    .hero {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 44px;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-search {
        flex-wrap: wrap;
    }

    .hero-search input {
        width: 100%;
        flex-basis: calc(100% - 40px);
    }

    .hero-search button {
        width: 100%;
    }

    .section {
        padding: 55px 0;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 14px;
    }

    .card-grid,
    .calculator-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .newsletter h2 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.tool-page {
    padding: 55px 0 80px;
}

.tool-breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 30px;
}

.tool-breadcrumb a:hover {
    color: var(--primary);
}

.tool-header {
    max-width: 760px;
    margin-bottom: 30px;
}

.tool-header h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.tool-header p {
    color: var(--muted);
    font-size: 17px;
    margin-top: 15px;
}

.converter-card {
    max-width: 820px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: white;
    box-shadow: 0 20px 50px rgba(20,40,40,.07);
}

.upload-zone {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 2px dashed #cddbd9;
    border-radius: 18px;
    cursor: pointer;
    text-align: center;
    background: #fbfdfd;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: #f5faf9;
}

.upload-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #e6f4f2;
    color: var(--primary);
    font-weight: 800;
}

.upload-zone strong {
    font-size: 20px;
}

.upload-zone span {
    color: var(--muted);
    font-size: 13px;
}

.upload-zone .upload-button {
    margin-top: 7px;
    padding: 11px 18px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.selected-file {
    min-height: 24px;
    margin: 13px 3px 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.convert-button,
.download-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 11px;
    padding: 13px 20px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.convert-button {
    width: 100%;
    margin-top: 15px;
}

.convert-button:hover,
.download-button:hover {
    background: var(--primary-dark);
}

.tool-alert {
    max-width: 820px;
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 12px;
    background: #fff1f1;
    color: #9d3030;
    border: 1px solid #f0cccc;
}

.result-card {
    max-width: 820px;
    margin-top: 30px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: center;
    border-radius: 18px;
    background: #eef8f7;
}

.result-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}

.result-card h2 {
    margin: 0;
    font-size: 18px;
    word-break: break-word;
}

.result-card p {
    margin: 5px 0 0;
    color: var(--muted);
}

.result-grid {
    max-width: 820px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.result-stat {
    padding: 19px;
    border-radius: 15px;
    border: 1px solid var(--border);
    background: white;
}

.result-stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.result-stat strong {
    display: block;
    font-size: 22px;
    margin-top: 3px;
}

.preview-card {
    max-width: 820px;
    margin-top: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    text-align: center;
}

.preview-card img {
    display: block;
    max-width: 100%;
    max-height: 480px;
    margin: 0 auto 18px;
    border-radius: 12px;
}

.tool-information {
    max-width: 820px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    margin-top: 55px;
}

.tool-information h2 {
    margin-top: 0;
}

.tool-information p,
.tool-information li {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 700px) {
    .tool-page {
        padding-top: 35px;
    }

    .converter-card {
        padding: 16px;
    }

    .upload-zone {
        min-height: 260px;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .tool-information {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   BOSScade Image Tool V2
   ========================================================= */

.image-tool-v2 {
    padding: 42px 0 80px;
    background:
        radial-gradient(
            circle at 90% 8%,
            rgba(16,131,127,.08),
            transparent 30%
        ),
        #fbfdfd;
}

.image-tool-heading {
    max-width: 820px;
    margin-bottom: 30px;
}

.image-tool-heading h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -2.5px;
}

.image-tool-heading p {
    color: var(--muted);
    font-size: 17px;
    margin: 14px 0 0;
}

.tool-alert-v2 {
    max-width: 920px;
    margin-bottom: 18px;
    padding: 14px 17px;
    border: 1px solid #efcaca;
    border-radius: 12px;
    background: #fff4f4;
    color: #9c3131;
}

.image-tool-form {
    max-width: 920px;
}

.upload-panel-v2 {
    min-height: 360px;
    padding: 36px;
    border: 2px dashed #c8dddb;
    border-radius: 22px;
    background:
        linear-gradient(
            180deg,
            #f8fcfc 0%,
            #ffffff 100%
        );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: .2s ease;
}

.upload-panel-v2.dragging {
    border-color: var(--primary);
    background: #eef9f7;
    transform: scale(1.005);
}

.upload-icon-v2 {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #e2f3f1;
    color: var(--primary);
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 18px;
}

.upload-panel-v2 h2 {
    margin: 0;
    font-size: 23px;
}

.upload-panel-v2 p {
    margin: 6px 0 17px;
    color: var(--muted);
}

.choose-files-v2 {
    display: inline-flex;
    padding: 12px 22px;
    border-radius: 11px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.choose-files-v2:hover {
    background: var(--primary-dark);
}

.upload-info-v2 {
    margin-top: 16px;
    color: #7a878c;
    font-size: 12px;
}

.upload-info-v2 span {
    margin: 0 7px;
    opacity: .5;
}

.selected-file-v2 {
    min-height: 22px;
    margin-top: 13px;
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
}

.local-preview-v2 {
    max-width: 230px;
    max-height: 150px;
    margin-top: 18px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 12px 30px rgba(10,30,30,.09);
}

.advanced-panel-v2 {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(20,40,40,.04);
}

.advanced-header-v2 {
    width: 100%;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 0;
    background: white;
    text-align: left;
    cursor: pointer;
}

.advanced-header-v2 strong {
    display: block;
    font-size: 15px;
}

.advanced-header-v2 small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.advanced-header-v2 > span:last-child {
    color: var(--primary);
    font-weight: 800;
}

.advanced-content-v2 {
    border-top: 1px solid var(--border);
    padding: 4px 22px 12px;
}

.setting-row-v2 {
    min-height: 82px;
    display: grid;
    grid-template-columns: 1fr 340px;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid #edf0f0;
}

.setting-row-v2:last-child {
    border-bottom: 0;
}

.setting-label-v2 strong {
    display: block;
    font-size: 14px;
}

.setting-label-v2 span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.setting-control-v2 {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d8e0df;
    border-radius: 10px;
    background: white;
    color: var(--text);
    outline: 0;
}

.setting-control-v2:focus {
    border-color: var(--primary);
}

.quality-control-v2 {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quality-control-v2 input {
    width: 100%;
    accent-color: var(--primary);
}

.quality-control-v2 output {
    min-width: 46px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #e7f4f2;
    color: var(--primary-dark);
    text-align: center;
    font-weight: 800;
}

.checkbox-row-v2 {
    display: block;
    padding: 17px 0;
}

.check-option-v2 {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.check-option-v2 input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.check-option-v2 strong {
    display: block;
    font-size: 14px;
}

.check-option-v2 small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.convert-main-v2 {
    width: 100%;
    margin-top: 18px;
    min-height: 56px;
    border: 0;
    border-radius: 13px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.convert-main-v2:disabled {
    background: #b9cdcb;
    cursor: not-allowed;
}

.convert-main-v2:not(:disabled):hover {
    background: var(--primary-dark);
}

.conversion-success {
    max-width: 920px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid #cae8e4;
    border-radius: 18px;
    background: #eff9f7;
}

.success-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 900;
    font-size: 21px;
}

.conversion-success h2 {
    margin: 0;
    font-size: 18px;
    word-break: break-word;
}

.conversion-success p {
    margin: 3px 0 0;
    color: var(--muted);
}

.result-stats-v2 {
    max-width: 920px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.result-stats-v2 > div {
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: white;
}

.result-stats-v2 span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.result-stats-v2 strong {
    display: block;
    margin-top: 5px;
    font-size: 22px;
}

.result-preview-v2 {
    max-width: 920px;
    margin-top: 16px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    text-align: center;
}

.result-preview-v2 img {
    display: block;
    max-width: 100%;
    max-height: 520px;
    margin: 0 auto 20px;
    border-radius: 13px;
}

.download-button-v2 {
    display: inline-flex;
    padding: 12px 21px;
    border-radius: 11px;
    background: var(--primary);
    color: white;
    font-weight: 800;
}

.download-button-v2:hover {
    background: var(--primary-dark);
}

.convert-another-v2 {
    display: inline-flex;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
}

.tool-info-v2 {
    max-width: 920px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 32px;
    margin-top: 58px;
}

.tool-info-v2 h2 {
    margin-top: 0;
}

.tool-info-v2 p,
.tool-info-v2 li {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 800px) {
    .setting-row-v2 {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 0;
    }

    .result-stats-v2 {
        grid-template-columns: 1fr;
    }

    .tool-info-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .image-tool-v2 {
        padding: 30px 0 60px;
    }

    .image-tool-heading h1 {
        font-size: 40px;
    }

    .upload-panel-v2 {
        min-height: 320px;
        padding: 24px 15px;
    }

    .advanced-content-v2 {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =========================================================
   BOSScade Multi-file Converter
   ========================================================= */

.selected-files-v2 {
    width: min(680px, 100%);
    margin-top: 20px;
    display: grid;
    gap: 8px;
}

.selected-file-item-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    text-align: left;
    font-size: 12px;
}

.selected-file-item-v2 span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.selected-file-item-v2 strong {
    flex-shrink: 0;
    color: var(--primary);
}

.selected-files-count-v2 {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.batch-summary-v2 {
    max-width: 920px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.batch-summary-v2 > div {
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: white;
}

.batch-summary-v2 span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.batch-summary-v2 strong {
    display: block;
    margin-top: 4px;
    font-size: 21px;
}

.failed-files-v2 {
    max-width: 920px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #efd0d0;
    border-radius: 14px;
    background: #fff6f6;
    color: #8e3131;
    font-size: 13px;
}

.failed-files-v2 div {
    margin-top: 6px;
}

.results-list-v2 {
    max-width: 920px;
    display: grid;
    gap: 12px;
}

.result-item-v2 {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    align-items: center;
    gap: 17px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    box-shadow: 0 7px 24px rgba(20,40,40,.04);
}

.result-thumb-v2 {
    width: 92px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f5;
}

.result-thumb-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-main-v2 {
    min-width: 0;
}

.result-file-name {
    font-size: 14px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-dimensions-v2 {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.result-meta-v2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.result-meta-v2 strong {
    color: var(--text);
}

.result-badge-v2 {
    padding: 4px 7px;
    border-radius: 999px;
    background: #e7f5f2;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
}

.results-list-v2 .download-button-v2 {
    white-space: nowrap;
}

@media (max-width: 800px) {
    .batch-summary-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-item-v2 {
        grid-template-columns: 72px 1fr;
    }

    .result-thumb-v2 {
        width: 72px;
        height: 60px;
    }

    .results-list-v2 .download-button-v2 {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .batch-summary-v2 {
        grid-template-columns: 1fr;
    }

    .selected-file-item-v2 {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* =========================================================
   BOSScade Real Processing Progress
   ========================================================= */

.processing-panel-v2 {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #c9e4e1;
    border-radius: 16px;
    background: #f1faf8;
}

.processing-top-v2 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.processing-top-v2 strong {
    display: block;
    font-size: 14px;
}

.processing-top-v2 span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    word-break: break-word;
}

.progress-track-v2 {
    width: 100%;
    height: 12px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcebea;
}

.progress-bar-v2 {
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width .25s ease;
}

.processing-percent-v2 {
    margin-top: 8px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.client-results-v2 {
    margin-top: 18px;
}

.client-summary-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.client-summary-v2 > div {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: white;
}

.client-summary-v2 span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.client-summary-v2 strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
}

.client-result-list-v2 {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.client-result-item-v2 {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
}

.client-result-thumb-v2 {
    width: 90px;
    height: 70px;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f5f5;
}

.client-result-thumb-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-result-main-v2 {
    min-width: 0;
}

.client-result-name-v2 {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.client-result-dimensions-v2,
.client-result-size-v2 {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.client-result-size-v2 {
    color: var(--text);
    font-weight: 600;
}

.client-failed-v2 {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #efcfcf;
    border-radius: 13px;
    background: #fff6f6;
    color: #8d3333;
    font-size: 12px;
}

.client-failed-v2 div {
    margin-top: 5px;
}

@media (max-width: 800px) {
    .client-summary-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-result-item-v2 {
        grid-template-columns: 72px 1fr;
    }

    .client-result-thumb-v2 {
        width: 72px;
        height: 60px;
    }

    .client-result-item-v2 .download-button-v2 {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .client-summary-v2 {
        grid-template-columns: 1fr;
    }

    .processing-top-v2 {
        align-items: flex-start;
    }
}

/* =========================================================
   BOSScade Download All
   ========================================================= */

.batch-download-actions-v2 {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.download-all-button-v2 {
    border: 0;
    border-radius: 12px;
    padding: 13px 24px;
    background: var(--primary);
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.download-all-button-v2:hover {
    background: var(--primary-dark);
}

@media (max-width: 520px) {
    .download-all-button-v2 {
        width: 100%;
    }
}
