html, body { min-height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
.content-wrap { flex: 1 0 auto; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem .75rem; border-radius: .5rem; }
.app-footer { flex-shrink: 0; padding: 1.25rem 1rem; font-size: .875rem; color: #495057; background: #f1f3f5; border-top: 1px solid #dee2e6; }
.app-footer a { color: inherit; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.navbar-brand { font-weight: 700; min-width: 0; }
.navbar-version { font-size: .7rem; font-weight: 400; opacity: .75; margin-left: .25rem; }
.user-email { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumbnail-img { width: 5rem; height: 5rem; object-fit: contain; border-radius: .5rem; background: #fff; }
.plot-img { width: 9rem; max-height: 7rem; object-fit: contain; border-radius: .5rem; background: #fff; cursor: pointer; }
.results-table { background: #fff; border-radius: .75rem; box-shadow: 0 .125rem .625rem rgba(0,0,0,.08); overflow: hidden; }
.result-row { vertical-align: middle; }
.file-picker { min-height: 12rem; border: 2px dashed #6c757d; border-radius: .75rem; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 1.5rem; text-align: center; background: #fff; transition: background-color .15s ease, border-color .15s ease; }
.file-picker.is-dragover { background: #e7f1ff; border-color: #0d6efd; }
.selected-file { overflow-wrap: anywhere; }
.legal-text { max-width: 60rem; }
.legal-text h2 { margin-top: 1.75rem; font-size: 1.25rem; }
.legal-text h3 { margin-top: 1.25rem; font-size: 1.05rem; }
.operator-missing { border-left: .25rem solid #dc3545; }

@media (max-width: 767.98px) {
    .user-email { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    .results-table .card-header { flex-direction: column; align-items: stretch !important; gap: .75rem; }
    .results-table .header-actions { display: grid; grid-template-columns: 1fr; gap: .5rem; }
    .results-table .header-actions .btn { width: 100%; margin: 0 !important; }
    #selectedFiles .action-row { display: grid; gap: .5rem; }
    #selectedFiles .action-row .btn { width: 100%; margin: 0 !important; }
    .footer-links { flex-direction: column; }
}

@media (max-width: 360px) {
    .navbar-version { display: none; }
    .navbar-brand { font-size: 1rem; max-width: calc(100% - 3.5rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .001ms !important; }
}

.admin-sticky-actions { position: sticky; bottom: .75rem; z-index: 10; box-shadow: 0 .25rem 1rem rgba(0,0,0,.08); }
@media (max-width: 575.98px) {
    .admin-sticky-actions .btn { width: 100%; }
}

.brand-mark { flex-shrink: 0; border-radius: .45rem; object-fit: contain; }
.contact-text { overflow-wrap: anywhere; }
.support-card { max-width: 920px; margin: 0 auto; border: 2px solid #477cbb; border-radius: 1rem; background: #fff; }
.support-card .card-body { padding: clamp(1.25rem, 4vw, 3.5rem); }
.support-card h2 { max-width: 38rem; line-height: 1.3; }
.support-marks { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 4rem); margin: clamp(2rem, 5vw, 4rem) 0 2rem; }
/* Original vector marks, served locally with a release version in the URL. */
.support-mark { display: block; width: 100%; margin: 0 auto; }
.support-mark img { display: block; width: 100%; height: auto; }
.support-fasie { max-width: 580px; }
.support-platform { max-width: 420px; }
.support-caption { font-size: clamp(1rem, 2vw, 1.375rem); line-height: 1.6; }

.pricing-section { max-width: 1120px; margin: 0 auto; }
.service-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid #dce4de; border-radius: 1rem; background: #fff; box-shadow: 0 .25rem 1rem rgba(25, 60, 35, .04); }
.service-card-subscription { border-top: 4px solid #27633c; }
.service-label { color: #27633c; font-size: .875rem; font-weight: 600; margin-bottom: 1.25rem; }
.service-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: 1.5rem 0 .35rem; line-height: 1.2; }
.price-amount { font-size: clamp(2.5rem, 4vw, 3.25rem); font-weight: 700; white-space: nowrap; letter-spacing: -.04em; }
.price-period { color: #59665e; font-size: 1.1rem; }
.price-agreement { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; min-height: 3.9rem; align-items: center; }
.service-action { margin-top: auto; padding-top: 1.5rem; }
.service-action .btn { padding: .75rem 1.4rem; font-weight: 600; }
.pricing-contact { color: #59665e; line-height: 1.7; }
.application-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.application-list li { padding: 1.25rem 1.5rem; border-left: 3px solid #538052; border-radius: 0 .65rem .65rem 0; background: #eef4ee; line-height: 1.6; }
@media (max-width: 767.98px) {
    .application-list { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .service-action .btn { width: 100%; }
    .price-agreement { min-height: 0; }
}
