:root {
    --bg: #f5f7f8;
    --panel: #ffffff;
    --ink: #182026;
    --muted: #65727d;
    --line: #dce3e7;
    --ok: #16805d;
    --ok-soft: #e8f6ef;
    --warning: #a66a00;
    --warning-soft: #fff3d8;
    --error: #ba2d2d;
    --error-soft: #fde8e8;
    --accent: #225c7c;
    --accent-soft: #e6f2f7;
    --shadow: 0 18px 50px rgba(24, 32, 38, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 56px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 0;
}

.topbar.compact {
    align-items: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 12px;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 0;
    font-size: 1rem;
}

.lede {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.status-pill,
.secondary-button,
.primary-button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--ink);
    font-weight: 800;
    white-space: nowrap;
}

.status-pill {
    padding: 10px 14px;
}

.secondary-button,
.primary-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
}

.primary-button {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.upload-panel,
.panel,
.notice,
.feature-grid article,
.summary-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.upload-panel {
    padding: 22px;
}

.upload-form {
    display: grid;
    gap: 16px;
}

.dropzone {
    display: grid;
    min-height: 270px;
    place-items: center;
    gap: 8px;
    border: 2px dashed #afbec7;
    border-radius: 8px;
    padding: 28px;
    background: #fbfcfd;
    text-align: center;
    cursor: pointer;
}

.dropzone input {
    width: min(100%, 420px);
}

.drop-icon {
    display: inline-grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 900;
}

code {
    font-size: .9em;
}

.feature-grid,
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.feature-grid article {
    padding: 18px;
}

.feature-grid p {
    margin: 8px 0 0;
    color: var(--muted);
}

.icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    margin-bottom: 14px;
    font-weight: 900;
}

.icon.ok,
.summary-card.ok,
.check-row.ok,
.tag-ok {
    background: var(--ok-soft);
    color: var(--ok);
}

.icon.warning,
.summary-card.warning,
.check-row.warning,
.tag-warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.icon.neutral {
    background: var(--accent-soft);
    color: var(--accent);
}

.notice {
    margin-bottom: 18px;
    padding: 16px 18px;
}

.notice strong {
    display: block;
    margin-bottom: 4px;
}

.notice.warning {
    background: var(--warning-soft);
    color: #5f3b00;
}

.notice.error,
.summary-card.error,
.check-row.error {
    background: var(--error-soft);
    color: var(--error);
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.summary-card {
    padding: 18px;
}

.summary-card span {
    display: block;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    margin-top: 18px;
}

.main-column,
.side-column {
    display: grid;
    align-content: start;
    gap: 18px;
}

.panel {
    padding: 18px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.checklist,
.page-report,
.dependency-list {
    display: grid;
    gap: 10px;
}

.check-row,
.page-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    border-radius: 8px;
    padding: 13px;
}

.check-row p {
    margin: 2px 0 0;
    color: currentColor;
}

.check-icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
    font-weight: 900;
}

.page-row {
    grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr);
    border: 1px solid var(--line);
    background: #fbfcfd;
}

.page-row span {
    display: block;
    color: var(--muted);
}

.box-tags,
.dependency-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-ok,
.tag-warning {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .83rem;
    font-weight: 800;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

figure {
    margin: 0;
}

figure img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef3f5;
}

figcaption,
.empty {
    margin-top: 6px;
    color: var(--muted);
    font-size: .88rem;
}

@media (max-width: 860px) {
    .topbar,
    .topbar.compact {
        display: grid;
    }

    .feature-grid,
    .summary-grid,
    .layout {
        grid-template-columns: 1fr;
    }

    .side-column {
        order: -1;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(100% - 20px, 1180px);
        padding-top: 18px;
    }

    .upload-panel,
    .panel,
    .notice {
        padding: 14px;
    }

    .page-row {
        grid-template-columns: 1fr;
    }

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