body.app-shell {
    background: #f4f7fb;
    color: #1f2937;
    min-height: 100vh;
}

.app-container {
    max-width: 960px;
}

.app-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem 1.25rem;
    padding: 0.9rem 0;
}

.auth-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.auth-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    background: #eef2f7;
}

.app-account-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
    margin-left: auto;
    text-align: right;
}

.app-account-meta {
    line-height: 1.2;
}

.auth-nav-link:hover,
.auth-nav-link:focus {
    color: #0f172a;
    background: #e2e8f0;
}

.auth-nav-link.active {
    color: #ffffff;
    background: #0f172a;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid #dbe4ee;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.04);
}

.dashboard-card-label {
    margin-bottom: 0;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-card-value {
    margin-top: auto;
    padding-top: 1rem;
    margin-bottom: 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
}

.dashboard-empty {
    padding: 1rem 1.1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.9rem;
    background: #f8fafc;
    color: #64748b;
}

.dashboard-worker-list {
    display: grid;
    gap: 0.85rem;
}

.dashboard-worker-card {
    padding: 1rem;
    border: 1px solid #dbe4ee;
    border-radius: 0.9rem;
    background: #f8fafc;
}

.dashboard-worker-jobs {
    color: #0f172a;
    font-weight: 600;
}

.status-panel {
    height: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
}

.status-label {
    margin-bottom: 0.5rem;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.status-help {
    color: #6b7280;
    font-size: 0.95rem;
}

.status-dot {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
}

.debug-block {
    padding: 1rem;
    border-radius: 0.75rem;
    background: #111827;
    color: #f9fafb;
    white-space: pre-wrap;
    word-break: break-word;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.info-label {
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table td,
.table th {
    vertical-align: middle;
}

.alert {
    border-radius: 0.9rem;
}

.worker-job-list {
    display: grid;
    gap: 1rem;
}

.worker-job-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #dbe4ee;
    border-radius: 1rem;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.04);
}

.worker-job-card:hover,
.worker-job-card:focus {
    border-color: #93c5fd;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 0.5rem 1.25rem rgba(37, 99, 235, 0.08);
}

.worker-job-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.worker-job-card__number {
    margin: 0 0 0.25rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.worker-job-card__title {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.worker-job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #475569;
    font-size: 0.95rem;
}

.worker-job-card__details {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.worker-job-card__details dt {
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.worker-job-card__details dd {
    margin: 0;
    color: #0f172a;
}

.worker-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.worker-selectable-text {
    user-select: text;
}

.worker-notes-list {
    display: grid;
    gap: 1rem;
}

.worker-note {
    padding: 1rem;
    border: 1px solid #dbe4ee;
    border-radius: 0.9rem;
    background: #f8fafc;
}

.worker-note__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.deferred-feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.deferred-feature-panel {
    padding: 1rem;
    border: 1px solid #dbe4ee;
    border-radius: 0.9rem;
    background: #f8fafc;
}

@media (max-width: 575.98px) {
    .app-header-bar {
        align-items: stretch;
    }

    .auth-nav-link {
        flex: 1 1 calc(50% - 0.75rem);
    }

    .app-account-controls {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }

    .worker-job-card__top,
    .worker-action-bar,
    .worker-note__meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
