.hero-surface,
.panel,
.metric-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.hero-surface,
.panel {
    border-radius: 28px;
    padding: 2rem;
}

.panel-spacious {
    padding: 2rem;
}

.light-panel,
.light-card {
    border-color: rgba(221, 230, 242, 0.95);
}

.hero-sidecard {
    background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.25rem;
}

.hero-minirow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}

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

.metric-card {
    border-radius: 24px;
    padding: 1.5rem;
}

.accent-card {
    background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%);
}

.metric-label {
    display: block;
    color: var(--muted);
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.metric-value {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1;
    color: var(--text);
}

.metric-value.compact {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    line-height: 1.4;
}

.metric-note {
    margin: 0.9rem 0 0;
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}

.estimate-card,
.status-tile {
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem 1.1rem;
}

.estimate-card.soft {
    background: #f8fcfb;
}

.estimate-label {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.progress-track {
    width: 100%;
    height: 0.9rem;
    background: #e7eef9;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #69a1ff);
    transition: width 0.35s ease;
}

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

.status-tile span {
    display: block;
    color: var(--muted);
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
}

.status-tile strong {
    font-size: 1.15rem;
}

.info-inline h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.info-inline p {
    margin: 0;
    color: var(--muted);
}

.app-table > :not(caption) > * > * {
    background: transparent;
    border-color: #e8edf5;
    color: var(--text);
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

.app-table thead th {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom-width: 1px;
}

.app-table tbody tr:hover {
    background: #f8fbff;
}

.meta-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.8rem 1.1rem;
}

.meta-list dt {
    color: var(--muted);
}

.meta-list dd {
    margin: 0;
    text-align: right;
    word-break: break-word;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
    text-transform: capitalize;
}

.status-ready { color: #0d7d6a; background: #e7fbf4; border-color: #c9f1e5; }
.status-importing { color: #9a6700; background: #fff5dd; border-color: #f8e2a8; }
.status-failed { color: #b42318; background: #ffefef; border-color: #f3c8c8; }
.status-uploaded { color: #1d4ed8; background: #e7efff; border-color: #cdddff; }

.progress-inline {
    min-width: 8rem;
}

.progress-inline small {
    color: var(--muted);
}

.metadata-modal {
    position: relative;
    z-index: 1085;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.modal {
    z-index: 1080;
}

.modal-backdrop {
    z-index: 1070;
}

.persistent-horizontal-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    height: 18px;
    margin-bottom: 0.8rem;
    border-radius: 999px;
}

.persistent-horizontal-scroll-inner {
    height: 1px;
}

.persistent-table-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.persistent-table-scroll::-webkit-scrollbar {
    display: none;
}

.scrollwide-table {
    width: max-content;
    min-width: 100%;
}

.scrollwide-table th,
.scrollwide-table td {
    white-space: nowrap;
}

.viewport-scrollbar {
    position: fixed;
    bottom: 0.75rem;
    left: 1rem;
    display: none;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(246, 248, 252, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.12);
    z-index: 1090;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(246, 248, 252, 0.72);
    backdrop-filter: blur(8px);
    z-index: 1040;
}

.loading-overlay.active {
    display: flex;
}

.loading-card {
    min-width: 18rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.25rem 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.loading-card span {
    color: var(--muted);
}

.export-overlay {
    z-index: 1060;
}

.export-card {
    min-width: 20rem;
}

.export-progress-shell {
    width: 100%;
}

@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
}
