@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Newsreader:opsz,wght@6..72,500;6..72,700&display=swap');

:root {
    --bg-top: #f7f1e7;
    --bg-bottom: #ece3d3;
    --surface: rgba(255, 251, 245, 0.84);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --surface-muted: rgba(241, 234, 221, 0.76);
    --line: rgba(24, 33, 48, 0.12);
    --line-strong: rgba(24, 33, 48, 0.2);
    --ink: #172131;
    --muted: #5d6778;
    --accent: #14546d;
    --accent-strong: #0f4053;
    --accent-soft: rgba(20, 84, 109, 0.11);
    --accent-emerald: #0f7b67;
    --accent-gold: #aa7d3d;
    --danger: #b54545;
    --success: #1d7a52;
    --shadow-soft: 0 22px 60px rgba(33, 43, 59, 0.08);
    --shadow-card: 0 28px 80px rgba(20, 32, 50, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 14%, rgba(170, 125, 61, 0.16), transparent 0 24%),
        radial-gradient(circle at 86% 12%, rgba(20, 84, 109, 0.18), transparent 0 22%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.22;
}

a {
    color: inherit;
}

.app-shell,
.home-shell {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin: 0 auto;
    padding: 28px 20px 72px;
}

.page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.back-button,
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 11px 18px;
    border: 1px solid var(--line);
    background: rgba(255, 252, 248, 0.94);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 700;
}

.brand-mark {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 252, 248, 0.94);
    box-shadow: var(--shadow-soft);
}

.language-switcher__button,
.language-switcher__button:hover {
    width: auto;
    min-width: 42px;
    padding: 8px 10px;
    border: none;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    transform: none;
}

.language-switcher__button.is-active {
    background: var(--accent);
    color: #fff;
}

.page-hero,
.home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: clamp(28px, 5vw, 52px);
    background:
        radial-gradient(circle at top right, rgba(170, 125, 61, 0.28), transparent 0 22%),
        linear-gradient(135deg, rgba(18, 28, 42, 0.98), rgba(18, 66, 84, 0.94));
    color: #f7f2eb;
    box-shadow: var(--shadow-card);
}

.page-hero::after,
.home-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -34% auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.eyebrow,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 800;
}

.page-title,
.home-title,
h1,
h2,
h3 {
    font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
    letter-spacing: -0.03em;
}

.page-title,
.home-title {
    margin: 16px 0 14px;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 0.95;
}

.page-copy,
.hero-copy {
    max-width: 720px;
    margin: 0;
    color: rgba(247, 242, 235, 0.84);
    font-size: 1.04rem;
    line-height: 1.7;
}

.hero-pills,
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-pills span,
.hero-metrics span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.92rem;
    color: rgba(247, 242, 235, 0.92);
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    margin-top: 24px;
}

.input-column,
.status-column {
    min-width: 0;
}

.input-column {
    display: grid;
    gap: 18px;
}

.status-column {
    display: grid;
    gap: 18px;
    align-content: start;
}

.panel,
.upload-section,
.claim-acknowledgment,
.manual-representative-section,
.email-section,
.file-section,
.intro,
.process-section,
.status-area,
.result-area {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

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

.panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-title {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.05;
}

.panel-copy {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
    max-width: 60ch;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.file-upload,
.file-input {
    border: 1.5px dashed rgba(20, 84, 109, 0.28);
    border-radius: 22px;
    padding: 18px;
    background: var(--surface-strong);
}

input[type="file"],
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input[type="file"] {
    background: linear-gradient(180deg, #fffdf9, #f7f2ea);
}

input[type="file"]::file-selector-button {
    border: none;
    border-radius: 999px;
    margin-right: 12px;
    padding: 10px 14px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(20, 84, 109, 0.55);
    box-shadow: 0 0 0 4px rgba(20, 84, 109, 0.12);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.hint,
.email-info,
.manual-representative-info {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.post-email-delete-option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
}

.post-email-delete-option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.post-email-delete-option small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.45;
}

.radio-group {
    display: grid;
    gap: 12px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.radio-group label:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(23, 33, 49, 0.08);
}

.radio-group label:has(input:checked) {
    border-color: rgba(20, 84, 109, 0.4);
    background: linear-gradient(180deg, rgba(20, 84, 109, 0.08), rgba(255, 255, 255, 0.96));
}

.radio-group input[type="radio"] {
    margin: 0;
    accent-color: var(--accent);
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.toggle-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.manual-representative-content {
    margin-top: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.92rem;
    color: var(--muted);
    font-weight: 700;
}

button,
.app-link,
.download-button,
.status-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 16px 34px rgba(20, 84, 109, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

button:hover,
.app-link:hover,
.download-button:hover,
.status-link-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(20, 84, 109, 0.22);
}

button:disabled {
    background: linear-gradient(135deg, rgba(101, 111, 126, 0.72), rgba(123, 132, 145, 0.72));
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.secondary-button,
.status-link-button {
    background: rgba(255, 255, 255, 0.84);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.tutorial-video-button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.tutorial-video-button::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid currentColor;
}

.tutorial-video-button--hero {
    margin-top: 20px;
}

.tutorial-video-player {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    width: min(420px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(227, 216, 200, 0.9);
    border-radius: 18px;
    background: rgba(255, 252, 248, 0.98);
    box-shadow: 0 26px 70px rgba(42, 52, 62, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tutorial-video-player.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.tutorial-video-player__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 12px 12px 16px;
}

.tutorial-video-player__heading {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.tutorial-video-player__kicker {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.tutorial-video-player__title {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.96rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tutorial-video-player__controls {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.tutorial-video-player__control {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: none;
    color: var(--ink);
    font-size: 1.1rem;
    line-height: 1;
}

.tutorial-video-player__frame {
    aspect-ratio: 16 / 9;
    max-height: 236px;
    overflow: hidden;
    background: #111827;
    transition: max-height 0.2s ease;
}

.tutorial-video-player.is-collapsed .tutorial-video-player__frame {
    max-height: 0;
}

.tutorial-video-player__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.status-area,
.process-section {
    position: relative;
}

.status-area h3,
.result-area h3 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

#status,
.status {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(20, 84, 109, 0.12);
    color: var(--ink);
    font-weight: 600;
}

.progress-bar,
.progress-container {
    width: 100%;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(20, 33, 48, 0.09);
    margin-top: 16px;
}

.progress {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-emerald));
    transition: width 0.35s ease;
}

.job-info {
    display: grid;
    gap: 12px;
}

.job-status {
    background: linear-gradient(180deg, rgba(12, 80, 63, 0.1), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(29, 122, 82, 0.2);
    border-radius: 24px;
    padding: 22px;
}

.job-status h3 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    color: var(--ink);
}

.job-status p {
    margin: 0 0 10px;
    color: var(--muted);
}

.job-id {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(21, 33, 50, 0.08);
    color: var(--ink);
    font-family: "SFMono-Regular", "Consolas", monospace;
    font-size: 0.86rem;
}

.job-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.job-status-details {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(20, 84, 109, 0.12);
}

.job-preview-panel {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.job-preview-heading {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 800;
}

.job-preview-note {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.job-preview-frame {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.48;
    border: 1px solid rgba(20, 84, 109, 0.16);
    border-radius: 12px;
    background: #fff;
    pointer-events: none;
    user-select: none;
}

.status-detail-grid {
    display: grid;
    gap: 10px;
}

.status-detail-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(24, 33, 48, 0.08);
}

.status-detail-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.status-detail-label {
    color: var(--muted);
    font-weight: 700;
}

.status-detail-value {
    color: var(--ink);
    font-weight: 700;
    text-align: right;
}

.status-detail-value--success {
    color: var(--success);
}

.result-area {
    display: grid;
    gap: 14px;
}

.result-area p {
    margin: 0;
    color: var(--muted);
}

#resultLinks,
#downloadLinkContainer {
    display: grid;
    gap: 12px;
}

.download-button {
    width: 100%;
}

.preview,
.pdf-preview {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 238, 229, 0.84));
    border: 1px solid var(--line);
    border-radius: 20px;
}

.preview-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.preview-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.preview-file-meta {
    color: var(--muted);
    white-space: nowrap;
}

.preview canvas,
.pdf-preview canvas {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 220px;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(24, 33, 48, 0.1);
}

.preview-more {
    margin-top: 12px;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

.tracked-job-mode .page-grid {
    grid-template-columns: minmax(0, 1fr);
}

.tracked-job-mode .input-column {
    display: none;
}

.process-section > button {
    width: 100%;
    margin-top: 18px;
}

.home-main {
    margin-top: clamp(40px, 6vw, 58px);
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: clamp(26px, 4vw, 36px);
}

.section-heading h2 {
    margin: 0;
    font-size: 2.1rem;
    line-height: 0.94;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.48;
    max-width: 62ch;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.app-card {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 251, 245, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.app-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.app-card-top > div {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.card-kicker {
    font-size: 0.78rem;
    line-height: 1.08;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent);
}

.card-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(20, 84, 109, 0.16);
}

.app-header {
    margin: 0;
    font-size: 1.8rem;
    line-height: 0.9;
    text-wrap: balance;
}

.app-description {
    margin: 0;
    align-self: start;
    color: var(--muted);
    line-height: 1.7;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 12px;
    background: var(--surface-muted);
    color: var(--accent-strong);
    font-size: 0.84rem;
    font-weight: 700;
}

.app-card .app-link {
    margin-top: auto;
}

.app-card-actions {
    display: flex;
    align-self: end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.app-card-actions .app-link,
.app-card-actions .tutorial-video-button {
    flex: 1 1 150px;
    min-height: 50px;
    padding: 13px 16px;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "brand contact"
        "nav contact";
    align-items: start;
    gap: 8px 28px;
    margin-top: 30px;
    padding: 22px 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: rgba(255, 252, 248, 0.9);
    box-shadow: var(--shadow-soft);
}

.site-footer__primary {
    display: contents;
}

.site-footer__brand {
    grid-area: brand;
}

.site-footer__contact {
    grid-area: contact;
}

.site-footer__brand,
.site-footer__contact {
    display: grid;
    gap: 6px;
}

.site-footer__contact {
    justify-items: end;
    text-align: right;
}

.site-footer__brand strong,
.site-footer__contact a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.site-footer__brand span,
.site-footer__contact span {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.94rem;
}

.site-footer__contact a:hover,
.site-footer__nav a:hover {
    text-decoration: underline;
}

.site-footer__nav {
    grid-area: nav;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.site-footer__nav a {
    color: var(--accent-strong);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.legal-shell {
    max-width: 1040px;
}

.legal-hero .page-copy {
    max-width: 760px;
}

.legal-layout {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.legal-layout--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-panel {
    min-width: 0;
}

.legal-updated {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.legal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.legal-meta--stacked {
    grid-template-columns: minmax(0, 1fr);
}

.legal-meta-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
}

.legal-meta-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.legal-copy {
    margin-top: 6px;
    color: var(--muted);
}

.legal-copy h3 {
    margin: 24px 0 10px;
    color: var(--ink);
    font-size: 1.16rem;
    line-height: 1.1;
}

.legal-copy p,
.legal-copy li {
    line-height: 1.72;
    font-size: 1rem;
}

.legal-copy p:first-child,
.legal-copy h3:first-child {
    margin-top: 0;
}

.legal-copy ul {
    margin: 0;
    padding-left: 22px;
}

.legal-copy a {
    color: var(--accent-strong);
    font-weight: 700;
}

.admin-shell {
    max-width: 1380px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.admin-panel {
    min-width: 0;
}

.admin-panel-wide {
    margin-top: 24px;
}

.ops-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.ops-stat-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.ops-stat-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ops-stat-value {
    font-size: clamp(1.55rem, 2vw, 2.1rem);
    font-weight: 800;
    line-height: 1;
}

.ops-stat-note {
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.92rem;
}

.ops-table-wrap {
    margin-top: 20px;
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
}

.ops-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

.ops-table th,
.ops-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.ops-table th {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
    background: rgba(20, 84, 109, 0.05);
}

.ops-table tr:last-child td {
    border-bottom: 0;
}

.ops-feed {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.ops-feed-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.ops-feed-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ops-feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.ops-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ops-badge--success {
    background: rgba(29, 122, 82, 0.12);
    color: var(--success);
}

.ops-badge--warning {
    background: rgba(170, 125, 61, 0.14);
    color: var(--accent-gold);
}

.ops-badge--danger {
    background: rgba(181, 69, 69, 0.12);
    color: var(--danger);
}

.ops-badge--muted {
    background: rgba(93, 103, 120, 0.12);
    color: var(--muted);
}

.ops-link {
    color: var(--accent-strong);
    font-weight: 800;
    text-decoration: none;
}

.ops-link:hover {
    text-decoration: underline;
}

.ops-empty,
.ops-empty-inline {
    color: var(--muted);
}

@media (min-width: 980px) {
    .status-column {
        position: sticky;
        top: 24px;
        align-self: start;
    }
}

@media (max-width: 979px) {
    .page-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal-layout--split {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .status-column {
        position: static;
    }
}

@media (max-width: 720px) {
    .app-shell,
    .home-shell {
        padding: 18px 14px 48px;
    }

    .page-hero,
    .home-hero,
    .upload-section,
    .claim-acknowledgment,
    .manual-representative-section,
    .email-section,
    .file-section,
    .intro,
    .process-section,
    .status-area,
    .result-area {
        border-radius: 22px;
        padding: 18px;
    }

    .page-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .back-button,
    .brand-mark,
    .language-switcher,
    button,
    .app-link,
    .download-button,
    .status-link-button {
        width: 100%;
    }

    .language-switcher__button {
        flex: 1;
    }

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

    .status-detail-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-detail-value {
        text-align: left;
    }

    .home-main {
        margin-top: 36px;
    }

    .section-heading {
        gap: 12px;
        margin-bottom: 28px;
    }

    .section-heading h2 {
        font-size: 1.95rem;
        line-height: 0.92;
    }

    .section-heading p {
        font-size: 0.96rem;
        line-height: 1.36;
        max-width: 28ch;
    }

    .app-card {
        gap: 16px;
        padding: 22px 18px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "contact"
            "nav";
        gap: 12px;
        padding: 18px;
    }

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

    .site-footer__contact {
        justify-items: start;
        text-align: left;
    }

    .app-card-top > div {
        gap: 14px;
    }

    .card-kicker {
        font-size: 0.74rem;
    }

    .app-header {
        font-size: 1.72rem;
        line-height: 0.86;
        max-width: 8.5ch;
    }
}
