/* Style: sandmark-app. Layout only. Color and type stay in tokens.css. */

.brand {
    display: flex;
    align-items: center;
    gap: var(--smt-space-3);
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-weight: 650;
}

.brand-company {
    color: var(--smt-muted);
    font-size: 0.875rem;
}

.smt-header { flex-wrap: wrap; }
html { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100%; }
.smt-main { flex: 1 0 auto; }
.smt-footer p { margin: 0; }
.smt-footer p + p { margin-top: var(--smt-space-2); }

h1 {
    margin: 0 0 var(--smt-space-3);
    font-size: 1.75rem;
}

h2 {
    margin: 0 0 var(--smt-space-3);
    font-size: 1.25rem;
}

.lede { margin: 0 0 var(--smt-space-4); }
.upload { max-width: 42rem; margin-bottom: var(--smt-space-6); }
.upload-form {
    display: flex;
    flex-direction: column;
    gap: var(--smt-space-4);
    margin-top: var(--smt-space-4);
}

.split { display: grid; gap: var(--smt-space-4); }

@media (min-width: 40rem) {
    .split { grid-template-columns: 1fr 1fr; }
}

.hint { font-weight: 400; color: var(--smt-muted); }
.smt-field textarea { min-height: 6rem; resize: vertical; }
.table-scroll { overflow-x: auto; }
td.error:not(:empty) { color: var(--smt-danger); }
.library .smt-status { min-height: 1.5rem; }
.row-actions { display: flex; gap: var(--smt-space-2); align-items: center; }
.row-actions form { margin: 0; }

.status-cell { min-width: 11rem; }
.job-progress {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.45rem;
    min-width: 9rem;
}
.job-progress[hidden] { display: none; }
.progress-track {
    width: 100%;
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--smt-border, #d8dee5);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 10%);
}
.progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #477e77, #78b5a3);
    transition: width 350ms ease;
}
.progress-detail {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--smt-muted);
    font-size: 0.78rem;
}
.progress-percent { font-variant-numeric: tabular-nums; font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
    .progress-fill { transition: none; }
}

.skip {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip:focus-visible {
    position: absolute;
    left: var(--smt-space-4);
    top: var(--smt-space-3);
    z-index: 2;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--smt-surface);
    color: var(--smt-ink);
    padding: var(--smt-space-2) var(--smt-space-3);
}


.library-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.library-heading h2 {
    margin: 0;
}

.clear-completed-form {
    margin: 0;
}

@media (max-width: 480px) {
    .library-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}
